Basic CSS
This commit is contained in:
parent
f9722dacf7
commit
0277057723
8 changed files with 165 additions and 27 deletions
|
@ -3,14 +3,14 @@
|
|||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<body class="kind-{{ .Kind }}">
|
||||
<header class="layout-header">
|
||||
{{ partial "header.html" . }}
|
||||
</header>
|
||||
<main>
|
||||
<main class="layout-main">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
<footer>
|
||||
<footer class="layout-footer">
|
||||
{{ partial "footer.html" . }}
|
||||
</footer>
|
||||
</body>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ range site.RegularPages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
<article class="layout-post">
|
||||
<h1 class="layout-post-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ .Summary }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
<article class="layout-post">
|
||||
<h1 class="layout-post-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h1>
|
||||
{{ .Summary }}
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="layout-post">
|
||||
<h1 class="layout-post-title">{{ .Title }}</h1>
|
||||
|
||||
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
|
||||
{{ $dateHuman := .Date | time.Format ":date_long" }}
|
||||
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
|
||||
<time datetime="{{ $dateMachine }}" class="layout-post-time">{{ $dateHuman }}</time>
|
||||
|
||||
{{ .Content }}
|
||||
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
<hr>
|
||||
<p>Copyright {{ now.Year }}. All rights reserved.</p>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<h1>{{ site.Title }}</h1>
|
||||
{{ with site.Params.description }}<p>{{ . }}</p>{{end}}
|
||||
<h1 class="layout-page-title"><a href="/">{{ site.Title }}</a></h1>
|
||||
{{ with site.Params.description }}<p class="layout-description">{{ . }}</p>{{end}}
|
||||
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
|
@ -11,7 +11,7 @@ Renders a menu for the given menu ID.
|
|||
{{- $menuID := .menuID }}
|
||||
|
||||
{{- with index site.Menus $menuID }}
|
||||
<nav>
|
||||
<nav class="layout-menu">
|
||||
<ul>
|
||||
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue