Add taxonomy list page

This commit is contained in:
Ryan Watters
2017-02-14 21:16:39 -08:00
parent 3fd4d241f7
commit 63c7924929
7 changed files with 43 additions and 6 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ aliases: []
notes:
---
**Archetypes** are content `.md` files in the [archetypes directory][] of your project that contain pre-configured [front matter][] for your site's [content types][]. Archetypes facilitate consistent metadata in your website's content and allow content authors to quickly generate instances of a content type via the `hugo new` command.
**Archetypes** are content files in the [archetypes directory][] of your project that contain pre-configured [front matter][] for your site's [content types][]. Archetypes facilitate consistent metadata in your website's content and allow content authors to quickly generate instances of a content type via the `hugo new` command.
Hugo's generator assumes your working directory is the content folder at the root of your project. Hugo is able to infer the appropriate archetype by assuming the content type from the content section passed to the CLI command:
@@ -1,2 +0,0 @@
{{ define "main" }}
{{ end }}
+15 -1
View File
@@ -1,5 +1,19 @@
{{ define "main" }}
<main class="main">
<header class="content-header">
<h1 class="page-title"><a href="{{.Site.BaseURL}}{{.Data.Plural}}"><i class="icon-{{.Data.Plural}}"></i>{{.Data.Plural}}:</a> {{ .Title }}</h1>
</header>
<div class="body-copy taxonomies">
{{range .Data.Pages}}
<a href="{{.Permalink}}" class="taxonomy">
<article>
<header>
<h2>{{.Title}}</h2>
</header>
<p>{{.Description}}</p>
</article>
</a>
{{end}}
</div>
</main>
{{ end }}
@@ -18,6 +18,9 @@ h1.page-title {
font-size: 2.25em;
padding-top: 1em;
}
// a {
// font-size:14px;
// }
}
h2,
@@ -0,0 +1,22 @@
.taxonomies {
.taxonomy {
box-shadow: none;
background-color: transparent;
color: $base-font-color;
margin-bottom:1em;
&:before,
&:after,
&:hover {
background-color: transparent;
border: none;
color: $base-font-color;
}
h2 {
padding-bottom: 2px;
border-bottom:2px solid $base-font-color;
}
p {
margin-bottom:0px;
}
}
}
+1 -1
View File
@@ -25,7 +25,7 @@
@import 'components/site-search';
@import 'components/keyboard';
@import 'components/table-of-contents';
@import 'components/taxonomy-lists';
//major layout parts/chrome
@import 'layout/site-header';
File diff suppressed because one or more lines are too long