Compare commits
6 Commits
911f999379
...
d7f52b0d64
Author | SHA1 | Date |
---|---|---|
Kevin C. Coram | d7f52b0d64 | |
Kevin C. Coram | 779f3c20e0 | |
Kevin C. Coram | 7de183f6c6 | |
Kevin C. Coram | f44ae3d46d | |
Kevin C. Coram | 1a2aa49bbf | |
Kevin C. Coram | dccbceb218 |
|
@ -10,6 +10,7 @@ paginate = 5
|
|||
|
||||
[params]
|
||||
subtitle = "A theme with no CSS and only basic layouts"
|
||||
homepageSectionTitle = "What's New"
|
||||
mainSections = [ "posts" ]
|
||||
|
||||
# Configuration Parameters for IndieWeb h-card
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
{{- end }}
|
||||
</nav>
|
||||
</header>
|
||||
<main>
|
||||
<main {{ if eq .Kind "page" }}class="h-entry"{{ else if in (slice "section" "taxonomy" "taxonomyTerm" ) .Kind }}class="h-feed"{{ end }}>
|
||||
<header>
|
||||
{{- block "content-header" . -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "content-header" }}
|
||||
<h1 id="title">{{ .Title }}</h1>
|
||||
<h1 class="p-name">{{ .Title }}</h1>
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
<header class="list-content">
|
||||
{{ if .Content }}
|
||||
<div class="list-content e-content">
|
||||
{{ .Content }}
|
||||
</header>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ range $index, $page := (.Paginate (where .Pages ".Params.hidden" "!=" "true")).Pages }}
|
||||
{{ if ne $index 0 }}
|
||||
{{ end }}
|
||||
|
|
|
@ -3,10 +3,14 @@
|
|||
{{ .Title }} – {{ .Site.Title }}
|
||||
{{ end }}
|
||||
{{ define "content-header" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h1 class="p-name u-url"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
<p>
|
||||
Published by <a class="p-author h-card" href="{{ .Site.BaseURL }}">{{ .Site.Params.Card.Author }}</a> on
|
||||
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006" }}</time>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ define "content" }}
|
||||
<article>
|
||||
<article class="e-content">
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
<article class="post">
|
||||
<article class="h-entry">
|
||||
<header>
|
||||
<h2><a href='{{ .Permalink }}'>{{ .Title }}</a> </h2>
|
||||
<div class="post-meta">{{ .Date.Format "Mon, Jan 2, 2006" }} - {{ .FuzzyWordCount }} Words </div>
|
||||
<h2 class="p-name u-url"><a href='{{ .Permalink }}'>{{ .Title }}</a> </h2>
|
||||
<p>
|
||||
Published by <a class="p-author h-card" href="{{ .Site.BaseURL }}">{{ .Site.Params.Card.Author }}</a> on
|
||||
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006" }}</time>
|
||||
– {{ .FuzzyWordCount }} Words
|
||||
</p>
|
||||
</header>
|
||||
<section>
|
||||
<section class="p-summary">
|
||||
{{ .Summary }}
|
||||
</section>
|
||||
{{- if .Truncated }}
|
||||
|
|
|
@ -1,14 +1,19 @@
|
|||
{{ define "content" }}
|
||||
<article class="homepage-content">
|
||||
<article class="homepage-content h-entry e-content">
|
||||
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
|
||||
{{.Content}}
|
||||
</article>
|
||||
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
||||
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
|
||||
{{ if ne $index 0 }}
|
||||
{{ end }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
<section class="h-feed">
|
||||
{{ if .Site.Params.homepageSectionTitle }}
|
||||
<h2 class="p-name u-url"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.homepageSectionTitle }}</a></h2>
|
||||
{{ end }}
|
||||
<!-- Note that .Pages is the same as .Site.RegularPages on the homepage template. -->
|
||||
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
|
||||
{{ if ne $index 0 }}
|
||||
{{ end }}
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ define "content-footer" }}
|
||||
{{ partial "paginator.html" .Paginator }}
|
||||
|
|
Loading…
Reference in New Issue