diff options
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" }}'> |
