summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2023-11-08 16:11:05 +0100
committermms <michal@sapka.me>2023-11-08 16:11:05 +0100
commit9d83a868da2b5db82efc3edda06448a3aa6c48b9 (patch)
treeabc8eaa67d7e8d3835040e2e932a7f952fe342b4
parent1a98525e9cfba9d4418daf09ad8268b0a086464c (diff)
feat: site info
-rw-r--r--content/about.md3
-rw-r--r--content/site/info.md39
-rw-r--r--layouts/_default/index.html4
-rw-r--r--layouts/shortcodes/pf_stat.html27
-rw-r--r--layouts/shortcodes/post-count.html1
-rw-r--r--layouts/shortcodes/recent-updates.html4
-rw-r--r--static/style.css4
7 files changed, 72 insertions, 10 deletions
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: {{<post-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
+
+{{<recent-updates "site">}}
+
+## 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/).
+
+{{<pf_stat>}}
+
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 }}
</article>
+
+<nav>
+ <a href="/site/info/">Site info</a>
+</nav>
{{ 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 @@
-<details>
- <summary>Daily</summary>
+<figure>
+ <a href="https://michal.sapka.me/pfstat/pfstat.jpg" alt="Firewall general stats" target="_blank">
<img src="https://michal.sapka.me/pfstat/pfstat.jpg">
+ </a>
+ <figcaption>Firewall general stats</figcaption>
+</figure>
+
+<figure>
+ <a href="https://michal.sapka.me/pfstat/pfstat-packets.jpg" alt="Firewall packets stats" target="_blank">
<img src="https://michal.sapka.me/pfstat/pfstat-packets.jpg">
+ </a>
+ <figcaption>Firewall packets stats</figcaption>
+</figure>
+
+<figure>
+ <a href="https://michal.sapka.me/pfstat/pfstat-states.jpg" alt="" target="_blank">
<img src="https://michal.sapka.me/pfstat/pfstat-states.jpg">
- <img src="https://michal.sapka.me/pfstat/pfstat-errors.jpg">
-</details>
+ </a>
+ <figcaption>Firewall states stats</figcaption>
+</figure>
+<figure>
+ <a href="https://michal.sapka.me/pfstat/pfstat-error.jpg" alt="Firewall error stats" target="_blank">
+ <img src="https://michal.sapka.me/pfstat/pfstat-errors.jpg">
+ </a>
+ <figcaption>Firewall error stats</figcaption>
+</figure>
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 }}
+<nav>
{{ range (where site.Pages ".Params.category" "==" $category) }}
-aa
{{ partial "partials/article_list_item.html" . }}
{{ end }}
-</article>
+</nav>
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;