init as nameless new theme

This commit is contained in:
morph 2020-05-26 03:04:43 +02:00
parent f4735db2ae
commit ce98bd5c83
6 changed files with 27 additions and 13 deletions

View file

@ -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 }}

View file

@ -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" . }}

View file

@ -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 }}

View file

@ -1,3 +1,7 @@
<footer>
<p>&copy; {{ now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></p>
<p>&copy; {{ 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>

View file

@ -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>

View file

@ -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%;
}