small improvements

This commit is contained in:
Niklas Buschmann 2019-08-01 15:44:41 +02:00
parent 37355b1f89
commit c9911ef878
4 changed files with 6 additions and 9 deletions

View File

@ -9,8 +9,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="alternate" type="application/rss+xml" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="{{ .Site.Title }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/index.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/theme.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/classes.css">
{{- if or .Params.math .Site.Params.math }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css" integrity="sha256-uT5rNa8r/qorzlARiO7fTBE7EWQiX/umLlXsq7zyQP8=" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.js" integrity="sha256-TxnaXkPUeemXTVhlS5tDIVg42AvnNAotNaQjjYKK9bc=" crossorigin="anonymous"></script>
@ -18,7 +18,7 @@
{{- end }}
<header class="{{ if .Site.Params.brightheader }}bright{{ else }}dark{{ end }}">
<h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
<h1 class="hero"><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
<nav>
{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>

View File

@ -3,7 +3,7 @@
<article>
<header>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
{{ if .Date }}<p><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 02, 2006" }}</time></p>{{ end }}
{{ if .Date }}<p class="meta"><time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "January 02, 2006" }}</time></p>{{ end }}
</header>
{{ .Content }}
</article>

View File

@ -1,12 +1,8 @@
body > header h1 {
.hero {
font-size: 1.6em;
}
article h1 {
font-size: 1.7em;
}
header p {
.meta {
margin-top: .2em;
margin-bottom: 1.5em;
}

View File

@ -103,6 +103,7 @@ body > header {
}
header h1 {
font-size: 1.7em;
margin: 0;
}