From 8628a4ae2e7c8998c8d2ffe2ecc51f2624aa66b1 Mon Sep 17 00:00:00 2001
From: xAlpharax <42233094+xAlpharax@users.noreply.github.com>
Date: Sat, 18 Nov 2023 12:15:16 +0200
Subject: Massive changes - migrating to Hermit with a few tweaks.
Changes to be committed:
new file: .gitignore
modified: .gitmodules
modified: config.toml
new file: content/about.md
deleted: content/blog/_index.md
deleted: content/blog/first.md
deleted: content/blog/second.md
new file: content/posts/_index.md
new file: content/posts/code_test.md
new file: content/posts/good_first_post.md
new file: content/posts/later_posts.md
new file: content/posts/typography.md
deleted: description
deleted: index.html
deleted: public/blog/first/index.html
deleted: public/blog/index.html
deleted: public/blog/second/index.html
deleted: public/elasticlunr.min.js
deleted: public/search_index.en.js
deleted: public/typography.css
new file: sass/_animate.scss
new file: sass/_icons.scss
new file: sass/_normalize.scss
new file: sass/_predefined.scss
new file: sass/_syntax.scss
new file: sass/style.scss
new file: static/favicon-32x32.png
new file: static/favicon.ico
new file: static/js/main.js
modified: templates/404.html
deleted: templates/base.html
deleted: templates/blog-page.html
deleted: templates/blog.html
new file: templates/index.html
new file: templates/macros.html
new file: templates/page.html
new file: templates/section.html
new file: templates/tags/list.html
new file: templates/tags/single.html
new file: themes/404.html
new file: themes/config.toml
deleted: themes/hermit_zola
---
templates/macros.html | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
create mode 100644 templates/macros.html
(limited to 'templates/macros.html')
diff --git a/templates/macros.html b/templates/macros.html
new file mode 100644
index 0000000..ab2f0cc
--- /dev/null
+++ b/templates/macros.html
@@ -0,0 +1,77 @@
+{% 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 == "mastodon" %}
+
+ {% 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 %}
--
cgit v1.2.3