Add tag & author archives

This commit is contained in:
John O'Nolan 2019-11-19 19:07:22 +07:00
parent 5598592cfd
commit c38822e257
5 changed files with 109 additions and 20 deletions

View file

@ -4,32 +4,37 @@
<div class="gh-container">
{{#author}}
{{!-- Everything inside the #author tags pulls data from the author --}}
<header class="gh-page-head">
{{#if profile_image}}
<img class="gh-author-image" src="{{profile_image}}" alt="{{name}}" />
{{/if}}
<header class="page-head">
<h1 class="page-head-title">{{name}}</h1>
{{#if bio}}<p class="page-head-description">{{bio}}</p>{{/if}}
<h1>{{name}}</h1>
{{#if bio}}
<p>{{bio}}</p>
{{/if}}
<div class="author-meta">
<div class="author-links">
<div class="gh-author-meta">
<div class="gh-author-links">
{{#if website}}
<a href="{{website}}" target="_blank" rel="noopener">Website</a> <span class="divider">/</span>
<a href="{{website}}" target="_blank" rel="noopener">Website</a>
{{/if}}
{{#if twitter}}
<a href="{{twitter_url}}" target="_blank" rel="noopener">Twitter</a> <span class="divider">/</span>
<a href="{{twitter_url}}" target="_blank" rel="noopener">Twitter</a>
{{/if}}
{{#if facebook}}
<a href="{{facebook_url}}" target="_blank" rel="noopener">Facebook</a> <span class="divider">/</span>
<a href="{{facebook_url}}" target="_blank" rel="noopener">Facebook</a>
{{/if}}
<a href="https://feedly.com/i/subscription/feed/{{url absolute="true"}}rss/" target="_blank" rel="noopener">RSS</a>
</div>
</div>
</header>
{{#if cover_image}}
<img class="gh-page-image" src="{{cover_image}}" alt="{{name}}" />
{{/if}}
</header>
{{/author}}
<div class="post-feed">
<div class="gh-postfeed">
{{#foreach posts}}
{{> "card"}} {{!-- partials/card.hbs --}}