Clean up directory structure of partials and .Render templates

This commit is contained in:
BBaoVanC 2021-11-22 01:57:35 -06:00
parent 8067173f0c
commit f77c61b561
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
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>

View File

@ -7,7 +7,7 @@
<div class="page-list">
<ul>
{{ range .Paginator.Pages }}
<li>{{ .Render "author-summary" }}</li>
<li>{{ .Render "summary/author" }}</li>
{{ end }}
</ul>
</div>

View File

@ -5,14 +5,14 @@
{{ partial "rss-link.html" . }}
</h1>
{{ partial "author-metadata.html" . }}
{{ partial "post-metadata/author.html" . }}
{{ .Content }}
<div class="page-list">
<ul>
{{ range .Paginator.Pages }}
<li>{{ .Render "summary" }}</li>
<li>{{ .Render "summary/post" }}</li>
{{ else }}
<div>
{{ i18n "no_posts" }}

View File

@ -26,11 +26,11 @@
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
{{ end }}
{{ partial "opengraph.html" . }}
{{ partial "twitter_cards.html" . }}
{{ partial "schema.html" . }}
{{ partial "link_tags.html" . }}
{{ partial "author_meta_tags.html" . }}
{{ partial "seo-tags/opengraph.html" . }}
{{ partial "seo-tags/twitter-cards.html" . }}
{{ partial "seo-tags/schema.html" . }}
{{ partial "seo-tags/link.html" . }}
{{ partial "seo-tags/author.html" . }}
<meta name="language" content="{{ .Language.Lang }}">
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">

View File

@ -19,10 +19,10 @@
</span>
{{ end }}
{{ partial "authors-meta-item.html" . }}
{{ partial "translations-meta-item.html" . }}
{{ partial "readingtime-meta-item.html" . }}
{{ partial "viewsource-meta-item.html" . }}
{{ partial "tags-meta-item.html" . }}
{{ partial "post-meta-item/authors.html" . }}
{{ partial "post-meta-item/translations.html" . }}
{{ partial "post-meta-item/readingtime.html" . }}
{{ partial "post-meta-item/viewsource.html" . }}
{{ partial "post-meta-item/tags.html" . }}
</div>
{{ end }}

View File

@ -9,10 +9,10 @@
</span>
{{ end }}
{{ partial "authors-meta-item.html" . }}
{{ partial "translations-meta-item.html" . }}
{{ partial "readingtime-meta-item.html" . }}
{{ partial "series-meta-item.html" . }}
{{ partial "tags-meta-item.html" . }}
{{ partial "post-meta-item/authors.html" . }}
{{ partial "post-meta-item/translations.html" . }}
{{ partial "post-meta-item/readingtime.html" . }}
{{ partial "post-meta-item/series.html" . }}
{{ partial "post-meta-item/tags.html" . }}
</div>
{{ end }}

View File

@ -7,7 +7,7 @@
<div class="series-taxonomy">
<ul>
{{ range .Pages }}
<li>{{ .Render "series-summary" }}</li>
<li>{{ .Render "summary/series" }}</li>
{{ end }}
</ul>
</div>

View File

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

View File

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