From 9d83a868da2b5db82efc3edda06448a3aa6c48b9 Mon Sep 17 00:00:00 2001 From: mms Date: Wed, 8 Nov 2023 16:11:05 +0100 Subject: feat: site info --- content/about.md | 3 --- content/site/info.md | 39 ++++++++++++++++++++++++++++++++++ layouts/_default/index.html | 4 ++++ layouts/shortcodes/pf_stat.html | 27 +++++++++++++++++++---- layouts/shortcodes/post-count.html | 1 + layouts/shortcodes/recent-updates.html | 4 ++-- static/style.css | 4 +++- 7 files changed, 72 insertions(+), 10 deletions(-) create mode 100644 content/site/info.md create mode 100644 layouts/shortcodes/post-count.html diff --git a/content/about.md b/content/about.md index da063f2..e944aeb 100644 --- a/content/about.md +++ b/content/about.md @@ -37,9 +37,6 @@ Some causes I support or believe in: {{< causes >}} -### License - -All content on this site is licensed under [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/). ### Privacy policy diff --git a/content/site/info.md b/content/site/info.md new file mode 100644 index 0000000..c318a53 --- /dev/null +++ b/content/site/info.md @@ -0,0 +1,39 @@ +--- +title: "Site info" +category: "site" +abstract: +type: special +date: 2023-11-08T15:01:07+01:00 +draft: false +--- + +## Information sheet +Name: Michal's Sapka Website +Established: 2022-04-05 +Subpage count: {{}} +Generator: [Hugo](https://gohugo.io/) +Running on: [OpenBSD](https://www.openbsd.org/) +Hosted on: [OpenBSD Amsterdam](https://openbsd.amsterdam/) +Web stack: Pf + Relayd + Httpd +Money earned due to this website: 0 USD (minus costs) + +## Recent site updates + +{{}} + +## License + +All content on this site is licensed under [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/). + +## Source Code + +Source code is open and available on my [VCS hub](https://vcs.sapka.me/michal-sapka-me/log.html) +(I don't use proprietary forges, like Github). + + +## Stats (for nerds) + +Firewall graphs generated using [pfstat](https://gohugo.io/). + +{{}} + diff --git a/layouts/_default/index.html b/layouts/_default/index.html index d08b6bc..46a7792 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -8,6 +8,10 @@ Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This we {{ partial "partials/article_list_item.html" . }} {{ end }} + + {{ end }} diff --git a/layouts/shortcodes/pf_stat.html b/layouts/shortcodes/pf_stat.html index 3b93756..6e677ae 100644 --- a/layouts/shortcodes/pf_stat.html +++ b/layouts/shortcodes/pf_stat.html @@ -1,9 +1,28 @@ -
- Daily +
+ + +
Firewall general stats
+
+ +
+ + +
Firewall packets stats
+
+ +
+ - -
+ +
Firewall states stats
+ +
+ + + +
Firewall error stats
+
diff --git a/layouts/shortcodes/post-count.html b/layouts/shortcodes/post-count.html new file mode 100644 index 0000000..bbe1a3f --- /dev/null +++ b/layouts/shortcodes/post-count.html @@ -0,0 +1 @@ +{{ len .Page.Site.RegularPages }} diff --git a/layouts/shortcodes/recent-updates.html b/layouts/shortcodes/recent-updates.html index 8b8437c..e515421 100644 --- a/layouts/shortcodes/recent-updates.html +++ b/layouts/shortcodes/recent-updates.html @@ -1,8 +1,8 @@ {{ $category := .Get 0 }} {{ $more_link := .Get 1 }} + diff --git a/static/style.css b/static/style.css index e2f2e61..361f447 100644 --- a/static/style.css +++ b/static/style.css @@ -1,4 +1,3 @@ - :root { color-scheme: light dark; @@ -109,6 +108,9 @@ main { margin-top: 30px; } +.list-item > a { + text-decoration: none; +} /* ----------- Taxmomy list */ .taxonomy a { text-decoration: none; -- cgit v1.2.3