tangled
alpha
login
or
join now
arthr.me
/
linus
0
fork
atom
A charming Jekyll theme.
jekyll-theme
0
fork
atom
overview
issues
pulls
pipelines
feat(post): adds author byline setting
arthr.tngl.sh
3 weeks ago
c9bf0647
5b16ffc4
+13
-7
3 changed files
expand all
collapse all
unified
split
_config.yml
_includes
blog
post.html
_layouts
post.html
+1
_config.yml
···
18
18
year: "%Y"
19
19
20
20
translations:
21
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
74
-
{%- if author.uri -%}
75
75
-
<p class="post-author p-author h-card">
74
74
+
<p class="post-author p-author h-card">
75
75
+
<span class="post-byline">
76
76
+
{{ site.translations.byline }}
77
77
+
</span>
78
78
+
{% if author.uri -%}
76
79
<a class="p-name u-url" href="{{- author.uri -}}">
77
80
{{ author.name }}
78
81
</a>
79
79
-
</p>
80
80
-
{%- else -%}
81
81
-
<p class="post-author p-author h-card">
82
82
+
{%- else -%}
82
83
<span class="p-name">
83
84
{{- author -}}
84
85
</span>
85
85
-
</p>
86
86
-
{%- endif -%}
86
86
+
{%- endif -%}
87
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
71
+
<span class="post-byline">
72
72
+
{{ site.translations.byline }}
73
73
+
</span>
74
74
+
71
75
{%- if author.uri -%}
72
76
<a class="p-name u-url" href="{{- author.uri -}}">
73
77
{{ author.name }}