1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 09:46:23 +00:00

Update title suffix

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2022-07-05 18:04:05 +12:00
parent d1bdbf5e88
commit d301279348
4 changed files with 19 additions and 8 deletions

View File

@@ -25,3 +25,14 @@
<script src="/js/i-am-groot.js"></script>
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
{% endblock %}
<!-- Add little penguin ascii-art to titles instead of 20-character-long site name -->
{% block htmltitle %}
{% if page.meta and page.meta.title %}
<title>{{ page.meta.title }} |・∀・</title>
{% elif page.title and not page.is_homepage %}
<title>{{ page.title | striptags }} |・∀・</title>
{% else %}
<title>{{ config.site_name }}</title>
{% endif %}
{% endblock %}