From 7e5ac240a1065f7ed0c426903537e12364e0f52f Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 9 Feb 2017 15:33:24 +0100 Subject: updated to a Wordpress Magazine layout --- themes/new_theme/layouts/404.html | 15 ++++++ themes/new_theme/layouts/_default/list.html | 58 ++++++++++++++++++++++ themes/new_theme/layouts/_default/single.html | 15 ++++++ themes/new_theme/layouts/partials/authorbox.html | 13 +++++ themes/new_theme/layouts/partials/comments.html | 5 ++ themes/new_theme/layouts/partials/footer.html | 15 ++++++ .../new_theme/layouts/partials/footer_slide.html | 30 +++++++++++ themes/new_theme/layouts/partials/header.html | 30 +++++++++++ .../new_theme/layouts/partials/header_slide.html | 39 +++++++++++++++ themes/new_theme/layouts/partials/menu.html | 23 +++++++++ themes/new_theme/layouts/partials/pagination.html | 11 ++++ themes/new_theme/layouts/partials/post_nav.html | 16 ++++++ themes/new_theme/layouts/partials/post_tags.html | 10 ++++ themes/new_theme/layouts/partials/sidebar.html | 6 +++ .../layouts/partials/widgets/categories.html | 16 ++++++ .../new_theme/layouts/partials/widgets/recent.html | 12 +++++ .../new_theme/layouts/partials/widgets/search.html | 12 +++++ .../layouts/partials/widgets/taglist.html | 14 ++++++ themes/new_theme/layouts/robots.txt | 3 ++ themes/new_theme/layouts/slide/single.html | 6 +++ 20 files changed, 349 insertions(+) create mode 100644 themes/new_theme/layouts/404.html create mode 100644 themes/new_theme/layouts/_default/list.html create mode 100644 themes/new_theme/layouts/_default/single.html create mode 100644 themes/new_theme/layouts/partials/authorbox.html create mode 100644 themes/new_theme/layouts/partials/comments.html create mode 100644 themes/new_theme/layouts/partials/footer.html create mode 100644 themes/new_theme/layouts/partials/footer_slide.html create mode 100644 themes/new_theme/layouts/partials/header.html create mode 100644 themes/new_theme/layouts/partials/header_slide.html create mode 100644 themes/new_theme/layouts/partials/menu.html create mode 100644 themes/new_theme/layouts/partials/pagination.html create mode 100644 themes/new_theme/layouts/partials/post_nav.html create mode 100644 themes/new_theme/layouts/partials/post_tags.html create mode 100644 themes/new_theme/layouts/partials/sidebar.html create mode 100644 themes/new_theme/layouts/partials/widgets/categories.html create mode 100644 themes/new_theme/layouts/partials/widgets/recent.html create mode 100644 themes/new_theme/layouts/partials/widgets/search.html create mode 100644 themes/new_theme/layouts/partials/widgets/taglist.html create mode 100644 themes/new_theme/layouts/robots.txt create mode 100644 themes/new_theme/layouts/slide/single.html (limited to 'themes/new_theme/layouts') diff --git a/themes/new_theme/layouts/404.html b/themes/new_theme/layouts/404.html new file mode 100644 index 0000000..59a1ebf --- /dev/null +++ b/themes/new_theme/layouts/404.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} + +
+
+
+

{{ .Title }}

+
+
+ Page not found.. +
+
+
+ +{{ partial "sidebar.html" . }} +{{ partial "footer.html" . }} diff --git a/themes/new_theme/layouts/_default/list.html b/themes/new_theme/layouts/_default/list.html new file mode 100644 index 0000000..68776c6 --- /dev/null +++ b/themes/new_theme/layouts/_default/list.html @@ -0,0 +1,58 @@ +{{ partial "header.html" . }} + +{{ $section := .Section }} + +{{ if ne $section "blog" }} +
+
+
+

{{ .Title }}

+
+
+ {{ .Content }} +
+
+
+{{ else }} +
+ {{- if not .IsHome }} + + {{- end }} + {{- range .Pages }} +
+ {{- if .Params.thumbnail }} +
+ + {{ .Title }} + +
+ {{- end }} +
+
+

+ {{ .Title }} +

+
+ + +
+
+
+ {{ .Summary }} +
+
+ View full post +
+
+
+ {{- end }} + + {{ partial "pagination.html" . }} +
+ +{{ end }} + +{{ partial "sidebar.html" . }} +{{ partial "footer.html" . }} diff --git a/themes/new_theme/layouts/_default/single.html b/themes/new_theme/layouts/_default/single.html new file mode 100644 index 0000000..a3e40bb --- /dev/null +++ b/themes/new_theme/layouts/_default/single.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . }} + +
+
+
+

{{ .Title }}

+
+
+ {{ .Content }} +
+
+
+ +{{ partial "sidebar.html" . }} +{{ partial "footer.html" . }} diff --git a/themes/new_theme/layouts/partials/authorbox.html b/themes/new_theme/layouts/partials/authorbox.html new file mode 100644 index 0000000..cfd09c5 --- /dev/null +++ b/themes/new_theme/layouts/partials/authorbox.html @@ -0,0 +1,13 @@ +{{- if .Site.Params.authorbox }} +
+
+ {{ .Site.Author.name }} avatar +
+
+ About {{ .Site.Author.name }} +
+
+ {{ .Site.Author.bio }} +
+
+{{- end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/comments.html b/themes/new_theme/layouts/partials/comments.html new file mode 100644 index 0000000..42dc0c5 --- /dev/null +++ b/themes/new_theme/layouts/partials/comments.html @@ -0,0 +1,5 @@ +{{ if and (not (eq .Site.DisqusShortname "")) (not .Params.disable_comments) }} +
+ {{ template "_internal/disqus.html" . }} +
+{{ end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/footer.html b/themes/new_theme/layouts/partials/footer.html new file mode 100644 index 0000000..3513e6c --- /dev/null +++ b/themes/new_theme/layouts/partials/footer.html @@ -0,0 +1,15 @@ + + + + + + + diff --git a/themes/new_theme/layouts/partials/footer_slide.html b/themes/new_theme/layouts/partials/footer_slide.html new file mode 100644 index 0000000..0c8b4c7 --- /dev/null +++ b/themes/new_theme/layouts/partials/footer_slide.html @@ -0,0 +1,30 @@ + + + + + + + diff --git a/themes/new_theme/layouts/partials/header.html b/themes/new_theme/layouts/partials/header.html new file mode 100644 index 0000000..2d6cf31 --- /dev/null +++ b/themes/new_theme/layouts/partials/header.html @@ -0,0 +1,30 @@ + + + + + +{{ .Title }} +{{ with .Site.Params.description }}{{ end }} +{{ .Hugo.Generator }} +{{ if .Site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }} + +{{ if .RSSLink }}{{ end }} + + + + + + +
+
+ + {{ partial "menu.html" . }} +
+
diff --git a/themes/new_theme/layouts/partials/header_slide.html b/themes/new_theme/layouts/partials/header_slide.html new file mode 100644 index 0000000..237da66 --- /dev/null +++ b/themes/new_theme/layouts/partials/header_slide.html @@ -0,0 +1,39 @@ + + + + + + + {{ .Site.Title }} + + + + + + + + + + + + + + + + + + + {{ "" | safeHTML }} + + {{ .Hugo.Generator }} + + + diff --git a/themes/new_theme/layouts/partials/menu.html b/themes/new_theme/layouts/partials/menu.html new file mode 100644 index 0000000..e322ac4 --- /dev/null +++ b/themes/new_theme/layouts/partials/menu.html @@ -0,0 +1,23 @@ + + + diff --git a/themes/new_theme/layouts/partials/pagination.html b/themes/new_theme/layouts/partials/pagination.html new file mode 100644 index 0000000..82ad195 --- /dev/null +++ b/themes/new_theme/layouts/partials/pagination.html @@ -0,0 +1,11 @@ +{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} + +{{ end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/post_nav.html b/themes/new_theme/layouts/partials/post_nav.html new file mode 100644 index 0000000..891bce6 --- /dev/null +++ b/themes/new_theme/layouts/partials/post_nav.html @@ -0,0 +1,16 @@ +{{- if .Site.Params.post_navigation }} +{{- if or (.Prev) (.Next) }} + +{{- end }} +{{- end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/post_tags.html b/themes/new_theme/layouts/partials/post_tags.html new file mode 100644 index 0000000..549c76b --- /dev/null +++ b/themes/new_theme/layouts/partials/post_tags.html @@ -0,0 +1,10 @@ +{{- if .Params.tags }} + +{{- end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/sidebar.html b/themes/new_theme/layouts/partials/sidebar.html new file mode 100644 index 0000000..7e6bad7 --- /dev/null +++ b/themes/new_theme/layouts/partials/sidebar.html @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/widgets/categories.html b/themes/new_theme/layouts/partials/widgets/categories.html new file mode 100644 index 0000000..d4ace88 --- /dev/null +++ b/themes/new_theme/layouts/partials/widgets/categories.html @@ -0,0 +1,16 @@ +{{- if .Site.Params.widgets.categories }} +{{- if isset .Site.Taxonomies "categories" }} +{{- if not (eq (len .Site.Taxonomies.categories) 0) }} +
+

Categories

+
+
    + {{- range $name, $items := .Site.Taxonomies.categories }} +
  • {{ $name | title }}
  • + {{- end }} +
+
+
+{{- end }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/widgets/recent.html b/themes/new_theme/layouts/partials/widgets/recent.html new file mode 100644 index 0000000..6aaee19 --- /dev/null +++ b/themes/new_theme/layouts/partials/widgets/recent.html @@ -0,0 +1,12 @@ +{{- if .Site.Params.widgets.recent_articles }} +
+

Recent Posts

+
+
    + {{- range first 10 (where .Site.Pages "Section" "blog") }} +
  • {{ .Title }}
  • + {{- end }} +
+
+
+{{- end }} diff --git a/themes/new_theme/layouts/partials/widgets/search.html b/themes/new_theme/layouts/partials/widgets/search.html new file mode 100644 index 0000000..9d3676f --- /dev/null +++ b/themes/new_theme/layouts/partials/widgets/search.html @@ -0,0 +1,12 @@ +{{- if .Site.Params.widgets.search }} + +{{- end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/partials/widgets/taglist.html b/themes/new_theme/layouts/partials/widgets/taglist.html new file mode 100644 index 0000000..966205a --- /dev/null +++ b/themes/new_theme/layouts/partials/widgets/taglist.html @@ -0,0 +1,14 @@ +{{- if .Site.Params.widgets.tags }} +{{- if isset .Site.Taxonomies "tags" }} +{{- if not (eq (len .Site.Taxonomies.tags) 0) }} +
+

Tags

+
+ {{- range $name, $items := .Site.Taxonomies.tags }} + {{ $name }} + {{- end }} +
+
+{{- end }} +{{- end }} +{{- end }} \ No newline at end of file diff --git a/themes/new_theme/layouts/robots.txt b/themes/new_theme/layouts/robots.txt new file mode 100644 index 0000000..bb43e33 --- /dev/null +++ b/themes/new_theme/layouts/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Disallow: /wiki/ +Disallow: /crux/ diff --git a/themes/new_theme/layouts/slide/single.html b/themes/new_theme/layouts/slide/single.html new file mode 100644 index 0000000..cd03267 --- /dev/null +++ b/themes/new_theme/layouts/slide/single.html @@ -0,0 +1,6 @@ +{{ partial "header_slide.html" . }} + +{{ .Content }} + +{{ partial "footer_slide.html" . }} + -- cgit v1.2.3-54-g00ecf