Clean up directory structure of partials and .Render templates

This commit is contained in:
2021-11-22 01:57:35 -06:00
parent 8067173f0c
commit f77c61b561
25 changed files with 28 additions and 28 deletions

View File

@ -35,7 +35,7 @@
<div class="page-list">
<ul>
{{ range .Paginator.Pages }}
<li>{{ .Render "summary" }}</li>
<li>{{ .Render "summary/post" }}</li>
{{ else }}
<div>
{{ i18n "no_posts" }}

View File

@ -6,7 +6,7 @@
</h1>
</div>
{{ partial "post-metadata.html" . }}
{{ partial "post-metadata/full.html" . }}
{{ with (.GetTerms "series") }}

View File

@ -4,7 +4,7 @@
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>
{{ partial "author-metadata.html" . }}
{{ partial "post-metadata/author.html" . }}
<div class="post-description">
{{ partial "description-or-summary.html" . }}

View File

@ -5,7 +5,7 @@
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>
{{ partial "post-metadata-short.html" . }}
{{ partial "post-metadata/short.html" . }}
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">

View File

@ -6,7 +6,7 @@
</h2>
<div class="post-metadata">
{{ partial "translations-meta-item.html" . }}
{{ partial "post-meta-item/translations.html" . }}
{{ if ne .Site.Params.readingtime false }}
<span class="post-meta-item">
@ -19,7 +19,7 @@
</span>
{{ end }}
{{ partial "viewsource-meta-item.html" . }}
{{ partial "post-meta-item/viewsource.html" . }}
</div>
<div class="post-description">
@ -29,7 +29,7 @@
<div class="series-pages">
<ul>
{{ range .Data.Pages.Reverse }}
<li>{{ .Render "summary" }}</li>
<li>{{ .Render "summary/post" }}</li>
{{ end }}
</ul>
</div>