mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-04 10:32:45 +02:00
adjust subtitle html; remove redundant style
This commit is contained in:
parent
b9805c3fbe
commit
95a0068d52
9 changed files with 52 additions and 74 deletions
layouts
|
@ -1,5 +1,5 @@
|
|||
{{ define "main" }}
|
||||
<article id="main">
|
||||
<article id="main" class="home-page">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ with .Content }}
|
||||
<section>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<header class="brand">
|
||||
<h1>{{ .Site.Title}}</h1>
|
||||
<h2 class="subtitle">{{ .Site.Params.subtitle }}</h2>
|
||||
<p class="subtitle">{{ .Site.Params.subtitle }}</p>
|
||||
{{ partial "nav.html" . }}
|
||||
<hr />
|
||||
</header>
|
||||
|
|
|
@ -1,39 +1,37 @@
|
|||
<section>
|
||||
|
||||
<h1 class="content-title">
|
||||
{{ if .IsNode }}
|
||||
{{ .Title }}
|
||||
{{ else }}
|
||||
{{ .Title }}{{ if .Draft }} :: Draft {{end}}
|
||||
{{ end }}
|
||||
{{- if .IsNode -}}
|
||||
{{- .Title -}}
|
||||
{{- else -}}
|
||||
{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}
|
||||
{{- end -}}
|
||||
</h1>
|
||||
|
||||
{{ if .IsPage }}
|
||||
{{ if .Params.subtitle }}
|
||||
<h3 class=subtitle>{{ .Params.subtitle }}</h3>
|
||||
{{ end }}
|
||||
{{- if .IsPage -}}
|
||||
{{- if .Params.subtitle -}}
|
||||
<p class=subtitle>{{ .Params.subtitle }}</p>
|
||||
{{- end -}}
|
||||
|
||||
{{ if or (eq .Type "post") (.Params.meta) }}
|
||||
{{- if or (eq .Type "post") (.Params.meta) -}}
|
||||
<span class="content-meta">
|
||||
{{ if .Params.author }}
|
||||
{{- if .Params.author -}}
|
||||
<p class="author">{{ .Params.author }}</p>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{ if not .Params.hidedate }}
|
||||
{{- if not .Params.hidedate -}}
|
||||
<p class="date">{{ .Date.Format "2006-01-02" }}</p>
|
||||
{{end }}
|
||||
{{- end -}}
|
||||
|
||||
{{ if not .Params.hidereadtime }}
|
||||
{{ .ReadingTime }} min read
|
||||
{{ end }}
|
||||
{{- if not .Params.hidereadtime -}}
|
||||
<span>{{ .ReadingTime }} min read </span>
|
||||
{{- end -}}
|
||||
|
||||
{{ if .Params.categories }}
|
||||
{{ range .Params.categories }}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range .Params.categories -}}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue