forked from mirrors/hugo-tufte
adjust meta styles; add tufte-css.md
This commit is contained in:
parent
20e13a5e63
commit
2587e4bb28
6 changed files with 235 additions and 10 deletions
layouts/partials
|
@ -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 }}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue