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