Skip to content

Instantly share code, notes, and snippets.

@wowthemesnet
Created March 20, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wowthemesnet/f0e8cdc4b15eb604645f1829339360ac to your computer and use it in GitHub Desktop.
Save wowthemesnet/f0e8cdc4b15eb604645f1829339360ac to your computer and use it in GitHub Desktop.
Authors List Page for Ghost
{{!< default}}
<header class="site-header outer">
<div class="inner">
{% raw %}{{> "site-nav"}}
</div>
</header>
{{#post}}
<main id="site-main" class="site-main outer" role="main">
<div class="inner">
<header class="post-full-header">
<h1 class="post-full-title">{{title}}</h1>
</header>
{{#get 'users' limit='all' include='count.posts' order='count.posts desc'}}
<div class="post-feed">
{{#foreach users}}
<article class="post-card {{#unless profile_image}} no-image{{/unless}}">
{{#if profile_image}}
<a class="post-card-image-link" href="">
<div class="post-card-image" style="background-image: url({{profile_image}})"></div>
</a>
{{/if}}
<div class="post-card-content">
<a class="post-card-content-link" href="{% raw %}{{url}}">
<header class="post-card-header">
<h2 class="post-card-title">{{name}}</h2>
</header>
<section class="post-card-excerpt">
<p>{{bio}}</p>
</section>
</a>
</div>
</article>
{{/foreach}}
</div>
{{/get}}
</div>
</main>
{{/post}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment