diff options
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/pf_stat.html | 27 | ||||
-rw-r--r-- | layouts/shortcodes/post-count.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/recent-updates.html | 4 |
3 files changed, 26 insertions, 6 deletions
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> |