wip making it mine
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
{{ with .Site.Params.favicon -}}
|
||||
<link rel="shortcut icon" href="{{ . }}" type="image/x-icon">
|
||||
{{ end -}}
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -28,19 +31,6 @@
|
||||
{{- range .Site.Menus.main -}}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{- end -}}
|
||||
{{ if isset site.Params "search" -}}
|
||||
{{ if eq site.Params.Search "baidu" -}}
|
||||
{{ partial "search.html" (dict "url" "https://www.baidu.com/s" "key" "wd") -}}
|
||||
{{ else if eq site.Params.Search "google" -}}
|
||||
{{ partial "search.html" (dict "url" "https://www.google.com/search" "key" "q") -}}
|
||||
{{ else if eq site.Params.Search "bing" -}}
|
||||
{{ partial "search.html" (dict "url" "https://www.bing.com/search" "key" "q") -}}
|
||||
{{ else if eq site.Params.Search "duckduckgo" -}}
|
||||
{{ partial "search.html" (dict "url" "https://www.duckduckgo.com/" "key" "q") -}}
|
||||
{{ else -}}
|
||||
{{ errorf "Unknown 'Site.Params.Search' value '%s'! Only 'baidu' is supported now." site.Params.Search -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
@@ -52,13 +42,10 @@
|
||||
{{- if .Site.Copyright -}}
|
||||
{{ .Site.Copyright | markdownify }}
|
||||
{{- else -}}
|
||||
© Motiejus Jakštys. <a href="https://creativecommons.org/licenses/by/4.0/deed.zh">CC-BY-4.0</a>
|
||||
© Motiejus Jakštys. <a href="https://creativecommons.org/licenses/by/4.0/">CC-BY-4.0</a>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{{ template "_internal/google_analytics.html" . -}}
|
||||
{{ partial "github-corner.html" . -}}
|
||||
{{ partial "external-links.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user