Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit f4314fb

Browse files
committed
Disable footer on index, comments on about, change math param
1 parent 41eeb02 commit f4314fb

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

.hugo_build.lock

Whitespace-only changes.

config.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ params:
2929
images: ["logo_outlined_6.png"]
3030
DateFormat: "January 2, 2006"
3131
# dark, light
32-
defaultTheme: auto
32+
# Use dark default because code blocks and comments look good on dark
33+
# TODO: Use auto if I can make code blocks and comments use the website theme
34+
defaultTheme: dark
3335
disableThemeToggle: false
3436

3537
ShowReadingTime: true
@@ -49,6 +51,7 @@ params:
4951
showtoc: true
5052
tocopen: true
5153
# Enable KaTeX on every page by default
54+
# If page local param math is false, then KaTeX will be disabled (see layouts/partials/extend_head.html)
5255
math: true
5356
# Without this, archive doesn't show all pages
5457
# See https://github.com/adityatelange/hugo-PaperMod/issues/912
@@ -68,7 +71,7 @@ params:
6871
# favicon16x16: "favicon-16x16.png"
6972
# favicon32x32: "favicon-32x32.png"
7073
# apple_touch_icon: "apple-touch-icon.png"
71-
# safari_pinned_tab: "<link / abs url>"
74+
# safari_pinned_tab: "safari-pinned-tab.svg"
7275

7376
# Top left of site
7477
label:
@@ -81,7 +84,7 @@ params:
8184
# Needs to be explicitly set
8285
enabled: true
8386
title: Jesse Wei
84-
subtitle: "{CS Master's student, Researcher, Serial COMP TA} @ [UNC](https://unc.edu). **[Read more](about)**"
87+
subtitle: "{CS Master's student, Researcher, Serial COMP TA} @ [UNC](https://unc.edu). **[Read more](/about)**"
8588
imageUrl: "me.jpg"
8689
imageWidth: 150
8790
imageHeight: 150

content/about.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "About me"
33
date: 2023-05-10T16:53:59-04:00
44
draft: false
55
showToc: false
6+
comments: false
67
---
78

89
{{< rawhtml >}}

layouts/partials/extend_head.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
<!-- KaTeX support. Source: https://github.com/adityatelange/hugo-PaperMod/issues/236 -->
2-
{{ if or .Params.math .Site.Params.math }}
1+
<!-- KaTeX support. Source: https://github.com/adityatelange/hugo-PaperMod/issues/236
2+
Slight if condition modification from me.
3+
To enable KaTeX, site param math must be true.
4+
Local page param math false will disable KaTeX. -->
5+
{{ if and (ne .Params.math false) .Site.Params.math }}
36
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
47
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin="anonymous"></script>
58
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin="anonymous"

layouts/partials/footer.html

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
{{- if not (.Param "hideFooter") }}
1+
<!-- Display footer if not on homepage and hideFooter is false. -->
2+
{{- if and (ne .Title `Jesse Wei`) (not ( .Param "hideFooter")) }}
23
<footer class="footer">
3-
<!-- Hide social icons on homepage using .Title. -->
4-
{{- if (ne .Title `Jesse Wei`)}}
54
{{- partial "social_icons.html" site.Params.socialIcons -}}
6-
{{- end }}
75

86
{{- if site.Copyright }}
97
<span>{{ site.Copyright | markdownify }}</span>
108
{{- else }}
119
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ site.Title }}</a></span>
1210
{{- end }}
1311

14-
<!-- Also hide Powered by Hugo & PaperMod on homepage -->
15-
{{- if (ne .Title `Jesse Wei`)}}
1612
<span>
1713
Powered by
1814
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
1915
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
2016
</span>
21-
{{- end }}
2217
</footer>
2318
{{- end }}
2419

0 commit comments

Comments
 (0)