From 3f92acf8251b2734608d41ef383e2ff6e25b516d Mon Sep 17 00:00:00 2001 From: oxeo0 Date: Thu, 8 May 2025 11:17:49 +0200 Subject: [PATCH] add footer with credits --- .gitignore | 2 ++ docs/hacking | 2 +- docs/opsec | 2 +- docs/selfhosting | 2 +- mkdocs.yml | 6 ++-- overrides/partials/source-file.html | 53 +++++++++++++++++++++++++++++ 6 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 .gitignore create mode 100644 overrides/partials/source-file.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b44ca6c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +site/ +.cache/ diff --git a/docs/hacking b/docs/hacking index 0c2f580..4d81bfb 160000 --- a/docs/hacking +++ b/docs/hacking @@ -1 +1 @@ -Subproject commit 0c2f5800bd7239069b0b803265f26d50cf3cbe59 +Subproject commit 4d81bfb2cbc694cf92bedb915c8de421132ef4cc diff --git a/docs/opsec b/docs/opsec index 57f2407..abc95a5 160000 --- a/docs/opsec +++ b/docs/opsec @@ -1 +1 @@ -Subproject commit 57f24073b7eb5161fa25a2c710fa5bca4e7745f3 +Subproject commit abc95a51393f8462c59bbea64eed5aa230ef4979 diff --git a/docs/selfhosting b/docs/selfhosting index 9a2c099..6048646 160000 --- a/docs/selfhosting +++ b/docs/selfhosting @@ -1 +1 @@ -Subproject commit 9a2c0998563dcecf7ac1956c692377a27663782e +Subproject commit 604864679ca326dfa2f168d512384c95ffe27ebe diff --git a/mkdocs.yml b/mkdocs.yml index b999b1a..1f08130 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,7 +2,7 @@ site_name: The Nihilism OPSEC blog site_url: http://blog.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/ theme: name: material - custom_dir: docs/opsec + custom_dir: overrides palette: # Palette toggle for dark mode @@ -561,8 +561,8 @@ plugins: - privacy - search -#markdown-extensions: -# - meta +markdown_extensions: + - meta repo_url: http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/blog-contributions repo_name: nihilist/blog-contributions diff --git a/overrides/partials/source-file.html b/overrides/partials/source-file.html new file mode 100644 index 0000000..1de94ca --- /dev/null +++ b/overrides/partials/source-file.html @@ -0,0 +1,53 @@ +
+ + +{% if page.meta.date %} + + + {% include ".icons/material/note-edit.svg" %} + + Suggest changes + + +
+{% endif %} + + + + + {% include ".icons/material/account.svg" %} + +{% if page.meta.author %} + {{ page.meta.author }} +{% else %} + Nihilist +{% endif %} + + + +{% if page.meta.date %} + + + {% include ".icons/material/clock-edit-outline.svg" %} + + {{ page.meta.date }} + +{% endif %} + +
+ + + + + {% include ".icons/material/cash.svg" %} + + + +{% if page.meta.get('xmr', '')|length == 95 %} + Donate to the author:
{{ page.meta.xmr[:48] }}
{{ page.meta.xmr[48:] }} +{% else %} + Donate to Nihilist:
8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o
7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8 +{% endif %} +
+ +