From 5facec02458ace3c279fcbc9e82326dfbb67ba40 Mon Sep 17 00:00:00 2001 From: 10mohi6 <10.mohi.6.y@gmail.com> Date: Thu, 28 May 2020 14:56:10 +0900 Subject: first commit --- layouts/404.html | 13 +++++++++++ layouts/_default/list.html | 51 ++++++++++++++++++++++++++++++++++++++++++++ layouts/_default/single.html | 31 +++++++++++++++++++++++++++ layouts/partials/footer.html | 9 ++++++++ layouts/partials/header.html | 10 +++++++++ 5 files changed, 114 insertions(+) create mode 100644 layouts/404.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..5b2d353 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,13 @@ +{{ partial "header.html" . }} +
+

{{ .Site.Title }}

+

+
+
+
+
+

404 page not found

+
+
+
+{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..b6c826f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,51 @@ +{{ partial "header.html" . }} +{{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }} +{{ if eq .Kind "taxonomy" }} + {{ $paginator = .Data }} +{{ end }} +
+ {{ if not .IsHome }} +

{{ .Title }}

+

+ Back to Home{{ len .Data.Pages }} Articles to read +

+ {{ else }} +

{{ .Site.Title }}

+

+ {{ end }} +
+
+ {{ range $paginator.Pages }} +
+
+ {{ range .Params.categories }} + {{ . }} + {{ end }} +

+ {{ .Title }} +

+

{{.Date.Format "January 2, 2006"}}

+
+ {{ .Summary | plainify | htmlUnescape }} +
+ {{ range .Params.tags }} + #{{ . }} + {{ end }} +
+
+ {{ end }} +
+
+ +
+
+
+{{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..b9ae1bb --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,31 @@ +{{ partial "header.html" . }} +
+ {{ range .Params.categories }} + {{ . }} + {{ end }} +

{{ .Title }}

+

{{.Date.Format "January 2, 2006"}}

+ {{ range .Params.tags }} + #{{ . }} + {{ end }} +
+
+
+
+ {{ .Content }} +
+
+
+
+ {{ with .PrevInSection }} + < {{ .Title }} + {{ end }} +
+
+ {{ with .NextInSection }} + {{ .Title }} > + {{ end }} +
+
+
+{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..89bf318 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,9 @@ + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..d6eb843 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,10 @@ + + + + + + {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} + + + + -- cgit v1.2.3