aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/mypaper/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'themes/mypaper/layouts/_default')
-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
3 files changed, 0 insertions, 114 deletions
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" . }}