-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathbaseof.html
More file actions
51 lines (42 loc) · 1.65 KB
/
Copy pathbaseof.html
File metadata and controls
51 lines (42 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" data-colorscheme="{{ .Site.Params.colorScheme }}" >
<head>
{{ print "<!-- Generated " (time.Now.UTC.Format "2006-01-02 15:04:05 UTC") " -->" | safeHTML }}
{{ partial "meta.html" . }}
{{ with .Params.canonicalURL -}}
<link rel="canonical" href="{{ . }}">
{{- end }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ if not (eq .Site.Title .Title) }} - {{ .Title }}{{end}}{{ end }}</title>
<!-- Render theme css -->
{{ partial "css.html" . -}}
<!-- Add MathJax, if needed -->
{{ partial "mathjax.html" . }}
<!-- Render custom user header -->
{{ partial "head.html" . -}}
<!-- Refer: https://regisphilibert.com/blog/2018/08/hugo-multilingual-part-1-managing-content-translation/ -->
{{ if .IsTranslated }}
{{ range .Translations }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .RelPermalink }}" title="{{ .Language.LanguageName }}" />
{{ end }}
{{ end -}}
<!-- Add twitter card for logo and images. You can preview cards in the X compose window. -->
{{ template "_internal/twitter_cards.html" . }}
</head>
<body>
{{ block "navbar" . }}
{{ partial "navbar.html" . -}}
{{ end }}
{{ if .Site.Params.search }}
{{ partial "search.html" . }}
{{ end }}
{{ block "main" . }}
{{ end }}
<!-- Back To Top Button -->
<div id="backtotop"><a href="#" id="backtotop-color"><i class="fa-solid fa-arrow-up"></i></a></div>
{{ if .Site.Params.footer }}
{{ partial "footer.html" . -}}
{{ end }}
</body>
{{ partial "javascript.html" . -}}
{{ partial "analytics.html" . -}}
</html>