diff options
author | austingebauer <gebauer.austin@gmail.com> | 2019-11-26 08:03:34 +0300 |
---|---|---|
committer | austingebauer <gebauer.austin@gmail.com> | 2019-11-26 08:03:34 +0300 |
commit | 3529d233747138724fb7cbf1fe66c769027efa94 (patch) | |
tree | 3698178d783928041d9e862f8a7bb53c537f5ec7 | |
parent | 536105781b978d67b3406808223773f105d94f4b (diff) |
feat: new styling for content
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/posts/single.html | 22 | ||||
-rw-r--r-- | static/css/custom.scss | 13 | ||||
-rw-r--r-- | static/css/theme.css | 7 |
5 files changed, 28 insertions, 19 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cebb41b..62b9784 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,5 +10,4 @@ </div> {{- partial "footer.html" . -}} </body> - <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> </html> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e31deb1..39b1e6e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ -<footer class="text-center"> +<footer class="text-center pb-1"> <small class="text-muted"> - © Copyright {{ now.Format "2006"}}, Austin Gebauer + {{ .Site.Params.footer_text | safeHTML }} </small> </footer> diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 552b915..de6046d 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,23 +1,15 @@ {{ define "main" }} <div class="pl-sm-2"> - <div class="row"> - <div class="col-12 col-sm-6 pb-2"> - <a href="{{ .Permalink }}">Published {{ .Date.Format "January 2, 2006" }}</a> - </div> - <div class="col-12 col-sm-6 pb-2"> - {{ range .Params.tags }} - <small><a href="{{ "/tags/" | relURL }}{{ . | urlize }}">#{{ . }}</a></small> - {{ end }} - </div> - </div> - - <h3>{{ .Title }}</h3> - {{ if .Params.Subtitle }} + <div class="mb-3"> + <h3 class="mb-0">{{ .Title }}</h3> + {{ if .Params.Subtitle }} <h5>{{ .Params.Subtitle }}</h5> - {{ end }} + {{ end }} + <small>Published {{ .Date.Format "January 2, 2006" }}</small> + </div> <article> {{ .Content }} </article> </div> -{{ end }}
\ No newline at end of file +{{ end }} diff --git a/static/css/custom.scss b/static/css/custom.scss index 50e80b0..c20cafa 100644 --- a/static/css/custom.scss +++ b/static/css/custom.scss @@ -68,7 +68,18 @@ h3, h4 { } p { - margin-bottom: 0.7rem; + margin-bottom: 0.7rem; +} + +article { + img { + border-radius: 0.20rem; + } + + h4 { + margin-top: 2.2rem; + margin-bottom: 0.7rem; + } } // === Media breakpoints === diff --git a/static/css/theme.css b/static/css/theme.css index 8054141..e89b9a3 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -11381,3 +11381,10 @@ h3, h4 { p { margin-bottom: 0.7rem; } + +article img { + border-radius: 0.20rem; } + +article h4 { + margin-top: 2.2rem; + margin-bottom: 0.7rem; } |