diff options
author | morph <morph@posteo.de> | 2020-05-26 04:04:43 +0300 |
---|---|---|
committer | morph <morph@posteo.de> | 2020-05-26 04:04:43 +0300 |
commit | ce98bd5c83a54505dc95f638302c1d523b1e6bb6 (patch) | |
tree | 2dd5d9d33bd66da275380d61d74cdbef876e9c6d | |
parent | f4735db2aec9803f6b0587d8dd78f44d5acbbd6e (diff) |
init as nameless new theme
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | layouts/_default/single.html | 7 | ||||
-rw-r--r-- | layouts/_default/summary.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer.html | 6 | ||||
-rw-r--r-- | layouts/partials/header.html | 12 | ||||
-rw-r--r-- | static/css/style.css | 10 |
6 files changed, 27 insertions, 13 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 33e5cda..2c3a98e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,6 +4,7 @@ <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <style type=text/css>body{font-family:monospace;}</style> <title>{{ .Title }}</title> {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 55b7c30..7920d00 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ <main> <article> <h1>{{ .Title }}</h1> - <time>{{ .Date.Format "02.01.2006 15:04" }}</time> + <b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b> <div> {{ .Content }} </div> @@ -15,11 +15,6 @@ </ul> </div> {{ end }} - {{ with .Site.DisqusShortname }} - <div> - {{ template "_internal/disqus.html" . }} - </div> - {{ end }} </article> </main> {{ partial "sidebar.html" . }} diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 9acf434..72a8f9d 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,6 @@ -<article> +<article style="padding:20px 0;"> <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> - <time>{{ .Date.Format "02.01.2006 15:04" }}</time> + <b><time>{{ .Date.Format "02.01.2006 15:04" }}</time></b> {{ range .Params.tags }} <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a34c170..19fcd6d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,7 @@ <footer> - <p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></p> + <p>© {{ now.Year }} <a href="{{ .Site.BaseURL }}"><b>{{ .Site.Title }}</b></a>. + {{- range .Site.Menus.footer }} + <a href="{{ .URL }}"><b>{{ .Name }}</b></a>. + {{- end }} + </p> </footer> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 384d2bf..09357df 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,12 +1,16 @@ <header> - <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + ==============<br> + == <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> ==<br> + ==============<br> {{ with .Site.Menus.main }} + <p> + <div style="float: right;">Einfach mal was mit Holz machen.</div> <nav> - <ul> + <a href="/"><b>Posts</b></a>. {{ range . }} - <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> + <a href="{{ .URL | relURL }}"><b>{{ .Name }}</b></a>. {{ end }} - </ul> </nav> + </p> {{ end }} </header> diff --git a/static/css/style.css b/static/css/style.css index e69de29..1d16cc9 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -0,0 +1,10 @@ +body{max-width:800px;margin:40px auto;padding:0 10px;font:14px/1.5 monospace;color:#444}h1,h2,h3{line-height:1.2}@media (prefers-color-scheme: dark){body{color:white;background:#444}a:link{color:#5bf}a:visited{color:#ccf}} +code{color: #FFFFFF; background:#000000; padding:2px} +pre{color: #FFFFFF; background:#000000; padding:24px; white-space: pre-wrap} +article{padding:20px 0} +.center { + display: block; + margin-left: auto; + margin-right: auto; + width: 100%; +} |