🐼 first commit

This commit is contained in:
koirand 2018-09-23 20:11:35 +09:00
commit 8c7ec3df80
27 changed files with 2823 additions and 0 deletions

8
layouts/404.html Normal file
View file

@ -0,0 +1,8 @@
<!DOCTYPE html>
{{ define "main"}}
<div>
<h1>404 page not found.</h1>
<p><a href="/">Go Home</p>
</div>
{{ end }}

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div class="main">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -0,0 +1,14 @@
{{ define "main"}}
<div>
{{ range $index, $value := .Pages.GroupByDate "January, 2006" }}
{{ if (ne $index 0) }}
<hr class="separator">
{{ end }}
<p class="date">{{ .Key }}</p>
{{ range .Pages }}
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
{{ end }}
{{ end }}
</div>
{{ end }}

View file

@ -0,0 +1,10 @@
{{ define "main"}}
<div>
<h1>{{ .Title }}</h1>
<p class="date">{{ .Date.Format "January 2, 2006" }}</p>
<div class="markdown-body">
{{ .Content }}
</div>
</div>
{{ end }}

27
layouts/index.html Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
<div class="profile">
<div class="profile-body">
<div class="avatar">
<img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
<img src="{{ .Site.BaseURL }}img/avatar-border.svg">
</div>
<h1 class="author">{{ .Site.Params.Author }}</h1>
<p>
{{ .Site.Params.discription }}
</p>
<nav>
<ul>
{{ range .Site.Params.Nav }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
</nav>
</div>
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View file

@ -0,0 +1,11 @@
<footer>
<p>
&copy; {{ .Site.Params.publicationYear }} {{ .Site.Params.Author }}.
Powered by <a href="https://gohugo.io/" target="_blank">Hugo</a>
using the <a href="https://github.com/koirand/pulp/">pulp</a> theme.
</p>
</footer>
<script src="{{ .Site.BaseURL }}js/main.js"></script>
{{- range .Site.Params.custom_js -}}
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
{{ end }}

View file

@ -0,0 +1,20 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ .Site.Author }}" />
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/markdown.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax-highlight.css">
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
{{ end }}
<title>
{{ if eq .Title .Site.Title }}
{{ .Site.Title }}
{{ else }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
</title>
</head>

View file

@ -0,0 +1,6 @@
<header>
<div class="avatar">
<img class="avatar-mask" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}">
<a href="/"><img src="{{ .Site.BaseURL }}img/avatar-border.svg"></a>
</div>
</header>