init for the hugo site
This commit is contained in:
commit
4a54106436
16 changed files with 156 additions and 0 deletions
14
layouts/_default/baseof.html
Normal file
14
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="/index.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
{{ block "main" . }}
|
||||
content goes here
|
||||
{{ end }}
|
||||
</body>
|
||||
</html>
|
26
layouts/_default/list.html
Normal file
26
layouts/_default/list.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
<header>
|
||||
<nav>
|
||||
<a href="/">home</a>
|
||||
<a href="..">go up</a>
|
||||
</nav>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h2>{{ .Description }}</h2>
|
||||
</header>
|
||||
<!-- "{{ .Content }}" pulls from the markdown content of the corresponding _index.md -->
|
||||
{{ .Content }}
|
||||
</article>
|
||||
<ul>
|
||||
<!-- Ranges through content/posts/*.md -->
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ if .Date }}{{ .Date.Format "2006-01-02" }} |{{ end }} {{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</main>
|
||||
{{ end }}
|
10
layouts/_default/single.html
Normal file
10
layouts/_default/single.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<article>
|
||||
<a href="..">go up</a>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h2>{{ .Description }}</h2>
|
||||
</header>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
11
layouts/_default/taxonomy.html
Normal file
11
layouts/_default/taxonomy.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ define "main" }}
|
||||
<main>
|
||||
<div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<!-- ranges through each of the content files associated with a particular taxonomy term and renders the summary.html content view -->
|
||||
{{ range .Pages }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue