diff options
author | mms <michal@sapka.me> | 2023-11-10 22:14:51 +0100 |
---|---|---|
committer | mms <michal@sapka.me> | 2023-11-10 22:14:51 +0100 |
commit | 0ae9e128fd57927bc7375e850293c6bdd15e1d4e (patch) | |
tree | eef5a04d5fb59899ca2952af55decb6a5cb0bfc4 /layouts/shortcodes | |
parent | 279290ec23920a57570e60e5a629ec20b14774c4 (diff) |
feat: more stats
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/httpd_stat.html | 8 | ||||
-rw-r--r-- | layouts/shortcodes/pf_stat.html | 28 | ||||
-rw-r--r-- | layouts/shortcodes/site_stat.html | 9 |
3 files changed, 9 insertions, 36 deletions
diff --git a/layouts/shortcodes/httpd_stat.html b/layouts/shortcodes/httpd_stat.html deleted file mode 100644 index 7350f38..0000000 --- a/layouts/shortcodes/httpd_stat.html +++ /dev/null @@ -1,8 +0,0 @@ -<figure> - <a href="https://michal.sapka.me/site-stats/httpd-responses.png" alt="Httpd responses" target="_blank"> - <img src="https://michal.sapka.me/site-stats/httpd-responses.png"> - </a> - <figcaption>Httpd responses</figcaption> -</figure> - - diff --git a/layouts/shortcodes/pf_stat.html b/layouts/shortcodes/pf_stat.html deleted file mode 100644 index dbcdb0f..0000000 --- a/layouts/shortcodes/pf_stat.html +++ /dev/null @@ -1,28 +0,0 @@ -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat.jpg" alt="Firewall general stats" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat.jpg"> - </a> - <figcaption>Firewall general stats</figcaption> -</figure> - -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat-packets.jpg" alt="Firewall packets stats" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat-packets.jpg"> - </a> - <figcaption>Firewall packets stats</figcaption> -</figure> - -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat-states.jpg" alt="" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat-states.jpg"> - </a> - <figcaption>Firewall states stats</figcaption> -</figure> - -<figure> - <a href="https://michal.sapka.me/site-stats/pfstat-error.jpg" alt="Firewall error stats" target="_blank"> - <img src="https://michal.sapka.me/site-stats/pfstat-errors.jpg"> - </a> - <figcaption>Firewall error stats</figcaption> -</figure> - diff --git a/layouts/shortcodes/site_stat.html b/layouts/shortcodes/site_stat.html new file mode 100644 index 0000000..35f4f3f --- /dev/null +++ b/layouts/shortcodes/site_stat.html @@ -0,0 +1,9 @@ +{{- $graph := .Get 0 }} +{{- $alt := .Get 1 }} + +<figure> + <figcaption>{{$alt}}</figcaption> + <a href="https://michal.sapka.me/site-stats/{{$graph}}" target="_blank"> + <img width="980" height="300" loading="lazy" alt="{{$alt}}" src="https://michal.sapka.me/site-stats/{{$graph}}"> + </a> +</figure> |