diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..f8fdc3c --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,75 @@ +{% macro read_time(words) %} + + {% if words < 530 %} + 1 min read + {% else %} + {{ words / 265 | round }} min read + {% endif %} + +{% endmacro read_time %} + +{% macro footer() %} + + + +{% endmacro footer %} + + + +{% macro render_social_icons() %} +{% for icon in config.extra.hermit_social %} + + {% if icon.name == "codepen" %} + + {% elif icon.name == "facebook" %} + + {% elif icon.name == "github" %} + + {% elif icon.name == "gitlab" %} + + {% elif icon.name == "instagram" %} + + {% elif icon.name == "linkedin" %} + + {% elif icon.name == "slack" %} + + {% elif icon.name == "stackoverflow" %} + + {% elif icon.name == "telegram" %} + + {% elif icon.name == "twitter" %} + + {% elif icon.name == "youtube" %} + + {% elif icon.name == "email" %} + + {% elif icon.name == "dribbble" %} + + {% elif icon.name == "behance" %} + + {% elif icon.name == "freepik" %} + + {% elif icon.name == "adobestock" %} + + {% elif icon.name == "shutterstock" %} + + {% elif icon.name == "123rf" %} + + {% elif icon.name == "dreamstime" %} + + {% elif icon.name == "paypal" %} + + {% else %} + + {% endif %} + +{% endfor %} +{% endmacro render_social_icons %}