1
0
Fork 0
forked from mirrors/hugo-tufte

adjust meta styles; add tufte-css.md

This commit is contained in:
loikein 2023-04-17 17:20:14 +01:00
commit 2587e4bb28
6 changed files with 235 additions and 10 deletions

View file

@ -10,17 +10,17 @@
{{ if .IsPage }}
{{ if .Params.subtitle }}
<p class=subtitle>{{ .Params.subtitle }}</p>
<h3 class=subtitle>{{ .Params.subtitle }}</h3>
{{ end }}
{{ if or (eq .Type "post") (.Params.meta) }}
<span class="content-meta">
{{ if .Params.author }}
<span class="author">{{ .Params.author }}</span><br />
<p class="author">{{ .Params.author }}</p>
{{ end }}
{{ if not .Params.hidedate }}
{{ .Date.Format "2006-01-02" }}
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
{{end }}
{{ if not .Params.hidereadtime }}
@ -28,7 +28,6 @@
{{ end }}
{{ if .Params.categories }}
<br>
{{ range .Params.categories }}
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}

View file

@ -5,7 +5,12 @@
<meta name="description"
content="{{ with .Description }}{{ . }}{{ else }}{{ with .Summary }}{{ . }}{{ else }}{{ .Site.Params.description }}{{end }}{{ end }} ">
<link rel="canonical" href="{{ .Permalink }}" />
<!-- Standard favicon -->
<link rel="icon" type="image/x-icon" href="{{"favicon/favicon.ico" | relURL}}">
<!-- favicon -->
{{ if .Site.Params.favicon }}
<link rel="icon" href="{{ .Site.Params.favicon | absURL }}" />
{{ end }}
{{ if .Site.Params.touchicon }}
<link rel="apple-touch-icon" href="{{ .Site.Params.touchicon | absURL }}" />
{{ end }}
{{ partial "header.includes.html" . }}
</head>