mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 23:38:53 +00:00
Add taxonomy list page
This commit is contained in:
@@ -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 }}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user