mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-13 14:12:43 +02:00
Started refactoring
This commit is contained in:
parent
e2af7d63ca
commit
c454c6f4ca
19 changed files with 186 additions and 124 deletions
layouts
|
@ -1,17 +1,25 @@
|
|||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
{{ 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>
|
||||
<article class="pure-u-1">
|
||||
{{ partial "brand.html" . }}
|
||||
{{ range where .Site.RegularPages "Type" "post"}}
|
||||
|
||||
<h1 class="content-title">
|
||||
{{ if .IsNode }}
|
||||
<a href="{{ .Permalink }}">{{ .Title}}</a>
|
||||
{{ else }}
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} :: Draft {{end}}</a>
|
||||
{{ end }}
|
||||
</h1>
|
||||
|
||||
|
||||
<p>{{ truncate 120 .Summary }}</p>
|
||||
{{/* {{ if .Truncated }} */}}
|
||||
<p><a href="{{ .RelPermalink }}">Read On →</a></p>
|
||||
{{/* {{ end }} */}}
|
||||
|
||||
{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
</article>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue