feat: implement barebone zola templates
This commit is contained in:
parent
9c20f5ed2e
commit
f99a9ae2ac
198 changed files with 2434 additions and 227991 deletions
45
themes/emily_zola_theme/templates/post-page.html
Normal file
45
themes/emily_zola_theme/templates/post-page.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
<title>{{ page.title }} | {{ config.title }}</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>
|
||||
<div class="text-3xl">{{ page.title }}</div>
|
||||
</p>
|
||||
<p>
|
||||
<div class="text-sm mb-2 text-right">{{ page.date }}</div>
|
||||
<div class="text-right">
|
||||
{% if page.taxonomies.categories %}
|
||||
{% for category in page.taxonomies.categories %}
|
||||
 <a class="text-slate-50" href="{{ get_taxonomy_url(kind="categories", name=category) | safe }}">/{{ category }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if page.taxonomies.tags %}
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
 <a class="text-slate-50" href="{{ get_taxonomy_url(kind="tags", name=tag) | safe }}">#{{ tag }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ page.content | safe }}
|
||||
</p>
|
||||
<hr class="mb-4 border-amber-200" />
|
||||
|
||||
{% if page.extra.math %}
|
||||
<script>
|
||||
MathJax = {
|
||||
tex: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']]
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" async
|
||||
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock content %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue