1
0

Add some changes to the footer for images.

This commit is contained in:
2025-04-29 23:37:00 -07:00
parent 7cf752f864
commit 914c2c4134
3 changed files with 28 additions and 3 deletions

View File

@@ -1,3 +1,14 @@
{{- /* Footer custom content area start */ -}}
{{- /* Insert any custom code web-analytics, resources, etc. here */ -}}
{{- range .Site.Params.Footer.images -}}
{{- if .url -}}
<a href="{{ .url }}" target="_blank" style="border-bottom: none;">
{{- end -}}
<img src="{{ .path }}" style="display: inline" {{- if .altText -}} alt="{{ .altText }}"{{- end -}} />
{{- if .url -}}
</a>
{{- end -}}
&nbsp;
{{- end -}}
{{- /* Footer custom content area end */ -}}

View File

@@ -1,4 +1,18 @@
{{- /* Head custom content area start */ -}}
{{- /* Insert any custom code (web-analytics, resources, etc.) - it will appear in the <head></head> section of every page. */ -}}
{{- /* Can be overwritten by partial with the same name in the global layouts. */ -}}
<style>
a.nodecoration:link {
text-decoration: none;
}
a.nodecoration:visited {
text-decoration: none;
}
a.nodecoration:hover {
text-decoration: none;
}
a.nodecoration:active {
text-decoration: none;
}
</style>
{{- /* Head custom content area end */ -}}

View File

@@ -1,5 +1,7 @@
{{- if not (.Param "hideFooter") }}
<footer class="footer">
{{- partial "extend_footer.html" . }}
{{- if not site.Params.footer.hideCopyright }}
{{- if site.Copyright }}
<span>{{ site.Copyright | markdownify }}</span>
@@ -17,7 +19,7 @@
<span>
Powered by
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a> (with some minor edits by me)
</span>
</footer>
{{- end }}
@@ -30,8 +32,6 @@
</a>
{{- end }}
{{- partial "extend_footer.html" . }}
<script>
let menu = document.getElementById('menu')
if (menu) {