From 2ef7c0ec1ff976b807691fea23eaaf5ea1e93bc9 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sun, 27 Mar 2022 19:19:28 -0700 Subject: init --- templates/macros/macros.html | 7 +++++++ templates/macros/page.html | 3 +++ templates/macros/social.html | 23 +++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 templates/macros/macros.html create mode 100644 templates/macros/page.html create mode 100644 templates/macros/social.html (limited to 'templates/macros') diff --git a/templates/macros/macros.html b/templates/macros/macros.html new file mode 100644 index 0000000..f0fc531 --- /dev/null +++ b/templates/macros/macros.html @@ -0,0 +1,7 @@ +{% macro title(page) %}

{{ page.title }}

+ {{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}] {% endif %} + {% if page.taxonomies.tags %} {% for tag in page.taxonomies.tags %} #{{ tag }} {% endfor %}{% endif %} +{% endmacro title %} +{% macro footer(page) %} +

Back to top

+{% endmacro footer %} diff --git a/templates/macros/page.html b/templates/macros/page.html new file mode 100644 index 0000000..69d40f7 --- /dev/null +++ b/templates/macros/page.html @@ -0,0 +1,3 @@ +{% macro page_listing(page) %}
+ {{ page.title }} +
{% endmacro page_listing %} diff --git a/templates/macros/social.html b/templates/macros/social.html new file mode 100644 index 0000000..2fbee61 --- /dev/null +++ b/templates/macros/social.html @@ -0,0 +1,23 @@ +{% macro social_links(social_config) %}{% set base_url = get_url(path="", lang=lang) %} +{% if config.generate_feed %} {% endif %} + +{% if social_config.mail %} {% endif %} +{% if social_config.mastodon %} {% endif %} +{% if social_config.element %} {% endif %} +{% if social_config.matrix %} {% endif %} +{% if social_config.twitter %} {% endif %} +{% if social_config.facebook %} {% endif %} +{% if social_config.linkedin %} {% endif %} + +{% if social_config.gitlab %} {% endif %} +{% if social_config.github %} {% endif %} +{% if social_config.bitbucket %} {% endif %} +{% if social_config.python %} {% endif %} +{% if social_config.docker %} {% endif %} +{% if social_config.stack %} {% endif %} + +{% if social_config.instagram %} {% endif %} +{% if social_config.pinterest %} {% endif %} +{% if social_config.twitch %} {% endif %} +{% if social_config.youtube %} {% endif %} + {% endmacro %} -- cgit v1.3.1