From 23a9b1ff401bf6238011cdfed4219605a20af728 Mon Sep 17 00:00:00 2001 From: wileybaba Date: Wed, 31 Oct 2018 00:03:26 -0600 Subject: adding my theme to github --- layouts/404.html | 12 ++++++ layouts/_default/baseof.html | 97 +++++++++++++++++++++++++++++++++++++++++++ layouts/index.html | 51 +++++++++++++++++++++++ layouts/partials/content.html | 6 +++ layouts/partials/footer.html | 71 +++++++++++++++++++++++++++++++ layouts/partials/header.html | 54 ++++++++++++++++++++++++ layouts/portfolio/list.html | 29 +++++++++++++ 7 files changed, 320 insertions(+) create mode 100644 layouts/404.html create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/content.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/portfolio/list.html (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..d552a63 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,12 @@ +{{ define "main" }} +
+
+ {{ if isset .Site.Params "logofile" }} + logo + {{ end }} +

404

+

The page you were looking for does not exist.

+ Visit the home page +
+
+{{ end }} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..8a08945 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,97 @@ + + + + + + + {{ block "title" . }}{{ .Title }} - {{ .Site.Title }}{{ end }} + + + + + + + + + + + + + {{ if .Site.Params.twitter }} + + {{ end }} + + + + + + + + + + + + + {{ if .Site.Params.highlightjs }} + + {{ end }} + + {{ if .Site.Params.progressively }} + + {{ end }} + + + + + + + + {{ block "main" . }}{{ end }} + + + + + + + + + {{ if .Site.Params.highlightjs }} + + {{ range .Site.Params.highlightjslanguages }} + + {{ end }} + + {{ end }} + + {{ if .Site.Params.progressively }} + + + {{ end }} + + {{ if .Site.Params.uselatex }} + + + {{ end }} + + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..8ec54f1 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,51 @@ +{{ define "main" }} + {{ partial "header" . }} + +
+
+
+
+
+ {{ partial "content" . }} +
+ + {{ if isset .Site.Params "best_posts" }} +
+
📌 {{ i18n "pinned" }}
+
    + {{ range .Site.Params.best_posts }} +
  • + {{ .title }} +
  • + {{ end }} +
+
+ {{ end }} + + {{ if isset .Site.Params "latestpostcount" }} +
+ {{ $nbPosts := len (where .Data.Pages "Section" "blog") }} + {{ if gt $nbPosts 0 }} +
Latest posts
+
    + {{ range (first .Site.Params.latestpostcount (where .Pages "Section" "blog")).GroupByDate "Jan, 2006" "desc" }} +
  • {{ .Key }}
  • + {{ range sort .Pages "Date" "desc" }} + {{ partial "list" . }} + {{ end }} + {{ end }} +
+ + {{ if gt $nbPosts .Site.Params.latestpostcount }} + {{ i18n "see-more" }} + {{ end }} + {{ end }} +
+ {{ end }} +
+
+
+
+ + {{ partial "footer" . }} +{{ end }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html new file mode 100644 index 0000000..b4af9e9 --- /dev/null +++ b/layouts/partials/content.html @@ -0,0 +1,6 @@ +{{ if .Site.Params.progressively }} + {{ $newImage := (print "
$3
") }} + {{ .Content | replaceRE "(.*)" $newImage | safeHTML }} +{{ else }} + {{ .Content }} +{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..7211d51 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,71 @@ + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..1b982ea --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,54 @@ +
+
+
+
+ {{ if .Site.Params.logofile }} + + + + {{ end }} +
+
+ +

{{ .Site.Title }}

+
+ + + + +
+
+
+
diff --git a/layouts/portfolio/list.html b/layouts/portfolio/list.html new file mode 100644 index 0000000..9c7fe9c --- /dev/null +++ b/layouts/portfolio/list.html @@ -0,0 +1,29 @@ +{{ define "main" }} + {{ partial "header" . }} + +
+
+ {{ if .Site.Params.portfolio }} + {{ range .Site.Params.portfolio }} +
+ + + +
+ {{ end }} + {{ end }} +
+
+ + + + + {{ partial "footer" }} +{{ end }} -- cgit v1.2.3