From d2d3e88c0a24ddd10c9e7bd6f1f6b39fcd8ab6fb Mon Sep 17 00:00:00 2001 From: Urja Acharya Date: Tue, 9 Mar 2021 18:33:25 -0800 Subject: Updates --- archetypes/default.md | 6 +++- layouts/partials/footer.html | 5 ++++ layouts/partials/index/homePageArticle.html | 14 ++------- layouts/partials/index/pinnedPost.html | 8 ++++++ layouts/partials/index/recentPost.html | 16 +++++------ layouts/partials/prevNext.html | 3 +- layouts/partials/share.html | 10 ++++++- static/css/main.css | 44 +++++++++++++---------------- 8 files changed, 56 insertions(+), 50 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 68ba2a3..5339b64 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,6 +1,10 @@ --- title: "{{ replace .Name "-" " " | title }}" +author: {{ .Site.Params.author }} date: {{ .Date }} +description: "" +tags: [""] +categories: [""] draft: true pinned: false ---- +--- \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f204ede..7406a3d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -22,4 +22,9 @@ {{- print "urja acharya" -}}

+
+ +
diff --git a/layouts/partials/index/homePageArticle.html b/layouts/partials/index/homePageArticle.html index 65d4e84..b7ec88a 100644 --- a/layouts/partials/index/homePageArticle.html +++ b/layouts/partials/index/homePageArticle.html @@ -1,17 +1,7 @@ -
- +

{{ .Title }}

{{ dateFormat .Site.Params.theme.dateFormat .Date }} · {{ .Params.author }}

-
+
{{ .Content }} - {{ if .Site.Params.theme.pinnedPosts }} -
- Previously Pinned Posts - {{ end }} -
\ No newline at end of file diff --git a/layouts/partials/index/pinnedPost.html b/layouts/partials/index/pinnedPost.html index b5d8ce3..dfeef70 100644 --- a/layouts/partials/index/pinnedPost.html +++ b/layouts/partials/index/pinnedPost.html @@ -1,9 +1,17 @@ +
{{ if .Site.Params.theme.pinnedPosts }} {{ range ((where .Site.Pages "Params.pinned" true).ByDate.Reverse) | first 1 }} {{ partial "index/homePageArticle" . }} {{ end }} +
+
+ Previously Pinned Posts
{{ else }} {{ range site.RegularPages | first 1 }} {{ partial "index/homePageArticle" . }} {{ end }} {{ end }} +
\ No newline at end of file diff --git a/layouts/partials/index/recentPost.html b/layouts/partials/index/recentPost.html index 5ad744c..7517e0a 100644 --- a/layouts/partials/index/recentPost.html +++ b/layouts/partials/index/recentPost.html @@ -1,9 +1,7 @@ - -

Recent Posts

- {{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 6 }} - {{ partial "listPage" . }} - {{ end }} - - +

Recent Posts

+{{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 6 }} +{{ partial "listPage" . }} +{{ end }} +
+All Posts +
\ No newline at end of file diff --git a/layouts/partials/prevNext.html b/layouts/partials/prevNext.html index 5a1b4e8..50c47a5 100644 --- a/layouts/partials/prevNext.html +++ b/layouts/partials/prevNext.html @@ -8,8 +8,7 @@ {{- else }}
{{- end }} - + {{- if .NextInSection }} @@ -33,4 +33,12 @@ aria-label="share on twitter" > + diff --git a/static/css/main.css b/static/css/main.css index 3320f1b..3315909 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1,11 +1,11 @@ :root { --bg: whitesmoke; --bgLight: white; - --mainText: rgb(0, 0, 0); + --mainText: #272822; --secondaryText: rgb(105, 105, 105); --primary: #a3001b; --highlight: #b6ffb6; - --shadow: black; + --shadow: var(--mainText); --inactive: #949494; } html { @@ -36,6 +36,10 @@ p { margin: 1em 0 0.25em 0; line-height: 1.5em; } +ol, +ul { + line-height: 1.5em; +} a { color: var(--primary); text-decoration: none; @@ -45,7 +49,7 @@ a:hover { } header { background-color: var(--primary); - margin-top: 5px; + margin-top: 0.5em; display: flex; justify-content: start; flex-wrap: wrap; @@ -77,11 +81,9 @@ header { .about-narrative, .page-title-and-info p { color: var(--bg); - text-shadow: 0px 0px 2px var(--bgLight); margin: 0.25em 0 1em 0; line-height: 1.5em; - font-size: 0.9em; - font-weight: 300; + font-size: 0.95em; } .header-image-container { height: 275px; @@ -92,7 +94,7 @@ header { box-sizing: border-box; } .border { - border: solid 1px black; + border: solid 1px var(--mainText); } .header-image { height: 230px; @@ -110,13 +112,13 @@ footer { text-align: center; background-color: var(--primary); color: var(--bg); - padding: 1em 5px; + padding: 1em 0.5em 0.5em 0.5em; display: flex; flex-direction: column; justify-content: center; min-height: 80px; - font-size: 0.9em; - font-weight: 300; + font-size: 0.95em; + margin-bottom: 0.5em; } .footer p { margin: 0; @@ -130,7 +132,7 @@ footer a, pre, code { font-family: "Inconsolata", monospace; - font-size: 1em; + font-size: 1.05em; overflow: auto; } kbd { @@ -173,7 +175,7 @@ h6 { text-shadow: 3px 3px var(--shadow); } .main-title { - font-size: 2.5em; + font-size: 3em; } .page-title { font-size: 2.5em; @@ -211,7 +213,7 @@ td { border: solid 1px var(--primary); padding: 5px; } -hr { +.red-hr { border: 0; height: 1px; background-image: linear-gradient( @@ -259,26 +261,18 @@ hr { margin-top: 0; } .card-links { - margin-top: 1em; - display: flex; - flex-direction: row; - flex-wrap: wrap; - display: inline-block; -} -.card-links a { background-color: var(--primary); color: var(--bg); - margin-right: 10px; padding: 5px 5px; border-radius: 5px; box-shadow: 3px 3px 5px 1px var(--shadow); transition: box-shadow 0.2s; } -.card-links > a:hover { +.card-links:hover { box-shadow: 1px 1px 5px 1px var(--shadow); text-decoration: none; } -.card-links > a:active { +.card-links:active { box-shadow: 0px 0px 1px 1px var(--shadow); } .taxa-container { @@ -296,8 +290,8 @@ hr { .prev-next { display: flex; flex-direction: row; - justify-content: space-between; - margin-bottom: 1.5em; + justify-content: space-around; + margin-bottom: 0.5em; font-size: 1.5em; } .prev-next > div, -- cgit v1.2.3