From dedcdb7dec35f61ad2bda08ec4aee7a5ad4c0b55 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Thu, 15 Sep 2022 17:12:31 -0400 Subject: [PATCH] major style changes --- layouts/_default/list.html | 7 +- layouts/index.html | 6 +- layouts/partials/post.html | 16 +++-- layouts/partials/profile.html | 42 ++++++----- layouts/shortcodes/image.html | 2 +- static/css/theme.css | 128 ++++++++++++++++++++++++---------- 6 files changed, 136 insertions(+), 65 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 183147d..afcda8e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -2,12 +2,17 @@ {{partial "head" .}} + +
{{partial "profile" .}} + +
+ +
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 7b0cb8a..1e2c0dc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,12 +2,14 @@ {{partial "head" .}} +
{{partial "profile" .}} +
+
\ No newline at end of file diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 37b3ddf..b0dcd10 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -3,14 +3,22 @@ {{if .Date }}

{{.Date | time.Format "Jan 02 2006"}}

{{end}} -{{if .Params.video}} +{{if .Params.video}} {{else}} -{{if .Params.audio}} +{{if .Params.audio}} {{else}} -{{if .Params.image}} +{{if .Params.image}} {{end}} {{end}} {{end}} -

{{.Summary}}

+{{ if .GetTerms "tags" }} +
+ + Tags: + {{range .GetTerms "tags" }} +{{.LinkTitle}} +{{end}} +
+{{end}} \ No newline at end of file diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html index b3aecc5..a0a53b3 100644 --- a/layouts/partials/profile.html +++ b/layouts/partials/profile.html @@ -1,35 +1,39 @@
- - -
-

{{.Site.Data.details.name}}

+ + +
+

{{.Site.Data.details.name}}

{{.Site.Data.details.bio}}

- {{if .Site.Data.details.contact}} - {{range .Site.Data.details.contact}} - {{.name}} + {{ if .Site.Data.details.links }} + {{end}} -{{end}}
+ + + +
- {{ if .Site.Data.details.links }} -
- {{range .Site.Data.details.links}} - {{.linkname}}
- {{end}} -
- {{end}} -
+ {{partial "nav" .}} -
{{ if .Content}}
{{.Content}}
-
{{end}} - + {{ if .GetTerms "tags" }} + + {{end}}

Valor made by Gabriel

diff --git a/layouts/shortcodes/image.html b/layouts/shortcodes/image.html index 60c0c88..31abec8 100644 --- a/layouts/shortcodes/image.html +++ b/layouts/shortcodes/image.html @@ -1,7 +1,7 @@ {{ if .Get "href"}} {{end}} -{{.Get "alt"}}a{ + margin:0.5rem; +} #posts{ - padding:1.5rem; margin-bottom:1rem; - min-width: 20vw; + width: fit-content; + display: flex; + flex-direction: column; + align-items: center; + max-width: 40rem; -} -#posts{ -width:40vw; } .post{ - padding:1rem; + width:100%; + word-wrap: break-word; } -#post>img -#profile{ - display:flex; - flex-direction: column; -} + #profilephoto{ margin:1rem; max-width: 10rem; - - +} +section{ + width: 100%; } #profile>nav, #profile>div{ @@ -94,27 +119,17 @@ nav{ flex-direction: row; align-items: baseline; justify-content:space-evenly; + flex-wrap: wrap; } nav>a{ } -@media screen and (orientation: portrait){ - body{ - flex-direction: column; - align-items: center; - - font-size:1rem; - } - #profile,#posts{ - width:85%; - padding:5%; - } -} article{ display:flex; flex-direction: column; align-items: center; + width:100%; } article p, @@ -137,4 +152,41 @@ blockquote { .gallery{ max-width:40vw; -} \ No newline at end of file +} + +audio{ + padding:1rem; +} + +.post-tags{ + display:flex; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + justify-content: space-evenly; + width:80%; + font-weight: bolder; + font-size:1.25rem +} +@media screen and (orientation: portrait){ + body{ + flex-direction: column; + align-items: center; + justify-content: flex-start; + flex-wrap: none; + padding:0; + font-size:1rem; + } + #profile,#posts{ + width:90%; + max-width: 90vw; + + } + + #profile a>img{ + display:flex; + flex-direction: column; + align-items: center; + width:100%; + } +}