* [Solo] Added support for additional social links Ref https://linear.app/ghost/issue/PLG-413/add-helpers-to-official-themes * Switched to single social_url helper for all social links Ref https://linear.app/ghost/issue/PLG-413/add-helpers-to-official-themes
59 lines
3.1 KiB
Handlebars
59 lines
3.1 KiB
Handlebars
{{!< default}}
|
|
|
|
<main class="gh-main gh-outer">
|
|
{{#author}}
|
|
<section class="gh-article gh-inner">
|
|
<header class="gh-article-header">
|
|
{{#if profile_image}}
|
|
<img class="gh-author-image" src="{{img_url profile_image size="s"}}" alt="{{name}}">
|
|
{{/if}}
|
|
<h1 class="gh-article-title">{{name}}</h1>
|
|
{{#if bio}}
|
|
<p class="gh-article-excerpt">{{bio}}</p>
|
|
{{/if}}
|
|
</header>
|
|
<footer class="gh-author-meta">
|
|
{{#if location}}
|
|
<div class="gh-author-location">{{location}}</div>
|
|
{{/if}}
|
|
<div class="gh-author-social">
|
|
{{#if website}}
|
|
<a class="gh-author-social-link" href="{{website}}" target="_blank" rel="noopener">{{website}}</a>
|
|
{{/if}}
|
|
{{#if twitter}}
|
|
<a class="gh-author-social-link" href="{{social_url type="twitter"}}" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
|
|
{{/if}}
|
|
{{#if facebook}}
|
|
<a class="gh-author-social-link" href="{{social_url type="facebook"}}" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
|
|
{{/if}}
|
|
{{#if linkedin}}
|
|
<a class="gh-author-social-link" href="{{social_url type="linkedin"}}" target="_blank" rel="noopener">{{> "icons/linkedin"}}</a>
|
|
{{/if}}
|
|
{{#if bluesky}}
|
|
<a class="gh-author-social-link" href="{{social_url type="bluesky"}}" target="_blank" rel="noopener">{{> "icons/bluesky"}}</a>
|
|
{{/if}}
|
|
{{#if threads}}
|
|
<a class="gh-author-social-link" href="{{social_url type="threads"}}" target="_blank" rel="noopener">{{> "icons/threads"}}</a>
|
|
{{/if}}
|
|
{{#if mastodon}}
|
|
<a class="gh-author-social-link" href="{{social_url type="mastodon"}}" target="_blank" rel="noopener">{{> "icons/mastodon"}}</a>
|
|
{{/if}}
|
|
{{#if tiktok}}
|
|
<a class="gh-author-social-link" href="{{social_url type="tiktok"}}" target="_blank" rel="noopener">{{> "icons/tiktok"}}</a>
|
|
{{/if}}
|
|
{{#if youtube}}
|
|
<a class="gh-author-social-link" href="{{social_url type="youtube"}}" target="_blank" rel="noopener">{{> "icons/youtube"}}</a>
|
|
{{/if}}
|
|
{{#if instagram}}
|
|
<a class="gh-author-social-link" href="{{social_url type="instagram"}}" target="_blank" rel="noopener">{{> "icons/instagram"}}</a>
|
|
{{/if}}
|
|
</div>
|
|
</footer>
|
|
</section>
|
|
{{/author}}
|
|
<div class="gh-feed{{#match @custom.header_section_layout "!=" "Large background"}} gh-inner{{/match}}">
|
|
{{#foreach posts}}
|
|
{{> "loop"}}
|
|
{{/foreach}}
|
|
</div>
|
|
</main> |