forked from mirrors/hugo-tufte
Started refactoring
This commit is contained in:
parent
e2af7d63ca
commit
c454c6f4ca
19 changed files with 186 additions and 124 deletions
layouts/_default
13
layouts/_default/baseof.html
Normal file
13
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{- partial "header.html" . -}}
|
||||
|
||||
<body >
|
||||
{{ block "main" . }}{{ end }}
|
||||
|
||||
<script>
|
||||
feather.replace()
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
23
layouts/_default/home.html
Normal file
23
layouts/_default/home.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!-- +++
|
||||
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,5 +1,6 @@
|
|||
{{ partial "header.html" . }}
|
||||
|
||||
|
||||
{{ partial "header.html" . }}
|
||||
<body>
|
||||
<div id="layout" class="pure-g">
|
||||
<article class="pure-u-1">
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{/*
|
||||
|
||||
This template render single pages
|
||||
|
||||
*/}}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue