diff options
| author | Jieiku | 2022-09-16 18:53:45 -0700 |
|---|---|---|
| committer | Jieiku | 2022-09-16 18:53:45 -0700 |
| commit | 7d691159df6e0f64129d3c11f4e8026dca3a72d1 (patch) | |
| tree | aaca25b75addbca1c63a496f28396ddf45b0ed78 /templates | |
| parent | 432abc504dbf5acafeed37ab4f900173fc482aff (diff) | |
| download | abridge-7d691159df6e0f64129d3c11f4e8026dca3a72d1.tar.gz abridge-7d691159df6e0f64129d3c11f4e8026dca3a72d1.tar.bz2 abridge-7d691159df6e0f64129d3c11f4e8026dca3a72d1.zip | |
Add Authors for post extras
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/macros/macros.html | 18 | ||||
| -rw-r--r-- | templates/page.html | 2 |
2 files changed, 16 insertions, 4 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html index dd3b75c..2c17530 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -8,10 +8,16 @@ {#- Author #} {%- if page.taxonomies.authors and config.taxonomies %} {%- for author in page.taxonomies.authors %} - {%- if author_flag %} and {% endif %} + {%- if author_flag %}, {% endif %} <a href="{{ get_taxonomy_url(kind='authors', name=author) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ author }}</a> {%- set_global author_flag = true %} {%- endfor %} + {%- elif page.extra.authors and config.extra.meta_post.author %} + {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} + {%- for author in page.extra.authors %} + {%- if author_flag %}, {% endif %} {{ author }} + {%- set_global author_flag = true %} + {%- endfor %} {%- elif config.extra.author and config.extra.meta_post.author %} {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} {{ config.extra.author }} {%- endif %} @@ -53,10 +59,16 @@ {#- Author #} {%- if page.taxonomies.authors and config.taxonomies %} {%- for author in page.taxonomies.authors %} - {%- if author_flag %} and {% endif %} + {%- if author_flag %}, {% endif %} <a href="{{ get_taxonomy_url(kind='authors', name=author) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ author }}</a> {%- set_global author_flag = true %} {%- endfor %} + {%- elif page.extra.authors and config.extra.meta_index.author %} + {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} + {%- for author in page.extra.authors %} + {%- if author_flag %}, {% endif %} {{ author }} + {%- set_global author_flag = true %} + {%- endfor %} {%- elif config.extra.author and config.extra.meta_index.author %} {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} {{ config.extra.author }} {%- endif %} @@ -92,7 +104,7 @@ {%- macro footer(page) %} {%- if page.reading_time %} -{%- if page.reading_time > 1 %} +{%- if page.reading_time > 2 %} <p><b><a href="#">Back to top</a></b></p> {%- endif %} {%- endif %} diff --git a/templates/page.html b/templates/page.html index 203959a..198cb58 100644 --- a/templates/page.html +++ b/templates/page.html @@ -80,7 +80,7 @@ {%- block gotop %} {%- if page.reading_time %} -{%- if page.reading_time > 1 %} +{%- if page.reading_time > 2 %} <span class="topout"> <span class="topleft"> </span><a href="#" class="top" title="Back to Top">{%- if config.extra.icon_top %}<i class="{{ config.extra.icon_top }}"></i>{%- else %}⋏{%- endif %}</a> </span> |
