aboutsummaryrefslogtreecommitdiff
path: root/templates/macros
diff options
context:
space:
mode:
Diffstat (limited to 'templates/macros')
-rw-r--r--templates/macros/macros.html9
-rw-r--r--templates/macros/page.html8
-rw-r--r--templates/macros/social.html7
3 files changed, 16 insertions, 8 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html
index a470bb0..c3147aa 100644
--- a/templates/macros/macros.html
+++ b/templates/macros/macros.html
@@ -1,6 +1,9 @@
-{% macro title(page) %} <h1><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
- <span>{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind="categories", name=cat) | safe }}">{{ cat }}</a>{% endfor %}] </span> {% endif %}
- {% if page.taxonomies.tags %} <span>{% for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a> {% endfor %}</span>{% endif %}
+{% macro title(page) %}
+<h1><a href="{{ page.permalink | safe }}">{{ page.title }}</a></h1>
+<span>{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}<a href="{{ get_taxonomy_url(kind="categories", name=cat) | safe }}">{{ cat }}</a>{% endfor %}] </span> {% endif %}
+{% if page.taxonomies.tags %}
+ <span>{% for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">{{ tag }}</a> {% endfor %}</span>
+{% endif %}
{% endmacro title %}
{% macro footer(page) %}
<h3><a href="#">Back to top</a></h3>
diff --git a/templates/macros/page.html b/templates/macros/page.html
index 69d40f7..0029e13 100644
--- a/templates/macros/page.html
+++ b/templates/macros/page.html
@@ -1,3 +1,5 @@
-{% macro page_listing(page) %} <div class="toc-item">
- <a href="{{ page.permalink | safe}}" title="{{ page.title }}">{{ page.title }}</a>
- </div>{% endmacro page_listing %}
+{% macro page_listing(page) %}
+ <div class="toc-item">
+ <a href="{{ page.permalink | safe}}" title="{{ page.title }}">{{ page.title }}</a>
+ </div>
+{% endmacro page_listing %}
diff --git a/templates/macros/social.html b/templates/macros/social.html
index 8daf7bc..6d45b9e 100644
--- a/templates/macros/social.html
+++ b/templates/macros/social.html
@@ -1,4 +1,6 @@
-{% macro social_links(social_config) %}<span>{% set base_url = get_url(path="", lang=lang) %}
+{% macro social_links(social_config) %}
+{% set base_url = get_url(path="", lang=lang) %}
+<span>
{% if config.generate_feed %}{% if config.extra.social.feed %} <a href="{{ get_url(path="atom.xml") }}" target="_blank"><span class="svg rss" title="Rss"></span></a>{% endif %}{% endif %}
{% if social_config.mail %} <a href="mailto:{{ social_config.mail }}" target="_blank"><span class="svg mail" title="Mail"></span></a>{% endif %}
@@ -20,4 +22,5 @@
{% if social_config.pinterest %} <a href="https://www.pinterest.com/{{ social_config.pinterest }}/" target="_blank"><span class="svg pinterest" title="Pinterest"></span></a>{% endif %}
{% if social_config.twitch %} <a href="https://www.twitch.tv/{{ social_config.twitch }}/" target="_blank"><span class="svg twitch" title="Twitch"></span></a>{% endif %}
{% if social_config.youtube %} <a href="https://www.youtube.com/channel/{{ social_config.youtube }}/" target="_blank"><span class="svg youtube" title="YouTube"></span></a>{% endif %}
- </span>{% endmacro %}
+</span>
+{% endmacro %}