A charming Jekyll theme.
jekyll-theme

feat(post): hides the post author if it’s a single-author blog

+5 -7
+5 -7
_layouts/post.html
··· 67 67 {%- assign author = site.data.authors[page.author] -%} 68 68 {%- endif -%} 69 69 70 - {%- if author.uri -%} 71 - <p class="post-author p-author h-card"> 70 + <p class="post-author p-author h-card" {% if site.author or site.data.authors.size == 1 -%}hidden{%- endif %}> 71 + {%- if author.uri -%} 72 72 <a class="p-name u-url" href="{{- author.uri -}}"> 73 73 {{ author.name }} 74 74 </a> 75 - </p> 76 - {%- else -%} 77 - <p class="post-author p-author h-card"> 75 + {%- else -%} 78 76 <span class="p-name"> 79 77 {{- author -}} 80 78 </span> 81 - </p> 82 - {%- endif -%} 79 + {%- endif -%} 80 + </p> 83 81 84 82 {%- if page.tags -%} 85 83 <ul class="post-tags">