diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 03:01:15 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-01-06 03:01:15 +0100 |
commit | ecb7569b3c047f6e6845f8a49f6eee3d6762a968 (patch) | |
tree | bb891a042c1ae57bb25c71bd739564e07812b6f4 /layouts/partials | |
parent | 9dcafb5af5332ba0a5753abf441183417880a739 (diff) | |
download | hugo-minimalist-theme-ecb7569b3c047f6e6845f8a49f6eee3d6762a968.tar.gz hugo-minimalist-theme-ecb7569b3c047f6e6845f8a49f6eee3d6762a968.tar.bz2 hugo-minimalist-theme-ecb7569b3c047f6e6845f8a49f6eee3d6762a968.zip |
transfer so partial and defaults
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/attribution.html | 16 | ||||
-rw-r--r-- | layouts/partials/footer.html | 27 | ||||
-rw-r--r-- | layouts/partials/pagination.html | 6 | ||||
-rw-r--r-- | layouts/partials/post.html | 2 |
4 files changed, 22 insertions, 29 deletions
diff --git a/layouts/partials/attribution.html b/layouts/partials/attribution.html index 8ef271a..e69341b 100644 --- a/layouts/partials/attribution.html +++ b/layouts/partials/attribution.html @@ -1,4 +1,4 @@ -<div class="tc my-4"> +<div class="border-t border-gray-500 py-4 my-2"> {{ if in (slice "by" "by-nd" "by-sa" "by-nc" "by-nc-nd" "by-nc-sa") .license }} {{ $href := printf "http://creativecommons.org/licenses/%s/4.0/" .license }} <div @@ -12,7 +12,7 @@ rel="cc:attributionURL dct:creator" property="cc:attributionName" href="{{ . }}" - class="dim" + class="hover:opacity-50" > {{ $.Author.name }} </a> @@ -25,7 +25,7 @@ target="_blank" rel="license noopener noreferrer" href="{{ $href }}" - class="block dim" + class="block hover:opacity-50" > Creative Commons {{ with .license }} @@ -39,15 +39,15 @@ {{ end }} 4.0 International License <span class="block m-2"> - <i class="f2 fab fa-creative-commons"></i> - <i class="f2 fab fa-creative-commons-by"></i> + <i class="text-4xl fab fa-creative-commons"></i> + <i class="text-4xl fab fa-creative-commons-by"></i> {{ with .license }} {{ if in . "by-nc" }} - <i class="f2 fab fa-creative-commons-nc"></i> + <i class="text-4xl fab fa-creative-commons-nc"></i> {{ end }}{{ if in . "-nd" }} - <i class="f2 fab fa-creative-commons-nd"></i> + <i class="text-4xl fab fa-creative-commons-nd"></i> {{ else if in . "-sa" }} - <i class="f2 fab fa-creative-commons-sa"></i> + <i class="text-4xl fab fa-creative-commons-sa"></i> {{ end }} {{ end }} </span> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9686e11..4a977f1 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,25 +1,19 @@ -<footer class="bg-black w-100 p-4 near-white"> +<footer class="bg-black w-full p-4 text-center text-white text-lg"> <div class="max-w-screen-md mx-auto"> {{ if in .Site.Params.mainSections .Section }} - <a - href="/{{ .Section }}/index.xml" - class="color-inherit block tc my-2 dim" - > + <a href="/{{ .Section }}/index.xml" class="block my-2 hover:opacity-50"> {{ T "rss_follow" (dict "section" (T .Section)) }} <i class="fa-solid fa-rss"></i> </a> {{ end }} - - <ul class="m-0 p-0 list overflow-hidden avenir tc bb b--white-40"> - {{ range .Site.Menus.footer }} - <li class="dib dim"> - <a class="block f6 p-2 near-white" href="{{ .URL | relLangURL }}" - >{{ T .Name | safeHTML }} - </a> - </li> - {{ end }} - </ul> + {{ range .Site.Menus.footer }} + <a + class="inline hover:opacity-50 text-base p-2" + href="{{ .URL | relLangURL }}" + >{{ T .Name | safeHTML }} + </a> + {{ end }} {{ with .Site.GetPage "footer.md" }} {{ .Content }} @@ -27,8 +21,7 @@ {{ partial "attribution.html" .Site.Params }} - - <div class="tc my-2"> + <div class="my-2"> Made in anger with <a href="https://git.oscarnajera.com/hugo-minimalist-theme/about/" diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 93c7b0b..6fdb89b 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -2,16 +2,16 @@ {{ if gt $pag.TotalPages 1 }} <nav class="flex items-center justify-center pa4 f5"> {{ if $pag.HasPrev }} - <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black grow hover-bg-light-gray p-2 ba">« {{ T "prev" }}</a> + <a href="{{ $pag.Prev.URL }}" rel="prev" class="near-black transition hover:scale-105 hover-bg-light-gray p-2 ba">« {{ T "prev" }}</a> {{ end }} {{ range $pag.Pagers }} {{ if eq . $pag }} <span class= "near-white bg-gray m-1 p-2 ba"> {{ $pag.PageNumber }}</span> {{ else }} - <a href="{{ .URL }}" class="block near-black grow hover-bg-light-gray hover-near-black p-2 ba">{{ .PageNumber }}</a> + <a href="{{ .URL }}" class="block near-black transition hover:scale-105 hover-bg-light-gray hover-near-black p-2 ba">{{ .PageNumber }}</a> {{ end }} {{ end }} {{ if $pag.HasNext }} - <a href="{{ $pag.Next.URL }}" rel="next" class="near-black grow hover-bg-light-gray p-2 ba">{{ T "next" }} »</a> {{ end }} + <a href="{{ $pag.Next.URL }}" rel="next" class="near-black transition hover:scale-105 hover-bg-light-gray p-2 ba">{{ T "next" }} »</a> {{ end }} </nav> {{ end }} diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 28c7dec..8afa03e 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,6 +1,6 @@ <article class="py-2 border-y border-gray-200"> {{ partial "meta_links.html" . }} - <a class="block dim text-slate-900" href="{{ .RelPermalink }}"> + <a class="block hover:opacity-50 text-slate-900" href="{{ .RelPermalink }}"> <div class="md:flex"> {{ $image := "" }} {{ if (.Resources.ByType "image").GetMatch "featured*" }} |