diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 04:03:33 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 04:03:33 +0200 |
commit | 9cf03e436ed50ec6646e241a47308758002a56d4 (patch) | |
tree | 0ca5bf2004eee6d0224ab4ae42e278029196d3ff | |
parent | 46ee5bd2810850456b49499894ba3b838a167e24 (diff) | |
download | hugo-minimalist-theme-9cf03e436ed50ec6646e241a47308758002a56d4.tar.gz hugo-minimalist-theme-9cf03e436ed50ec6646e241a47308758002a56d4.tar.bz2 hugo-minimalist-theme-9cf03e436ed50ec6646e241a47308758002a56d4.zip |
styling and footer
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 6 | ||||
-rw-r--r-- | layouts/_default/summary.html | 6 | ||||
-rw-r--r-- | layouts/partials/footer.html | 5 | ||||
-rw-r--r-- | layouts/partials/head.html | 9 |
5 files changed, 19 insertions, 9 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c4963da..134feff 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> {{- partial "head.html" . -}} - <body> + <body class="bg-near-white sans-serif"> {{- partial "header.html" . -}} {{- block "main" . }}{{- end }} {{- partial "footer.html" . -}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 57adda2..c884591 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,7 @@ <div class="w-100 vh-50 dt bg-center cover bg-gray" style="background-image:url({{ .Params.coverimage }})"> <header class="dt pa5 mw7 center post-header white"> - <h1 class="f1 tc"> + <h1 class="f1 lh-title"> {{ .Title }}</h1> <div class="f4 tracked">{{ .Date.Format "Mon, Jan 2, 2006" }}</div> @@ -16,9 +16,9 @@ </div> <footer class="ph3"> - <h1 class="f5 ttu trackex">Tagged in</br></h1> + <h1 class="f5 ttu black-60">Tagged in</br></h1> {{ range .Params.tags }} - <a class="f5 link dim br1 ph3 pv3 blue dib mb2 hover-bg-black hover-white ba" href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a> + <a class="f5 link dim br1 ph3 pv2 blue dib mb2 hover-bg-black hover-white ba" href="{{ $.Site.LanguagePrefix }}/tags/{{ . | urlize }}/">{{ . }}</a> {{ end }} </footer> diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index acfd2c4..6348bbc 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,17 +1,17 @@ <article class="bt bb b--black-10"> <a href='{{ .Permalink }}' class="db pv4 ph3 black no-underline dim"> <header> - <h1 class="f3 black-90"> + <h1 class="f2 lh-title black-90 "> {{ .Title }} </h1> <div class="gray">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words </div> </header> - <p class="f5 lh-copy black-80"> + <p class="f4 lh-copy black-80"> {{ .Summary }} </p> <footer> - <nobr>Read more →</nobr> + <nobr class="link">Continue reading →</nobr> {{ with .Params.thumbnailImage }} <img src="{{ . }}" class="mt2 br2"> {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..992a65d --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ +<footer id="footer" class="mw7 center mb3"> + <span class="db tc black-60"> + © {{ now.Format "2006" }} {{ with .Site.Params.footer.copyright }}{{ . | safeHTML }}{{ else }}{{ with .Site.Author.name }}{{ . }}{{ else }}{{ with .Site.Title }}{{ . }}{{ end }}{{ end }}{{ end }}. All Rights Reserved + </span> +</footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ddbc6e9..eb2804a 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -20,19 +20,24 @@ display: none; overflow:auto; } + a { + text-decoration: none; + color: #357edd; + } #sidebar a { - text-shadow: 1px 3px 1px rgba(0,0,0,0.9); + text-shadow: 1px 2px 0px rgba(0,0,0,0.9); } .post-header { - text-shadow: 0 2px 1px rgba(0,0,0,0.9); + text-shadow: 1px 2px 1px rgba(0,0,0,0.9); } pre { background: #3f3f3f; color: #dcdcdc; padding: 0.5em;} + </style> <script> function w3_open() { |