aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/home.html')
-rw-r--r--layouts/_default/home.html69
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 }}