Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinlin Yan <yanlinlin82@gmail.com>2022-04-04 13:56:16 +0300
committerLinlin Yan <yanlinlin82@gmail.com>2022-04-04 13:56:16 +0300
commit409fb69267d04ff89c885122526bccbb7e334376 (patch)
tree18232c1bca12ab6b0665bbb21bf20f633781fb0c
parent5c7b56f2e1a78a77a7b5fdda5d717da77da49479 (diff)
Reformat HTML.
-rw-r--r--layouts/_default/baseof.html82
1 files changed, 41 insertions, 41 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 8bac5e9..6af1f0e 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,54 +1,54 @@
<!DOCTYPE html>
<html>
<head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1">
-{{ partial "html-meta.html" . -}}
-<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
-<link rel="stylesheet" type="text/css" href="{{ "/css/main.css" | relURL }}">
-{{ with .Site.Params.favicon -}}
-<link rel="icon" href="{{ . }}" type="image/x-icon">
-{{ end -}}
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{ partial "html-meta.html" . -}}
+ <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
+ <link rel="stylesheet" type="text/css" href="{{ "/css/main.css" | relURL }}">
+ {{ with .Site.Params.favicon -}}
+ <link rel="shortcut icon" href="{{ . }}" type="image/x-icon">
+ {{ end -}}
</head>
<body>
-<header>
- {{ with .Site.Menus.parent -}}
- <nav>
- {{ range . -}}
- <a href="{{ .URL }}">{{ .Name }}</a>
+ <header>
+ {{ with .Site.Menus.parent -}}
+ <nav>
+ {{ range . -}}
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ {{ end -}}
+ </nav>
{{ end -}}
- </nav>
- {{ end -}}
- <div>
- <h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
- {{- if .Site.Params.subtitle }}<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Params.subtitle }}</a></h2>{{- end }}
- </div>
- <nav>
- {{- range .Site.Menus.main -}}
- <a href="{{ .URL }}">{{ .Name }}</a>
- {{- end -}}
- </nav>
-</header>
-<main>
- <article>
- {{ block "main" . }}{{- end }}
- </article>
-</main>
-<footer>
- <div>
<div>
- {{- if .Site.Copyright -}}
+ <h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
+ {{- if .Site.Params.subtitle }}<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Params.subtitle }}</a></h2>{{- end }}
+ </div>
+ <nav>
+ {{- range .Site.Menus.main -}}
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ {{- end -}}
+ </nav>
+ </header>
+ <main>
+ <article>
+ {{ block "main" . }}{{- end }}
+ </article>
+ </main>
+ <footer>
+ <div>
+ <div>
+ {{- if .Site.Copyright -}}
{{ .Site.Copyright | markdownify }}
- {{- else -}}
+ {{- else -}}
&copy; 2019 Linlin Yan. <a href="https://creativecommons.org/licenses/by/4.0/deed.zh">CC-BY-4.0</a>
- {{- end -}}
- {{- if .Site.Params.ShowThemeInfo -}}
+ {{- end -}}
+ {{- if .Site.Params.ShowThemeInfo -}}
<p>Powered by <a href="https://gohugo.io/">Hugo</a> with <a href="https://github.com/yanlinlin82/simple-style">Simple-Style</a>
- {{- end -}}
+ {{- end -}}
+ </div>
</div>
- </div>
-</footer>
-{{ template "_internal/google_analytics_async.html" . -}}
-{{ partial "github-corner.html" . -}}
+ </footer>
+ {{ template "_internal/google_analytics_async.html" . -}}
+ {{ partial "github-corner.html" . -}}
</body>
</html>