aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/macros.html
diff options
context:
space:
mode:
authorJieiku2022-06-09 21:57:10 -0700
committerJieiku2022-06-09 21:57:10 -0700
commitca22b6115b45931187ecc5e3001eb252ade169f3 (patch)
treea02e99f5d438ab615d552ec4f42de256171261d8 /templates/macros/macros.html
parentc66af97500f6213e8b3b30aec11b8d948b28156c (diff)
downloadabridge-ca22b6115b45931187ecc5e3001eb252ade169f3.tar.gz
abridge-ca22b6115b45931187ecc5e3001eb252ade169f3.tar.bz2
abridge-ca22b6115b45931187ecc5e3001eb252ade169f3.zip
Add Theme Switcher
Diffstat (limited to 'templates/macros/macros.html')
-rw-r--r--templates/macros/macros.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index 8003420..4b6c7d5 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -1,17 +1,17 @@
{%- macro title(page) %}
<h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
- <span>{{ page.date | date(format="%B %d, %Y") }}
- {%- if page.taxonomies.authors and config.taxonomies %} by
- {%- for author in page.taxonomies.authors %}
+ <span>
+ {%- if page.taxonomies.authors and config.taxonomies %}
+ <span class="hpad"><b>{%- 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 %}
- {%- elif config.extra.author and config.extra.author_show %} by {{ config.extra.author }}
- {%- endif %}
-{%- if page.taxonomies.categories %} [{% 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 %}]{% 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 %}
-{%- if config.extra.readtime %} - {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} {% endif %}</span>
+ {%- endfor %}</b></span>
+ {%- elif config.extra.author and config.extra.author_show %}<span class="hpad"><b>{{ config.extra.author }}</b></span>
+ {%- endif %}<span class="rpad"> {{ page.date | date(format="%B %d, %Y") }}</span>
+{%- 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 %}<span class="rpad"> {%- 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 -%}</span>{%- endif %}
+{%- if config.extra.readtime %}<span class="rpad"> {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} </span>{% endif %}</span>
{%- endmacro title %}