feat: use latex hugo template
This commit is contained in:
parent
1d12f5614d
commit
9004c27ceb
56 changed files with 1666 additions and 2 deletions
42
layouts/partials/header.html
Normal file
42
layouts/partials/header.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
|
||||
{{ if .IsHome }}
|
||||
{{ if .Site.Params.homeTitle }}
|
||||
{{ $.Scratch.Set "title" .Site.Params.homeTitle }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "title" .Site.Title }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $.Scratch.Set "title" .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ $title := $.Scratch.Get "title" }}
|
||||
{{ if $title }}
|
||||
<header>
|
||||
{{ partial "nav.html" . }}
|
||||
<div class="intro-header">
|
||||
<div class="container">
|
||||
<div class="{{ .Type }}-heading">
|
||||
{{ if eq .Type "list" }}
|
||||
<h1>{{ if .Data.Singular }}#{{ end }}{{ .Title }}</h1>
|
||||
{{ else }}
|
||||
<h1>{{ with $title }}{{.}}{{ else }}<br/>{{ end }}</h1>
|
||||
{{ if .IsHome }}
|
||||
<p class="author">{{ with .Site.Params.Author.name }}{{.}}{{ else }}<br/>{{ end }}</p>
|
||||
|
||||
{{ if .Site.Params.Author.abstract }}
|
||||
<div class="abstract">
|
||||
<h5>Abstract</h5>
|
||||
<p>
|
||||
{{ .Site.Params.Author.abstract }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{{ else }}
|
||||
<div class="intro-header"></div>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue