feat: initial commit
This commit is contained in:
18
layouts/_default/baseof.html
Normal file
18
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" href="/css/theme.css">
|
||||
<link id="chroma-latte" rel="stylesheet" href="/css/latte-chroma-style.css">
|
||||
<link id="chroma-mocha" rel="stylesheet" href="/css/mocha-chroma-style.css" disabled>
|
||||
<script defer src="/theme.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "header.html" . }}
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
19
layouts/_default/list.html
Normal file
19
layouts/_default/list.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<section>
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
<article class="post-card">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
{{ with .Params.tags }}
|
||||
· {{ range . }}<span class="tag">#{{ . }}</span>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ with .Summary }}<p>{{ . }}</p>{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
|
||||
16
layouts/_default/single.html
Normal file
16
layouts/_default/single.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<article class="with-sidenotes">
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="post-meta">
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time>
|
||||
{{ with .Params.tags }}
|
||||
· {{ range . }}<span class="tag">#{{ . }}</span>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
<div class="content">{{ .Content }}</div>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user