Val's Dreamscape Journal - initial
This commit is contained in:
17
themes/dreamscape/layouts/_default/baseof.html
Normal file
17
themes/dreamscape/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
|
||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
</head>
|
||||
<body class="{{ if .IsHome }}home{{ else }}page{{ end }}">
|
||||
{{- partial "header.html" . -}}
|
||||
<main>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
16
themes/dreamscape/layouts/_default/list.html
Normal file
16
themes/dreamscape/layouts/_default/list.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<div class="page-header">
|
||||
<h1>{{ .Title | default .Section | title }}</h1>
|
||||
{{ if .Content }}<div class="section-desc">{{ .Content }}</div>{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
{{ range .Paginator.Pages }}
|
||||
<article class="list-item">
|
||||
<time>{{ .Date.Format "2006-01-02" }}</time>
|
||||
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p>{{ .Summary | truncate 100 }}</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
19
themes/dreamscape/layouts/_default/single.html
Normal file
19
themes/dreamscape/layouts/_default/single.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "main" }}
|
||||
<div class="page-header">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ if .Params.subtitle }}<p class="subtitle">{{ .Params.subtitle }}</p>{{ end }}
|
||||
<div class="meta">
|
||||
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006年01月02日" }}</time>
|
||||
{{ with .Params.tags }}<span class="tags">{{ range . }}<span class="tag">{{ . }}</span>{{ end }}</span>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<article class="article">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
|
||||
<nav class="post-nav">
|
||||
{{ with .PrevInSection }}<a href="{{ .RelPermalink }}" class="prev">← {{ .Title }}</a>{{ end }}
|
||||
{{ with .NextInSection }}<a href="{{ .RelPermalink }}" class="next">{{ .Title }} →</a>{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
32
themes/dreamscape/layouts/index.html
Normal file
32
themes/dreamscape/layouts/index.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{{ define "main" }}
|
||||
<div class="home">
|
||||
<section class="hero">
|
||||
<h1 class="hero-title">{{ .Site.Title }}</h1>
|
||||
<p class="hero-subtitle">{{ .Site.Params.description }}</p>
|
||||
</section>
|
||||
|
||||
{{ $sections := slice "journey" "sketch" "gallery" "essay" }}
|
||||
{{ range $sections }}
|
||||
{{ $pages := where $.Site.RegularPages "Section" . }}
|
||||
{{ if $pages }}
|
||||
<section class="section">
|
||||
<h2 class="section-title">
|
||||
<a href="/{{ . }}/">{{ . | title }} · {{ len $pages }}</a>
|
||||
</h2>
|
||||
<div class="card-grid">
|
||||
{{ range first 3 $pages }}
|
||||
<article class="card">
|
||||
<div class="card-meta">
|
||||
<time>{{ .Date.Format "2006-01-02" }}</time>
|
||||
{{ with .Params.tags }}<span class="tags">{{ range . }}<span class="tag">{{ . }}</span>{{ end }}</span>{{ end }}
|
||||
</div>
|
||||
<h3 class="card-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
<p class="card-summary">{{ .Summary | truncate 120 }}</p>
|
||||
</article>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
3
themes/dreamscape/layouts/partials/footer.html
Normal file
3
themes/dreamscape/layouts/partials/footer.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<footer class="site-footer">
|
||||
<p>© {{ now.Year }} {{ .Site.Params.author }} · {{ .Site.Title }}</p>
|
||||
</footer>
|
||||
3
themes/dreamscape/layouts/partials/head.html
Normal file
3
themes/dreamscape/layouts/partials/head.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<meta name="theme-color" content="#1a1a2e">
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ "feed.xml" | relURL }}">
|
||||
8
themes/dreamscape/layouts/partials/header.html
Normal file
8
themes/dreamscape/layouts/partials/header.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<header class="site-header">
|
||||
<a href="/" class="logo">{{ .Site.Title }}</a>
|
||||
<nav>
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user