Update theme

This commit is contained in:
Marko Korhonen 2025-03-24 13:50:49 -05:00
parent 32fdb6fe88
commit 2a96fe8b32
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
5 changed files with 21 additions and 18 deletions

View file

@ -77,7 +77,7 @@
<footer id="footer" class="container-fluid text-center align-content-center footer pb-2">
<div class="container pt-5">
<div class="row text-left">
<div class="row text-start">
{{ if $navigationEnabled }}
<div class="col-md-4 col-sm-12">
<h5>{{ i18n "navigation" }}</h5>
@ -204,15 +204,15 @@
{{ if $credentialsEnabled }}
<hr />
<div class="container">
<div class="row text-left">
<div class="row text-start">
<div class="col-md-4">
<a id="theme" href="https://github.com/hugo-toha/toha" target="_blank" rel="noopener">
<img src="{{ $themeLogo }}" alt="Toha Theme Logo">
Toha theme {{ $tohaVersion }}
</a>
</div>
<div class="col-md-4 text-center">{{ replace $copyrightNotice "{year}" now.Year | markdownify }}</div>
<div class="col-md-4 text-right">
<div class="col-md-4 text-center">{{ $copyrightNotice | markdownify }}</div>
<div class="col-md-4 text-end">
<a id="hugo" href="https://gohugo.io/" target="_blank" rel="noopener">{{ i18n "hugoAttributionText" }}
<img
src="{{ $hugoLogo }}"

View file

@ -22,16 +22,17 @@
{{ partial "helpers/style-bundle.html" . }}
<!--================= fab-icon =========================-->
{{/* add favicon only if the site author has provided the the favicon */}}
{{ if site.Params.logo.favicon }}
{{ $favicon := site.Params.logo.favicon }}
{{/* add favicon only if the site author has provided the the favicon */}} {{ if
site.Params.logo.favicon }} {{ $favicon := site.Params.logo.favicon }} {{/*
resize the favicon. don't resize svg because it is not supported */}} {{
$favicon = resources.Get $favicon }} {{ if and $favicon (ne
$favicon.MediaType.SubType "svg") }} {{ $favicon = $favicon.Resize "42x" }} {{
end }} {{ $favicon = $favicon.RelPermalink}}
{{/* resize the favicon. don't resize svg because it is not supported */}}
{{ $favicon = resources.Get $favicon }}
{{ if and $favicon (ne $favicon.MediaType.SubType "svg") }}
{{ $favicon = $favicon.Resize "42x" }}
{{ end }}
{{ $favicon = $favicon.RelPermalink}}
<link rel="icon" type="image/png" href="{{ $favicon }}" />
{{end}}
<link rel="icon" type="image/png" href="{{ $favicon }}" />
{{end}} {{ with .OutputFormats.Get "rss" -}} {{ printf `<link
rel="%q"
type="%q"
href="%q"
title="%q"
/>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} {{ end }}