From 111767700619c5184943b1cb3dff3f7e195c2e85 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 15 Jun 2017 23:06:16 -0500 Subject: add theme.toml, archetypes, layouts, and css --- layouts/404.html | 5 +++++ layouts/_default/list.html | 18 ++++++++++++++++++ layouts/_default/single.html | 12 ++++++++++++ layouts/_default/terms.html | 16 ++++++++++++++++ layouts/partials/foot_custom.html | 0 layouts/partials/footer.html | 9 +++++++++ layouts/partials/head_custom.html | 0 layouts/partials/header.html | 19 +++++++++++++++++++ 8 files changed, 79 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/_default/terms.html create mode 100644 layouts/partials/foot_custom.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head_custom.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..c2e4e40 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,5 @@ +{{ partial "header.html" . }} + +404 NOT FOUND + +{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..41d9d89 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,18 @@ +{{ partial "header.html" . }} + +{{if not .IsHome }} +

{{ .Title }}

+{{ end }} + +{{ .Content }} + + + +{{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..2a4cae8 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,12 @@ +{{ partial "header.html" . }} +
+

{{ .Title }}

+{{ with .Params.author }}

{{ . }}

{{ end }} +{{ if .Params.date }}

{{ $.Date.Format "2006/01/02" }}

{{ end }} +
+ +
+{{ .Content }} +
+ +{{ partial "footer.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..47a9c0a --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,16 @@ +{{ partial "header.html" . }} + +

{{ .Title }}

+ + + +{{ partial "footer.html" . }} diff --git a/layouts/partials/foot_custom.html b/layouts/partials/foot_custom.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..a1993aa --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,9 @@ + + + diff --git a/layouts/partials/head_custom.html b/layouts/partials/head_custom.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..5067848 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,19 @@ + + + + + {{ .Title }} | {{ .Site.Title }} + + + {{ partial "head_custom.html" . }} + + + + -- cgit