From 2bc248dd03ba59326a4ab451c8c4d78c9672f27b Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 4 Jan 2018 15:15:06 -0500 Subject: [PATCH] Initial commit. --- layouts/404.html | 0 layouts/_default/baseof.html | 53 +++++++++++++++++++++++++++ layouts/_default/list.html | 9 +++++ layouts/_default/meta.html | 3 ++ layouts/_default/single.html | 3 ++ layouts/index.html | 14 +++++++ layouts/partials/header_homepage.html | 25 +++++++++++++ layouts/partials/pagination.html | 21 +++++++++++ theme.toml | 11 ++++++ 9 files changed, 139 insertions(+) create mode 100644 layouts/404.html create mode 100755 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/meta.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/header_homepage.html create mode 100755 layouts/partials/pagination.html create mode 100644 theme.toml diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100755 index 0000000..a2e0e71 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,53 @@ + + + + + + + + + + + {{- if eq .IsPage true }} {{ .Render "meta" }} {{- end }} {{ .Hugo.Generator }} + + + + {{ if .RSSLink }} + + {{ end }} + + {{- if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{- else }}{{ .Site.Title }} - {{ .Site.Params.Tagline }}{{- end}} + + + + {{ if eq (getenv "HUGO_ENV") "PRD" }} + + {{ else }} + + {{ end }} + + + + {{- if not .IsHome }} + {{ partial "menu" . }} + {{- else }} + {{ partial "header_homepage" . }} + {{- end }} + + {{ block "main" . }}{{ end }} + + + + + + + {{- block "scripts" . }}{{- end }} + + + \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..9ca736f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,9 @@ +{{ define "main" }} +{{ $paginator := .Paginate .Data.Pages }} + +{{ range $paginator.Pages }} + {{ .Render "summary" }} +{{ end }} + +{{ partial "pagination" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/meta.html b/layouts/_default/meta.html new file mode 100644 index 0000000..d50230e --- /dev/null +++ b/layouts/_default/meta.html @@ -0,0 +1,3 @@ + + + diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..f752ee3 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..414522b --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,14 @@ +{{- define "main" }} +
+
+
+

+ Upcoming news... +

+

+ We'll have more information available soon! +

+
+
+
+{{- end }} \ No newline at end of file diff --git a/layouts/partials/header_homepage.html b/layouts/partials/header_homepage.html new file mode 100644 index 0000000..6f8ed53 --- /dev/null +++ b/layouts/partials/header_homepage.html @@ -0,0 +1,25 @@ +
+ +
+ +
+
+
+

{{ .Site.Title }}

+

{{ .Site.Params.Tagline }}

+ + + + + Source Code + +
+
\ No newline at end of file diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100755 index 0000000..3f5a248 --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,21 @@ +{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} + +{{ end }} diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..569d0f1 --- /dev/null +++ b/theme.toml @@ -0,0 +1,11 @@ +name = "Shared Bulma Theme" +license = "AGPLv3" +licenselink = "" +description = "Shared Bulma Theme" +homepage = "https://citra-emu.org/" +tags = [] +features = ["", ""] +min_version = 0.16 + +[author] + name = "flamesage" \ No newline at end of file