File tree 2 files changed +20
-7
lines changed
2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 17
17
{% set page_title = page.title | default(value=config.title) %}
18
18
<!---->
19
19
{% set description = page.description | default(value=page_title) %}
20
+ <!---->
21
+ {% if page.authors | length > 0 %}
22
+ <!---->
23
+ {% set author = page.authors | join(sep=", ") %}
24
+ <!---->
25
+ {% else %}
26
+ <!---->
27
+ {% set author = config.author | default(value=config.title) %}
28
+ <!---->
29
+ {% endif %}
30
+ <!---->
20
31
< meta name ="description " content ="{{ description }} " />
21
- < meta name ="author " content ="{{ page.extra. author | default(value=page_title) }} " />
32
+ < meta name ="author " content ="{{ author }} " />
22
33
<!-- The Open Graph protocol -->
23
34
< meta property ="og:type " content ="website " />
24
35
< meta property ="og:title " content ="{{ page_title }} " />
109
120
title ="Atom "
110
121
href ="{{ get_url(path=`atom.xml`) }} "
111
122
/>
112
- {% endif %}
113
- {% if "rss.xml" in config.feed_filenames %}
123
+ {% endif %} {% if "rss.xml" in config.feed_filenames %}
114
124
< link
115
125
rel ="alternate "
116
126
type ="application/rss+xml "
Original file line number Diff line number Diff line change 4
4
< span class ="mx-1 "> ·</ span >
5
5
< span > {{ page.reading_time }}min</ span >
6
6
{% endif %}<!---->
7
- {% set single_author = page.extra.author | default(value=config.author) %}
8
- <!---->
9
- {% if single_author %}
7
+ {% if page.authors | length > 0 %}<!---->
8
+ {% set author = page.authors | join(sep=", ") %}<!---->
9
+ {% else %}<!---->
10
+ {% set author = config.author %}<!---->
11
+ {% endif %}<!---->
12
+ {% if author %}
10
13
< span class ="mx-1 "> ·</ span >
11
- < span > {{ single_author }}</ span >
14
+ < span > {{ author }}</ span >
12
15
{% endif %}
13
16
</ div >
You can’t perform that action at this time.
0 commit comments