From bed4a9b74a05031c6426b6327c96b7c19a8b96c8 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 2 Oct 2021 16:22:52 -0500 Subject: [PATCH] Fix #7 --- assets/css/bobastyle.css | 37 +++++++++++++++--- layouts/_default/baseof.html | 20 +++++----- layouts/_default/list.html | 73 ++++++++++++++++++++++-------------- layouts/_default/single.html | 44 +++++++++++----------- 4 files changed, 111 insertions(+), 63 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 47a5988..a242fb2 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -11,6 +11,22 @@ margin-right: 5px; } +.post { + padding-bottom: 20px; +} + +.post-title, .post-title h1 { + margin-bottom: 10px; +} + +.post-description { + padding-top: 10px; +} + +.readmore { + padding-top: 5px; +} + body { margin: auto; max-width: 720px; @@ -24,24 +40,35 @@ body { /* Styling */ -.footer { - text-align: center; - background: #ddd; +#navbar h2 { + color: inherit; + text-decoration: inherit; } -.header a, #navbar { +.header a { + color: inherit; +} + +.post-title a { color: inherit; text-decoration: inherit; } body { - background-color: black; + background-color: #111; color: lightgray; font-family: sans-serif; } + a { color: #4da6ff; + text-decoration: inherit; } + +a:hover { + text-decoration: underline; +} + blockquote { border-left: 5px solid #222; padding-left: 10px; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 836f891..6ec109c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,16 +4,18 @@ {{- partial "head.html" . -}} -

- {{ .Site.Title | markdownify }} -

+
+

+ {{ .Site.Title | markdownify }} +

- + +
{{ if .Site.Params.breadcrumbnav }} {{ partial "breadcrumb.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7a884c3..3568147 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,35 +7,52 @@ {{ else }}

{{ .Title | markdownify }}

{{ end }} - -{{ if .Data.Singular }} -{{ else }} -{{ if .Params.showtags }} - - Site-wide tags: - -
- {{ range .Site.Taxonomies.tags }} - #{{ .Page.Title }}  + + +
+ {{ if .Date }} + + {{ if ne .Lastmod .Date }} + ( Modified + + ) {{ end }} - - -{{ end }} + {{ end }} + + + {{ range (.GetTerms "tags") }} + #{{ .LinkTitle }} + {{ end }} + +
+ +
+ {{ if .Description }} + {{ .Description | markdownify }} + {{ else }} + {{ .Summary | markdownify }} + {{ end }} +
+ +
+ Read more → +
+ +{{ else }} +
+ No posts here! +
{{ end }} + {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7cd63bf..96604ca 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,27 +1,29 @@ {{ define "main" }} -

{{ .Title | markdownify }}

- -{{ if .Date }} - -{{ if ne .Lastmod .Date }} -( Modified - -) -{{ end }} -
-{{ end }} +
+

{{ .Title | markdownify }}

+
- - {{ range (.GetTerms "tags") }} - #{{ .LinkTitle }} + {{ if .Params.Toc }}