diff options
| author | Arslaan Pathan <[email protected]> | 2026-08-20 22:05:35 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-08-20 22:05:35 +1200 |
| commit | cebbf0d0c0356712df61265520b1841c130e79a6 (patch) | |
| tree | 0365b0575e8ecf547cec22f92b50ed82f7dd7db1 /templates | |
| parent | c75ac93b77d4b96b7cf7d768c0e911e33290ca8a (diff) | |
| download | arslaancodes-cebbf0d0c0356712df61265520b1841c130e79a6.tar.xz arslaancodes-cebbf0d0c0356712df61265520b1841c130e79a6.zip | |
[feat] add page template and migrate missing pages from old site to new site
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 2 | ||||
| -rw-r--r-- | templates/page.html | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index fb40a81..8487e14 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,6 +18,8 @@ <a href="/" class="{% if current_path == '/' %}active{% else %}purple{% endif %}">home</a> <a href="/projects" class="{% if current_path is starting_with(pat='/projects') %}active{% else %}purple{% endif %}">projects</a> <a href="/blog" class="{% if current_path is starting_with(pat='/blog') %}active{% else %}purple{% endif %}">blog</a> + <a href="/licenses" class="{% if current_path is starting_with(pat='/licenses') %}active{% else %}purple{% endif %}">licenses</a> + <a href="/pgp" class="{% if current_path is starting_with(pat='/pgp') %}active{% else %}purple{% endif %}">pgp</a> </nav> </div> </header> diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..1f941d4 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block content %} +<h1 class="title" style="text-align: left; !important"> + {{ page.title }} +</h1> +<div class="blog-content"> +{{ page.content | safe }} +</div> +{% endblock content %} |
