diff options
| author | yingyu5658 <yingyu5658@outlook.com> | 2025-08-01 21:30:53 +0800 |
|---|---|---|
| committer | yingyu5658 <yingyu5658@outlook.com> | 2025-08-01 21:30:53 +0800 |
| commit | 70c5a2b6fb60bd90e7780fa220bfe146141d00e2 (patch) | |
| tree | 62e4c8e25b1c426c4f6ce21cf25e865445b176d4 /layouts/_default/home.html | |
| download | hugo-theme-concise-70c5a2b6fb60bd90e7780fa220bfe146141d00e2.tar.gz hugo-theme-concise-70c5a2b6fb60bd90e7780fa220bfe146141d00e2.zip | |
Initial commit
Diffstat (limited to 'layouts/_default/home.html')
| -rw-r--r-- | layouts/_default/home.html | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..ec365f8 --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,69 @@ +{{ define "main" }} + +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>{{site.Title}}</title> + <style> + .main { + text-align: center; + height: 200px; + position: absolute; + left: 50%; + top: 50%; + margin-left: -100px; + margin-top: -100px; + } + + .main h2 { + margin-bottom: 0.1px; + line-height: 0; + } + + hr::after { + content: "❧"; + color: #212721; + width: 10rem; + display: inline-block; + background: linear-gradient(to bottom, transparent calc(50% - 0.5px), #212721 calc(50% - 0.5px), #212721, #212721 calc(50% + 0.5px), transparent calc(50% + 0.5px)); + text-shadow: 0px 0px 3px #fff; + font-size: 1.5rem; + } + + hr { + padding: 0.3rem 0; + border: none; + width: 100%; + display: block; + text-align: center; + height: 1.5rem; + } + + ul { + margin-top: 3px; + text-align: left; + } + + li { + list-style: none; + } + + li a { + margin-right: 60px; + } + + </style> +</head> + +<body> + <div class="main"> + <h2>{{ .Site.Title }}</h2> + <hr> + <ul> + {{ range .Site.Params.homepage.content }} + <li><a href="{{ .url }}">- {{ .name }}</a></li> + {{ end }} + </ul> + </div> +</body> +{{ end }} |
