aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.html
blob: ec365f8d6e2a057eaa4997181cb268256f7d28fc (plain) (blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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 }}