mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-13 06:02:44 +02:00
adjust brand styles; adjust homepage structure
This commit is contained in:
parent
2587e4bb28
commit
d77a621536
7 changed files with 35 additions and 64 deletions
layouts
|
@ -1,26 +1,26 @@
|
|||
{{ define "main" }}
|
||||
<div id="layout" class="pure-g">
|
||||
<article class="pure-u-1">
|
||||
<article id="main">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ with .Content }}
|
||||
<section>
|
||||
{{ . }}
|
||||
</section>
|
||||
<section>
|
||||
{{ . }}
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ range where .Site.RegularPages "Type" "posts" }}
|
||||
|
||||
<h2 class="content-title">
|
||||
{{ if .IsNode }}
|
||||
<a href="{{ .Permalink }}">{{ .Title}}</a>
|
||||
{{ else }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
|
||||
<section class="page-list">
|
||||
{{ range .Site.RegularPages }}
|
||||
{{/* range where .Site.RegularPages "Type" "posts" */}}
|
||||
{{ if ne .Draft true}}
|
||||
<h2 class="content-title">
|
||||
{{ if .IsNode }}
|
||||
<a href="{{ .Permalink }}">{{ .Title}}</a>
|
||||
{{ else }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
<p>{{ truncate 140 .Summary }}</p>
|
||||
{{ end }}
|
||||
</h1>
|
||||
|
||||
<p>{{ truncate 140 .Summary }}</p>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ partial "footer.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue