You've already forked no-js-hugo-theme
Compare commits
2 Commits
c93379bf7c
...
a27278651e
Author | SHA1 | Date | |
---|---|---|---|
a27278651e | |||
d87c83c072 |
@ -6,6 +6,23 @@
|
|||||||
{{ range .Site.Taxonomies.tags }}
|
{{ range .Site.Taxonomies.tags }}
|
||||||
<details>
|
<details>
|
||||||
<summary> <h3>{{ .Page.Title }} ({{ len . }})</h3> </summary>
|
<summary> <h3>{{ .Page.Title }} ({{ len . }})</h3> </summary>
|
||||||
|
{{ partial "inline/postList.html" . }}
|
||||||
|
</details>
|
||||||
|
{{ end }}
|
||||||
|
{{- end }}
|
||||||
|
{{ with where .Site.RegularPages "Draft" true }}
|
||||||
|
<h2>Drafts</h2>
|
||||||
|
{{ partial "inline/postList.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with where .Site.RegularPages "Draft" false }}
|
||||||
|
<h2>All Pages</h2>
|
||||||
|
{{ partial "inline/postList.html" . }}
|
||||||
|
{{ else }}
|
||||||
|
<p>No pages found</p>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ define "partials/inline/postList.html" }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<li>
|
<li>
|
||||||
@ -13,17 +30,5 @@
|
|||||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ol>
|
|
||||||
</details>
|
|
||||||
{{ end }}
|
|
||||||
{{- end }}
|
|
||||||
<h2>All Pages</h2>
|
|
||||||
<ul>
|
|
||||||
{{ range .Site.RegularPages }}
|
|
||||||
<li>
|
|
||||||
<time>{{ .Date.Format "2006/01/02" }}</time>
|
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{{ if .Params.tags }}
|
{{ if .Params.tags }}
|
||||||
│
|
│
|
||||||
{{range .Params.tags}}
|
{{range .Params.tags}}
|
||||||
<a class="btn" href="/tags/{{ . | urlize }}" role="button">{{ . }}</a>
|
<a class="btn" href="/tags/{{ . | urlize }}/" role="button">{{ . }}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ if .Params.categories }}
|
{{ if .Params.categories }}
|
||||||
│
|
│
|
||||||
{{range .Params.categories}}
|
{{range .Params.categories}}
|
||||||
<a class="btn" href="/categories/{{ . | urlize }}" role="button">{{ . }}</a>
|
<a class="btn" href="/categories/{{ . | urlize }}/" role="button">{{ . }}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }}
|
{{- if (and (eq .Lastmod.IsZero false) (ne .Lastmod .Date)) }}
|
||||||
|
Reference in New Issue
Block a user