feat: port changes from taimihud website
Some checks failed
Publish / publish (push) Failing after 24s

This commit is contained in:
Kat Inskip 2025-11-22 10:10:46 -08:00
parent 54c65c0446
commit d04fae2fec
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
3 changed files with 30 additions and 2 deletions

View file

@ -14,6 +14,14 @@
{% endif %} {% endif %}
{{ config.extra.site_title }} {{ config.extra.site_title }}
</title> </title>
<meta property="og:title" content="
{% if section is defined and section.title is defined and section.title is string %}
{{ section.title }} -
{% elif page is defined and page.title is defined and page.title is string %}
{{ page.title }} -
{% endif %}
{{ config.extra.site_title }}
" />
{% include "head.html" %} {% include "head.html" %}
</head> </head>

View file

@ -1,7 +1,5 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{ config.extra.site_title }}</title>
<link rel="stylesheet" type="text/css" href="/stylesheet.css"> <link rel="stylesheet" type="text/css" href="/stylesheet.css">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="{{ config.extra.site_title }}" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:url" content="{{ current_url }}" /> <meta property="og:url" content="{{ current_url }}" />

View file

@ -4,6 +4,28 @@
<h1 class="title"> <h1 class="title">
{{ page.title }} {{ page.title }}
</h1> </h1>
{% if page.toc %}
<h2>Table of Contents</h2>
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
<h2>Content</h2>
{% endif %}
<p class="subtitle"><strong><time>Posted: {{ page.date }}</time></strong></p> <p class="subtitle"><strong><time>Posted: {{ page.date }}</time></strong></p>
{{ page.content | safe }} {{ page.content | safe }}
{% endblock content %} {% endblock content %}