Skip to content

Commit 58c3f79

Browse files
committed
update footer
1 parent f5daf5a commit 58c3f79

7 files changed

Lines changed: 89 additions & 22 deletions

File tree

hugo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ ignorelogs = ['warning-goldmark-raw-html']
1717
ShowReadingTime = false
1818
ShowShareButtons = false
1919
disableHLJS = false
20+
Footer = "Music Technology Group - Universitat Pompeu Fabra"
21+
Copyright = "All content © 2025 MTG-UPF"
2022
[params.assets]
2123
customCSS = ["css/custom.css"]
2224

layouts/partials/footer.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<footer class="footer">
2+
{{ if .Site.Params.CustomFooterHTML }}
3+
{{ .Site.Params.CustomFooterHTML | safeHTML }}
4+
{{ end }}
5+
6+
{{ .Scratch.Set "footerText" "" }}
7+
8+
{{ if (.Site.Params.Footer) }}
9+
{{ if and (eq .Kind "page") (.Date) }}
10+
{{ .Scratch.Add "footerText" (.Date | time.Format "2006") }}
11+
{{ else }}
12+
{{ .Scratch.Add "footerText" (time.Now | time.Format "2006") }}
13+
{{ end }}
14+
{{ .Scratch.Add "footerText" " " }}
15+
{{ .Scratch.Add "footerText" .Site.Params.Footer }}
16+
{{ if and (eq .Kind "page") (.Site.Copyright) }}
17+
{{ .Scratch.Add "footerText" " " }}
18+
{{ .Scratch.Add "footerText" .Site.Copyright }}
19+
{{ end }}
20+
{{ end }}
21+
22+
{{ if (gt (.Scratch.Get "footerText" | len) 0) }}
23+
<span>&copy; {{ .Scratch.Get "footerText" | markdownify }}</span>
24+
{{ end }}
25+
</footer>

public/404.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,22 @@ <h2>
143143

144144

145145
</main><footer class="footer">
146+
147+
148+
149+
150+
146151

152+
147153

148-
149154

150-
151155

152-
153156

157+
154158

155-
<span>
156-
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
157-
</span>
159+
160+
<span>&copy; 2025 Music Technology Group - Universitat Pompeu Fabra</span>
161+
158162
</footer>
159163
</body>
160164
</html>

public/about/index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,22 @@ <h3>Thomas Nuttall</h3>
163163

164164

165165
</main><footer class="footer">
166+
167+
168+
169+
170+
166171

172+
167173

168-
169174

170-
171175

172-
173176

177+
174178

175-
<span>
176-
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
177-
</span>
179+
180+
<span>&copy; 2025 Music Technology Group - Universitat Pompeu Fabra</span>
181+
178182
</footer>
179183
</body>
180184
</html>

public/categories/index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,25 @@ <h1 class="list-title">Tags</h1>
141141

142142

143143

144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
<span>&copy; 2025 Music Technology Group - Universitat Pompeu Fabra</span>
144159

145160

146161
<span>
147-
148-
© 2025 Music Technology Group, Universitat Pompeu Fabra
162+
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
149163
</span>
150164
</footer>
151165
</body>

public/index.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,18 +223,22 @@ <h3 id="-23-may-2025">🗓️ 23 May 2025</h3>
223223

224224

225225
</main><footer class="footer">
226+
227+
228+
229+
230+
226231

232+
227233

228-
229234

230-
231235

232-
233236

237+
234238

235-
<span>
236-
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
237-
</span>
239+
240+
<span>&copy; 2025 Music Technology Group - Universitat Pompeu Fabra</span>
241+
238242
</footer>
239243
</body>
240244
</html>

public/tags/index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,25 @@ <h1 class="list-title">Tags</h1>
141141

142142

143143

144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
<span>&copy; 2025 Music Technology Group - Universitat Pompeu Fabra</span>
144159

145160

146161
<span>
147-
148-
© 2025 Music Technology Group, Universitat Pompeu Fabra
162+
Made with &#10084;&#65039; using <a target="_blank" href="https://github.com/gokarna-theme/gokarna-hugo">Gokarna</a>
149163
</span>
150164
</footer>
151165
</body>

0 commit comments

Comments
 (0)