aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJieiku2022-06-09 21:57:10 -0700
committerJieiku2022-06-09 21:57:10 -0700
commitca22b6115b45931187ecc5e3001eb252ade169f3 (patch)
treea02e99f5d438ab615d552ec4f42de256171261d8 /templates/index.html
parentc66af97500f6213e8b3b30aec11b8d948b28156c (diff)
downloadabridge-ca22b6115b45931187ecc5e3001eb252ade169f3.tar.gz
abridge-ca22b6115b45931187ecc5e3001eb252ade169f3.tar.bz2
abridge-ca22b6115b45931187ecc5e3001eb252ade169f3.zip
Add Theme Switcher
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html15
1 files changed, 13 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index a2f5b30..03a652c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -26,8 +26,8 @@
<div>
{%- for page in paginator.pages %}
<article>
- {{- macros::title(page=page) }}
- <p>
+ <h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
+ <p class="sum">
{%- if page.summary %}
{{ page.summary | markdown(inline=true) | safe }}
{%- elif page.description %}
@@ -38,6 +38,17 @@
{%- endif %}
<a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">...more</a>
</p>
+ <span class="info">
+ {%- if page.taxonomies.authors and config.taxonomies %}
+ <span class="rpad">{%- for author in page.taxonomies.authors %}
+ {%- if author_flag %} and {% 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 %}</span>
+ {%- elif config.extra.author and config.extra.author_show %}<span class="rpad">{{ config.extra.author }}</span>
+ {%- endif %} <span class="rpad">{{ page.date | date(format="%Y %B %d") }}</span>{%- if config.extra.readtime %}<span class="rpad"> {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} </span>{% endif %}
+{%- if page.taxonomies.categories %}<span class="rpad"> [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind='categories', name=cat) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ cat }}</a>{% endfor %}]</span>{% endif %}
+{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>
</article>
{%- endfor %}
{{- macros::pagination(paginator=paginator) }}