mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-04 10:32:45 +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,23 +0,0 @@
|
|||
<!-- +++
|
||||
layout: "baseof"
|
||||
+++ -->
|
||||
|
||||
{{ define "main" }}
|
||||
|
||||
|
||||
|
||||
<div id="layout" class="pure-g">
|
||||
<article class="pure-u-1">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ range first 5 .Site.Pages }}
|
||||
{{ partial "content.header.html" . }}
|
||||
<p>{{ .Summary }}</p>
|
||||
{{ if .Truncated }}
|
||||
<p><a href="{{ .RelPermalink }}">Read On →</a></p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
|
@ -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 }}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<header class="brand">
|
||||
<a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title}}</h1></a>
|
||||
<h2>{{ .Site.Params.subtitle }}</h2>
|
||||
<h1>{{ .Site.Title}}</h1>
|
||||
<h2 class="subtitle">{{ .Site.Params.subtitle }}</h2>
|
||||
{{ partial "nav.html" . }}
|
||||
<hr />
|
||||
</header>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue