1
0

vault backup: 2025-12-07 17:19:19
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 4m16s

This commit is contained in:
2025-12-07 17:19:19 +01:00
parent d529452012
commit 502887ad61
5 changed files with 42 additions and 31 deletions

View File

@@ -1,31 +0,0 @@
<html lang="en">
<head>
<meta charset="utf-8">
<base href="{{base_path}}">
<link rel="stylesheet" href="style.css">
<title>{{note.title}}</title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
</head>
<body>
<div class="sidebar"></div>
<div class="content">
<h1>{{note.title}}</h1>
<ul>
{% for key, value in note.frontmatter.items() %}
<li>
<strong>{{key}}</strong>
{% if key == 'tags' %}
{% for tag in value %}
#{{tag}}
{% endfor %}
{% else %}
{{value}}
{% endif %}
</li>
{% endfor %}
</ul>
{{note.our_content | markdown}}
</div>
<script src="script.js"></script>
</body>
</html>

17
wip/templates/base.jinja2 Normal file
View File

@@ -0,0 +1,17 @@
<html lang="en">
<head>
<meta charset="utf-8">
<base href="{{base_path}}">
<link rel="stylesheet" href="style.css">
<title>{% block title %}WIP{% endblock %}</title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
</head>
<body>
<div class="sidebar"></div>
<div class="content">
{% block content %}{% endblock %}
</div>
<script src="script.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>

View File

20
wip/templates/note.jinja2 Normal file
View File

@@ -0,0 +1,20 @@
{% extends 'base.html' %}
{% block title %}{{note.title}}{% endblock %}
{% block content %}
<h1>{{note.title}}</h1>
<ul>
{% for key, value in note.frontmatter.items() %}
<li>
<strong>{{key}}</strong>
{% if key == 'tags' %}
{% for tag in value %}
#{{tag}}
{% endfor %}
{% else %}
{{value}}
{% endif %}
</li>
{% endfor %}
</ul>
{{note.our_content | markdown}}
{% endblock %}

5
wip/templates/pdf.jinja2 Normal file
View File

@@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block title %}{{filename}}{% endblock %}
{% block content %}
TODO: pdf.js
{% endblock %}