This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
caldwell-59/author.hbs
Nikolaos Karaolidis ca43b64220 Add image variant
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-10-27 11:16:33 +00:00

49 lines
1.6 KiB
Handlebars

{{!< default}} <main id="gh-main" class="gh-main gh-canvas">
{{#author}}
<section class="gh-pagehead">
{{#if profile_image}}
<img class="gh-author-image gh-pagehead-image" src="{{profile_image}}" alt="{{name}}">
{{else}}
<span class="gh-author-icon">{{> icons/avatar}}</span>
{{/if}}
<header class="gh-pagehead-content">
<h1 class="gh-author-name gh-pagehead-title">{{name}}</h1>
{{#if bio}}
<div class="gh-author-bio gh-pagehead-description">{{bio}}</div>
{{/if}}
<div class="gh-author-meta">
{{#if location}}
<span class="gh-author-location">📍 {{location}}</span>
{{/if}}
{{#if website}}
<a class="gh-author-website" href="{{website}}" target="_blank" rel="noopener">
{{website}}
</a>
{{/if}}
<div class="gh-author-social">
{{#if twitter}}
<a class="gh-author-twitter" href="{{twitter_url}}" target="_blank" rel="noopener">
{{> icons/twitter}}
</a>
{{/if}}
{{#if facebook}}
<a class="gh-author-facebook" href="{{facebook_url}}" target="_blank" rel="noopener">
{{> icons/facebook}}
</a>
{{/if}}
</div>
</div>
</header>
</section>
{{/author}}
{{#match @custom.mode "Text-based"}}
{{> text/feed}}
{{else}}
{{> image/feed}}
{{/match}}
</main>