Sha256: d2408c8d2e5ef435329ba52af18efbd879ea3dda964475d4d78c93e6896f9867

Contents?: true

Size: 998 Bytes

Versions: 10

Compression:

Stored size: 998 Bytes

Contents

{%-comment-%}
inputs:
  authors                 the author array to render
  item_type               [post, project, page, author] - the type of item to render authors for
dependencies:
  post                    post object that has one or more `author`s
  site.people             people collection with `[handle, published, name]` elements
  site.title              default `author` if none is specified
local:
  author                  for-loop author looked up in site.people to render
{%-endcomment-%}

{%-assign item    = article         | default: post | default: project | default: page-%}
{%-assign authors = include.authors | default: item.author-%}

    <ul class="inline csv authors">
    {%-for auth in authors-%}
      {%-assign author = site.people | find: 'handle', auth-%}
      {%-if author.published-%}
        <li>{{-author.name-}}</li>
      {%-elsif auth-%}
        <li>{{-auth-}}</li>
      {%-endif-%}
    {%-else-%}
      <li>{{-site.title-}}</li>
    {%-endfor-%}
    </ul>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jekyll-theme-editorial-1.0.10 _includes/item_authors.html
jekyll-theme-editorial-1.0.9 _includes/item_authors.html
jekyll-theme-editorial-1.0.8 _includes/item_authors.html
jekyll-theme-editorial-1.0.7 _includes/item_authors.html
jekyll-theme-editorial-1.0.6 _includes/item_authors.html
jekyll-theme-editorial-1.0.5 _includes/item_authors.html
jekyll-theme-editorial-1.0.4 _includes/item_authors.html
jekyll-theme-editorial-1.0.3 _includes/item_authors.html
jekyll-theme-editorial-1.0.2 _includes/item_authors.html
jekyll-theme-editorial-1.0.1 _includes/item_authors.html