From 485cf8b4bc5190b71f2121dbda6e9692d7f21a26 Mon Sep 17 00:00:00 2001 From: Urja Acharya Date: Fri, 5 Mar 2021 19:12:13 -0800 Subject: Style changes --- exampleSite/config.json | 5 +- layouts/_default/baseof.html | 5 +- layouts/index.html | 21 +++-- layouts/partials/footer.html | 66 +++++----------- layouts/partials/head.html | 4 +- layouts/partials/homeHeader.html | 4 +- layouts/partials/index/homePageArticle.html | 17 +++++ layouts/partials/index/pinnedPost.html | 21 ++--- layouts/partials/index/recentPost.html | 8 +- layouts/partials/index/siteSections.html | 9 +++ layouts/partials/prevNext.html | 23 ++++++ layouts/partials/regularHeader.html | 4 +- layouts/partials/share.html | 6 +- layouts/partials/social.html | 4 +- layouts/partials/taxa.html | 6 +- static/css/main.css | 114 +++++++++++++++++++++------- static/css/pagination.css | 33 -------- 17 files changed, 196 insertions(+), 154 deletions(-) create mode 100644 layouts/partials/index/homePageArticle.html create mode 100644 layouts/partials/index/siteSections.html create mode 100644 layouts/partials/prevNext.html delete mode 100644 static/css/pagination.css diff --git a/exampleSite/config.json b/exampleSite/config.json index f3e1ea9..900a96c 100644 --- a/exampleSite/config.json +++ b/exampleSite/config.json @@ -1,7 +1,7 @@ { "baseURL": "https://www.example.org/", "languageCode": "en-us", - "title": "demo of redgood", + "title": "redgood", "theme": "redgood", "disableKinds": "taxonomyTerm", "params": { @@ -10,7 +10,8 @@ "theme": { "dateFormat": "2006-01-02", "copyrightInFooter": false, - "footerText": "customizable short *markdown* enabled text" + "footerText": "customizable short *markdown* enabled text", + "pinnedPosts": false }, "about": { "profileImage": "images/profile.jpg", diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dcf346a..f28d06c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,10 @@ {{ else }} {{ partial "regularHeader" . }} {{ end }} -
{{- block "main" . }} {{- end }}
+
+ {{- block "main" . }} + {{- end }} +
{{- partial "footer.html" . -}} diff --git a/layouts/index.html b/layouts/index.html index 7095424..ba73a48 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,14 +1,11 @@ -{{ define "main" }} -{{ partial "index/pinnedPost" . }} -{{ partial "index/recentPost" . }} -

Sections

-
- {{ range .Site.Sections }} - {{ if not .Params.hideFromHome }} -

- {{ .Title }} - {{ len .Pages}} Articles -

- {{ end }} {{ end }} +{{ define "main" }} {{ partial "index/pinnedPost" . }} +
+
+ {{ partial "index/recentPost" . }} + {{ partial "index/siteSections" . }} +
+
+ {{ partial "taxa" (dict "taxo" .Site.Taxonomies "mysite" .) }} +
-{{ partial "taxa" (dict "taxo" .Site.Taxonomies "mysite" .) }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f0c644e..f204ede 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,51 +1,25 @@ -