summaryrefslogtreecommitdiff
path: root/templates/macros.html
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-02-25 23:04:38 +0200
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2024-02-25 23:04:38 +0200
commit2c1b00f3094321ba9fd3121e723823b96dfbc528 (patch)
tree6677b84d121e9f1e8935d5fd488aa73454f3f62b /templates/macros.html
parentd3192bed44cabf7f8e402b30853ff22761be1ec5 (diff)
Massive changes - improvements in performance, accesability and SEO as well as best practices
Changes to be committed: deleted: static/js/copy.js modified: static/js/main.js modified: config.toml modified: content/posts/code_test.md modified: templates/404.html modified: templates/index.html modified: templates/macros.html modified: templates/page.html modified: templates/section.html modified: templates/tags/single.html
Diffstat (limited to 'templates/macros.html')
-rw-r--r--templates/macros.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/macros.html b/templates/macros.html
index 302bf43..e12a56e 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -1,9 +1,9 @@
{% macro read_time(words) %}
<span class="reading-time" title="Estimated read time">
- {% if words < 530 %}
+ {% if words < 500 %}
1 min read
{% else %}
- {{ words / 265 | round }} min read
+ {{ words / 250 | round }} min read
{% endif %}
</span>
{% endmacro read_time %}
@@ -13,7 +13,7 @@
<p>&copy; {{ now() | date(format="%Y") }} <a href="{{ config.base_url }}">{{ config.extra.author.name }}</a>{{ config.extra.footer_copyright | safe }}</p>
<p>Made with <a href="https://www.getzola.org" target="_blank" rel="noopener">Zola</a> &#183; Theme <a href="https://github.com/VersBinarii/hermit_zola" target="_blank" rel="noopener">Hermit_Zola</a>
{% if config.generate_feed %}
- &#183; <a href="{{ get_url(path=config.feed_filename, trailing_slash=false) }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>
+ &#183; <a href="{{ get_url(path=config.feed_filename, trailing_slash=false) }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>
{% endif %}
</p>
</footer>
@@ -21,8 +21,7 @@
{% macro render_social_icons() %}
{% for icon in config.extra.hermit_social %}
-<a href="{{ icon.link }}" target="_blank" rel="noopener me"
- title="{{ icon.name }}">
+<a href="{{ icon.link }}" target="_blank" rel="noopener me" title="{{ icon.name }}">
{% if icon.name == "codepen" %}
<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line></svg>
{% elif icon.name == "facebook" %}