A charming Jekyll theme.
jekyll-theme

feat(post): adds author byline setting

authored by arthr.tngl.sh and committed by tangled.org e7d3e47a 5b16ffc4

+13 -7
+1
_config.yml
··· 18 18 year: "%Y" 19 19 20 20 translations: 21 + byline: "By" 21 22 archive_date_title: "Archives from %date" 22 23 archive_tag_title: "Posts tagged with %tag" 23 24 archive_category_title: "Posts filed under %category"
+8 -7
_includes/blog/post.html
··· 71 71 {%- assign author = site.data.authors[include.post.author] -%} 72 72 {%- endif -%} 73 73 74 - {%- if author.uri -%} 75 - <p class="post-author p-author h-card"> 74 + <p class="post-author p-author h-card"> 75 + <span class="post-byline"> 76 + {{ site.translations.byline }} 77 + </span> 78 + {% if author.uri -%} 76 79 <a class="p-name u-url" href="{{- author.uri -}}"> 77 80 {{ author.name }} 78 81 </a> 79 - </p> 80 - {%- else -%} 81 - <p class="post-author p-author h-card"> 82 + {%- else -%} 82 83 <span class="p-name"> 83 84 {{- author -}} 84 85 </span> 85 - </p> 86 - {%- endif -%} 86 + {%- endif -%} 87 + </p> 87 88 </footer> 88 89 {%- endif -%} 89 90 </article>
+4
_layouts/post.html
··· 68 68 {%- endif -%} 69 69 70 70 <p class="post-author p-author h-card" {% if site.author or site.data.authors.size == 1 -%}hidden{%- endif %}> 71 + <span class="post-byline"> 72 + {{ site.translations.byline }} 73 + </span> 74 + 71 75 {%- if author.uri -%} 72 76 <a class="p-name u-url" href="{{- author.uri -}}"> 73 77 {{ author.name }}