aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/mypaper/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mypaper/layouts')
-rw-r--r--themes/mypaper/layouts/404.html3
-rw-r--r--themes/mypaper/layouts/_default/list.html45
-rw-r--r--themes/mypaper/layouts/_default/rss.xml39
-rw-r--r--themes/mypaper/layouts/_default/single.html30
-rw-r--r--themes/mypaper/layouts/partials/footer.html12
-rw-r--r--themes/mypaper/layouts/partials/header.html54
-rw-r--r--themes/mypaper/layouts/shortcodes/collapse.html12
-rw-r--r--themes/mypaper/layouts/sitemap.xml12
8 files changed, 0 insertions, 207 deletions
diff --git a/themes/mypaper/layouts/404.html b/themes/mypaper/layouts/404.html
deleted file mode 100644
index ab966ff..0000000
--- a/themes/mypaper/layouts/404.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{{- partial "header.html" . }}
-<div class="not-found">404</div>
-{{- partial "footer.html" . }}
diff --git a/themes/mypaper/layouts/_default/list.html b/themes/mypaper/layouts/_default/list.html
deleted file mode 100644
index 053951f..0000000
--- a/themes/mypaper/layouts/_default/list.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{{- partial "header.html" . }}
-
-{{- $scope := .Site }}
-{{- if .Title }}
-<header class="page-header"><h1>{{ .Title }}</h1></header>{{ $scope = . }}
-{{ end }}
-
-{{- $paginator := .Paginate (where $scope.RegularPages ".Params.type" "!=" "page") }}
-
-{{- range $index, $page := $paginator.Pages }}
-
-{{- $class := "post-entry" }}
-{{- if .Data.Term }}
-{{- $class = "post-entry tag-entry" }}
-{{- end }}
-<article class="{{ $class }}">
- <header class="entry-header">
- <h2>{{ .Title }}</h2>
- </header>
- <section class="entry-content">
- <p>{{ .Summary | plainify | htmlUnescape }}</p>
- </section>
- <footer class="entry-footer">
- {{- $date := .Date.Format "2006-01-02" }}
- {{- $lastmod := .Lastmod.Format "2006-01-02" }}
- Posted on <time>{{ $date }}</time>{{ if ne $date $lastmod }}, updated on <time>{{ $lastmod }}</time>{{ end }}
- </footer>
- <a class="entry-link" href="{{ .Permalink }}"></a>
-</article>
-{{- end }}
-
-{{- if gt $paginator.TotalPages 1 }}
-<footer class="page-footer">
- <nav class="pagination">
- {{- if $paginator.HasPrev }}
- <a class="prev" href="{{ $paginator.Prev.URL }}">← {{ i18n "prev_page" }}</a>
- {{- end }}
- {{- if $paginator.HasNext }}
- <a class="next" href="{{ $paginator.Next.URL }}">{{ i18n "next_page" }} →</a>
- {{- end }}
- </nav>
-</footer>
-{{- end }}
-
-{{- partial "footer.html" . }}
diff --git a/themes/mypaper/layouts/_default/rss.xml b/themes/mypaper/layouts/_default/rss.xml
deleted file mode 100644
index 8626dca..0000000
--- a/themes/mypaper/layouts/_default/rss.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-{{- $pctx := . -}}
-{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
-{{- $pages := slice -}}
-{{- if or $.IsHome $.IsSection -}}
-{{- $pages = $pctx.RegularPages -}}
-{{- else -}}
-{{- $pages = $pctx.Pages -}}
-{{- end -}}
-{{- $limit := .Site.Config.Services.RSS.Limit -}}
-{{- if ge $limit 1 -}}
-{{- $pages = $pages | first $limit -}}
-{{- end -}}
-{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
- <link>{{ .Permalink }}</link>
- <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
- <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
- <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
- <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
- <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
- <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
- {{- with .OutputFormats.Get "RSS" -}}
- {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
- {{- end -}}
- {{ range $pages }}
- <item>
- <title>{{ .Title }}</title>
- <link>{{ .Permalink }}</link>
- <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
- <guid>{{ .Permalink }}</guid>
- <description>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></description>
- </item>
- {{ end }}
- </channel>
-</rss>
diff --git a/themes/mypaper/layouts/_default/single.html b/themes/mypaper/layouts/_default/single.html
deleted file mode 100644
index 2156f37..0000000
--- a/themes/mypaper/layouts/_default/single.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{{- partial "header.html" . }}
-
-<article class="post-single">
- <header class="post-header">
- <h1 class="post-title">{{ .Title }}</h1>
- {{- if .Params.tags }}
- <ul class="post-tags">
- {{- range .Params.tags }}
- {{- $href := print (absURL "tags/") (urlize .) }}
- <li><a href="{{ $href }}">{{ . }}</a></li>
- {{- end }}
- </ul>
- {{- end }}
- </header>
- <div class="post-content">
- {{- if .Params.changelog }}
- <section>
- <h1>更新履歴</h1>
- <ul>
- {{- range $date, $remark := .Params.changelog }}
- <li>{{ $date }}: {{ $remark }}</li>
- {{- end }}
- </ul>
- </section>
- {{- end }}
- {{ .Content }}
- </div>
-</article>
-
-{{- partial "footer.html" . }}
diff --git a/themes/mypaper/layouts/partials/footer.html b/themes/mypaper/layouts/partials/footer.html
deleted file mode 100644
index a7798d7..0000000
--- a/themes/mypaper/layouts/partials/footer.html
+++ /dev/null
@@ -1,12 +0,0 @@
-</main>
-<footer class="footer">
- <span>&copy; {{ now.Year }} <a href="{{ "" | absURL }}">{{ .Site.Title }}</a></span>
- <span>&middot;</span>
- <span>Powered by <a href="https://gohugo.io/" rel="noopener" target="_blank">Hugo️️</a>️</span>
-</footer>
-<script src="{{ "highlight.min.js" | absURL }}"></script>
-<script>
- hljs.initHighlightingOnLoad();
-</script>
-</body>
-</html>
diff --git a/themes/mypaper/layouts/partials/header.html b/themes/mypaper/layouts/partials/header.html
deleted file mode 100644
index 830acd5..0000000
--- a/themes/mypaper/layouts/partials/header.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html lang="{{ .Site.LanguageCode }}">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Title -->
- <title>{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
- <!-- Meta -->
- {{- if eq .Kind "page" }}
- <meta name="description" content="{{ .Summary }}">
- <meta name="author" content="{{ .Params.Author | default .Site.Author.name }}">
- {{- else }}
- <meta name="description" content="{{ .Site.Params.description }}">
- <meta name="author" content="{{ .Site.Author.name }}">
- {{- end }}
- <!-- Styles -->
- <link href="{{ "an-old-hope.min.css" | absURL }}" rel="stylesheet">
- <link href="{{ "style.css" | absURL }}" rel="stylesheet">
- <link href="{{ "custom.css" | absURL }}" rel="stylesheet">
- <!-- Favicons -->
- <link rel="icon" href="{{ "favicon.svg" | absURL }}">
- <!-- Generator -->
- {{- hugo.Generator }}
- <!-- RSS -->
- {{ range .AlternativeOutputFormats -}}
- {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
- {{ end -}}
- <!-- Misc -->
- {{- if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
- {{- template "_internal/google_analytics_async.html" . }}
- {{- template "_internal/opengraph.html" . }}
- {{- end }}
- </head>
- <body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
- <header class="header">
- <nav class="nav">
- {{- if .IsHome }}
- <h1 class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></h1>
- {{- else }}
- <p class="logo"><a href="{{ "" | absURL }}">{{ .Site.Title }}</a></p>
- {{- end }}
- {{- if .Site.Menus.main }}
- <ul class="menu">
- {{- range .Site.Menus.main }}
- <li>
- <a href="{{ .URL }}">{{ .Name }}</a>
- </li>
- {{- end }}
- </ul>
- {{- end }}
- </nav>
- </header>
- <main class="main">
diff --git a/themes/mypaper/layouts/shortcodes/collapse.html b/themes/mypaper/layouts/shortcodes/collapse.html
deleted file mode 100644
index b92ad01..0000000
--- a/themes/mypaper/layouts/shortcodes/collapse.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ if .Get "content" }}
-{{ if .Get "summary" }}
-{{ else }}
-{{ warnf "missing value for param 'summary': %s" .Position }}
-{{ end }}
-{{ else }}
-{{ errorf "missing value for param 'content': %s" .Position }}
-{{ end }}
-<p><details {{ if (eq (.Get "openByDefault") true) }} open=true {{ end }}>
- <summary markdown="span">{{ .Get "summary" | markdownify }}</summary>
- {{ .Get "content" | markdownify }}
-</details></p>
diff --git a/themes/mypaper/layouts/sitemap.xml b/themes/mypaper/layouts/sitemap.xml
deleted file mode 100644
index 74851b5..0000000
--- a/themes/mypaper/layouts/sitemap.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
- xmlns:xhtml="http://www.w3.org/1999/xhtml">
- {{ range .Data.Pages }}
- {{- if .Permalink -}}
- <url>
- <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
- <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02-07:00" ) }}</lastmod>{{ end }}
- </url>
- {{- end -}}
- {{ end }}
-</urlset>