diff options
author | Zack Scholl <zack.scholl@gmail.com> | 2017-12-16 19:10:51 +0300 |
---|---|---|
committer | Zack Scholl <zack.scholl@gmail.com> | 2017-12-16 19:10:51 +0300 |
commit | a080c13c04c324f4d0195594c43a975e10d0726d (patch) | |
tree | c9e848de5ce0961ee43fba57bf4d106d3e7f459e | |
parent | 37444e23c30c2897a78e0b740d78063d77a7758a (diff) |
Hacking away a nicer theme
-rwxr-xr-x | layouts/_default/single.html | 5 | ||||
-rwxr-xr-x | layouts/partials/footer.html | 5 | ||||
-rwxr-xr-x | layouts/partials/header.html | 6 | ||||
-rw-r--r-- | layouts/partials/middle.html | 1 | ||||
-rw-r--r-- | static/css/style3.css | 23 |
5 files changed, 34 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b102c34..0fe3c6e 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -48,12 +48,12 @@ window.onload = ready; </script>
<div class="content">
- <h1>{{ .Title }} <aside>{{ range .Params.tags }}<a href="/tags/{{.}}/" class="w3-tag">/{{.}}</a> {{end}}{{ if .Params.tags}}<a href="/about" class="w3-tag">/about</a>{{ end}}</aside></h1>
+ <h1>{{ .Title }} <aside>{{ range .Params.tags }}<a href="/tags/{{.}}/" class="w3-tag">/{{.}}</a> {{end}}</aside></h1>
{{ .Content }}
</div>
-<footer>
+
{{ if (eq .Type "post") }}
<p><small><em>Written {{ .Date.Format "January 2, 2006"}}. </em>
{{ if $.Site.Params.twitter }}
@@ -67,7 +67,6 @@ window.onload = ready; </p>
{{ end }}
-</footer>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c077d89..04e7d1c 100755 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,6 @@ -
+<footer>
+ <p>"On the Internet, nobody knows you're a dog." - <em>Peter Steiner</em></p>
+ <p>This site was made with <a href="https://github.com/gohugoio/hugo">Hugo</a> using theme <a href="https://github.com/schollz/onetwothree">onetwothree</a> made by <a href="https://github.com/schollz">schollz</a>.</p>
+</footer>
</body>
</html>
\ No newline at end of file diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7fddfc8..1c4b48f 100755 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -39,8 +39,10 @@ <img src="https://analytics.schollz.com/1.png?page={{ .Permalink }}" width=1px height=1px style="float:right;"> {{ end }} -<header style="color:#CCCCCC;"> - <a href="/" style="color:#CCCCCC;"><strong>Posts</strong></a>{{ range $i, $e:= $.Site.Params.navigation }}{{ if eq $i -1}}{{else}} · {{end}}{{ with $.Site.GetPage "page" . }}<a href="{{ lower .Permalink }}" style="color:#CCCCCC;"><strong>{{ title .Title }}</strong></a>{{ end }}{{ end }} + +<header > + <a href="/" style="float: left;color:#CCCCCC;"><strong>{{ $.Site.Title }}</strong></a> + {{ range $i, $e:= $.Site.Params.navigation }}{{ if eq $i 0}}{{else}} · {{end}}{{ with $.Site.GetPage "page" . }}<a href="{{ lower .Permalink }}" style="color:#CCCCCC;"><strong>{{ title .Title }}</strong></a>{{ end }}{{ end }} {{ if .Draft }} DRAFT diff --git a/layouts/partials/middle.html b/layouts/partials/middle.html index 089c235..2e1d531 100644 --- a/layouts/partials/middle.html +++ b/layouts/partials/middle.html @@ -2,6 +2,7 @@ <div class="content"> +<h1>{{ title .Data.Term }} posts</h1> {{ range first 100000 .Pages }} {{ if eq .Type "post"}} <p> diff --git a/static/css/style3.css b/static/css/style3.css index 6a65c61..902d3bf 100644 --- a/static/css/style3.css +++ b/static/css/style3.css @@ -35,6 +35,18 @@ h2 { margin-top: 2em; } +footer,footer p { + color: #666; + font-size: .9em; + padding: 1em 1em 2em; + text-align: right; + padding: 0; + max-width: 38rem; +} + +header { + color:#CCCCCC;text-align:right;max-width: 38rem; +} aside { letter-spacing: -0.05em; text-transform: uppercase; @@ -106,6 +118,7 @@ img { width: 100%; display: block; vertical-align: top; + border-radius: 15px; text-align: center; } @@ -115,6 +128,15 @@ figcaption { text-align: center; } +figure { + margin: 0 -1em; + width:110%; + margin-top: 3.0em; + display: block; + border: 0px solid #303030; +} + + table { max-width: 30em; } @@ -162,4 +184,5 @@ ol, ul, li, p,dd { h1 { font-size: 1.5rem; } + }
\ No newline at end of file |