diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-29 23:16:58 +0100 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-29 23:16:58 +0100 |
| commit | fb0d8f212bb4c7544590fb9b2ae298f346814519 (patch) | |
| tree | da00a160e75afa19368bbdb2c01b994f5f59b124 /layouts | |
| parent | 0b5462cb77a2412ab0ed1f118563a2252bd6c4d3 (diff) | |
Update to copied guides and hugo templates
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/single.html | 2 | ||||
| -rw-r--r-- | layouts/partials/nav.html | 6 | ||||
| -rw-r--r-- | layouts/shortcodes/img.html | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3bc97a2..97190e4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }} {{ with .Params.icon }} -<img style="height: 10em;display: block;margin: auto;" src="{{ . }}"> +<img src="{{ . }}" class="icon"> {{ end }} {{ if .Params.table }} <h2>Table of Contents</h2> diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..f3aeb0a --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,6 @@ +<nav style="display: flex;justify-content: space-around;"> + <a href="/stuff">stuff</a> + <a href="/contact">contact</a> + <a href="https://codeberg.org/mielota">git</a> + <a href="https://dns.mielota.com">dns</a> +</nav> diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 013637a..8685a99 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1 +1 @@ -<img src='{{ .Get "src" }}' alt='{{ .Get "alt" }}'> +<img src='{{ .Get "src" }}' alt='{{ .Get "alt" }}' class='{{ .Get "size" }}'> |
