diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_partials/footer.html | 82 | ||||
| -rw-r--r-- | layouts/_partials/home/more-links.html | 7 | ||||
| -rw-r--r-- | layouts/_partials/home/selected-works.html | 1 | ||||
| -rw-r--r-- | layouts/home.html | 1 |
4 files changed, 45 insertions, 46 deletions
diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html index fc3d044..03d9428 100644 --- a/layouts/_partials/footer.html +++ b/layouts/_partials/footer.html @@ -1,43 +1,49 @@ <footer class="pagefind-exclude my-8 mx-auto font-mono px-4 md:px-0 text-sm - md:w-[var(--page-width)] md:flex md:justify-between"> - <!-- copyright --> - <section> - <p class="copyright">© 2022-{{ now | dateFormat "2006" }} <a href="https://www.eltr.ac/" target="_blank">Eltrac</a></p> - <p class="license">{{ T "footer.licenseStatement" (printf "<a href=\"https://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">CC BY-SA 4.0</a>") | safeHTML }}</p> - </section> - <!-- links --> - <section class="flex justify-between items-center - md:justify-start md:flex-col md:items-end"> + md:w-[var(--page-width)]"> + <div class="md:flex md:justify-between"> + <!-- copyright --> + <section> + <p class="copyright">© 2022-{{ now | dateFormat "2006" }} <a href="https://www.eltr.ac/" target="_blank">Eltrac</a></p> + <p class="license">{{ T "footer.licenseStatement" (printf "<a href=\"https://creativecommons.org/licenses/by-sa/4.0/\" target=\"_blank\">CC BY-SA 4.0</a>") | safeHTML }}</p> + </section> + <!-- links --> + <section class="flex justify-between items-center + md:justify-start md:flex-col md:items-end"> - <!-- IndieWeb ring --> - <p class="inline-flex justify-center items-center gap-2"> - <a href="https://xn--sr8hvo.ws/previous">←</a> - <a href="https://xn--sr8hvo.ws">IndieWeb ring</a> - <a href="https://xn--sr8hvo.ws/next">→</a> - </p> - <!-- External Links --> - <ul class="list-style-none flex items-center gap-2 ps-0 m-0 md:justify-end"> - {{ range .Site.Params.footerExternalLinks }} - <li class="inline-flex items-center"> - <a href="{{ .link }}" title="{{ .name }}" target="_blank" - class="transition opacity-70 hover:opacity-100 hover:no-underline"> - {{ if strings.Contains .icon "/" }} - <img - class="h-4 w-auto inline-block grayscale dark:invert" - src="{{ .icon }}" - alt="{{ .name }} icon." - loading="lazy" - width="1rem" - height="1rem" - /> - {{ else }} - <span class="text-size-4 font-serif">{{ .icon }}</span> - {{ end }} - </a> - </li> - {{ end }} - </ul> + <!-- Internal Links --> + <ul class="flex list-none gap-1 ps-0 my-2 mx-0"> + {{ range .Site.Params.internalLinks }} + <li><a href="{{ .link }}" title="{{ .name }}" + class="text-secondary">{{ .name }}</a></li> + <li class="text-secondary last:hidden">·</li> + {{ end }} + </ul> + + <!-- External Links --> + <ul class="list-style-none flex items-center gap-2 ps-0 my-2 mx-0 md:justify-end"> + {{ range .Site.Params.footerExternalLinks }} + <li class="inline-flex items-center"> + <a href="{{ .link }}" title="{{ .name }}" target="_blank" + class="transition opacity-70 hover:opacity-100 hover:no-underline"> + {{ if strings.Contains .icon "/" }} + <img + class="h-4 w-auto inline-block grayscale dark:invert" + src="{{ .icon }}" + alt="{{ .name }} icon." + loading="lazy" + width="1rem" + height="1rem" + /> + {{ else }} + <span class="text-size-4 font-serif">{{ .icon }}</span> + {{ end }} + </a> + </li> + {{ end }} + </ul> + + </section> + </div> - </section> </footer> diff --git a/layouts/_partials/home/more-links.html b/layouts/_partials/home/more-links.html index b4c614e..e003635 100644 --- a/layouts/_partials/home/more-links.html +++ b/layouts/_partials/home/more-links.html @@ -5,11 +5,4 @@ {{ T "seeArchive" }} → </a> </div> - <ul class="list-none flex gap-1 md:gap-2 text-sm md:text-base ps-0 my-2 mx-0 md:justify-end"> - {{ range .Site.Params.internalLinks }} - <li><a href="{{ .link }}" title="{{ .name }}" - class="text-secondary">{{ .name }}</a></li> - <li class="text-secondary last:hidden">·</li> - {{ end }} - </ul> </div> diff --git a/layouts/_partials/home/selected-works.html b/layouts/_partials/home/selected-works.html index 948210a..c1281d4 100644 --- a/layouts/_partials/home/selected-works.html +++ b/layouts/_partials/home/selected-works.html @@ -74,6 +74,7 @@ 实心圆表示正刊,空心圆表示小报。 </p> </div> + {{ partial "home/more-links" . }} </section> diff --git a/layouts/home.html b/layouts/home.html index 6a511bb..60e73f0 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -2,7 +2,6 @@ {{ partial "home/microformats" . }} <article class="pagefind-exclude"> {{ partial "home/latest-posts" . }} - {{ partial "home/more-links" . }} {{ if eq .Site.Language.Lang "zh" }} <hr/> {{ partial "home/selected-works" . }} |
