mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Clean up directory structure of partials and .Render templates
This commit is contained in:
parent
8067173f0c
commit
f77c61b561
@ -35,7 +35,7 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<li>{{ .Render "summary" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "post-metadata.html" . }}
|
{{ partial "post-metadata/full.html" . }}
|
||||||
|
|
||||||
|
|
||||||
{{ with (.GetTerms "series") }}
|
{{ with (.GetTerms "series") }}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{{ partial "author-metadata.html" . }}
|
{{ partial "post-metadata/author.html" . }}
|
||||||
|
|
||||||
<div class="post-description">
|
<div class="post-description">
|
||||||
{{ partial "description-or-summary.html" . }}
|
{{ partial "description-or-summary.html" . }}
|
@ -5,7 +5,7 @@
|
|||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{{ partial "post-metadata-short.html" . }}
|
{{ partial "post-metadata/short.html" . }}
|
||||||
|
|
||||||
{{ with .Resources.GetMatch "feature" }}
|
{{ with .Resources.GetMatch "feature" }}
|
||||||
<div class="post-media">
|
<div class="post-media">
|
@ -6,7 +6,7 @@
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="post-metadata">
|
<div class="post-metadata">
|
||||||
{{ partial "translations-meta-item.html" . }}
|
{{ partial "post-meta-item/translations.html" . }}
|
||||||
|
|
||||||
{{ if ne .Site.Params.readingtime false }}
|
{{ if ne .Site.Params.readingtime false }}
|
||||||
<span class="post-meta-item">
|
<span class="post-meta-item">
|
||||||
@ -19,7 +19,7 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "viewsource-meta-item.html" . }}
|
{{ partial "post-meta-item/viewsource.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="post-description">
|
<div class="post-description">
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<div class="series-pages">
|
<div class="series-pages">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Data.Pages.Reverse }}
|
{{ range .Data.Pages.Reverse }}
|
||||||
<li>{{ .Render "summary" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
@ -7,7 +7,7 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<li>{{ .Render "author-summary" }}</li>
|
<li>{{ .Render "summary/author" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
{{ partial "author-metadata.html" . }}
|
{{ partial "post-metadata/author.html" . }}
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<li>{{ .Render "summary" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
@ -26,11 +26,11 @@
|
|||||||
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
|
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "opengraph.html" . }}
|
{{ partial "seo-tags/opengraph.html" . }}
|
||||||
{{ partial "twitter_cards.html" . }}
|
{{ partial "seo-tags/twitter-cards.html" . }}
|
||||||
{{ partial "schema.html" . }}
|
{{ partial "seo-tags/schema.html" . }}
|
||||||
{{ partial "link_tags.html" . }}
|
{{ partial "seo-tags/link.html" . }}
|
||||||
{{ partial "author_meta_tags.html" . }}
|
{{ partial "seo-tags/author.html" . }}
|
||||||
|
|
||||||
<meta name="language" content="{{ .Language.Lang }}">
|
<meta name="language" content="{{ .Language.Lang }}">
|
||||||
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "authors-meta-item.html" . }}
|
{{ partial "post-meta-item/authors.html" . }}
|
||||||
{{ partial "translations-meta-item.html" . }}
|
{{ partial "post-meta-item/translations.html" . }}
|
||||||
{{ partial "readingtime-meta-item.html" . }}
|
{{ partial "post-meta-item/readingtime.html" . }}
|
||||||
{{ partial "viewsource-meta-item.html" . }}
|
{{ partial "post-meta-item/viewsource.html" . }}
|
||||||
{{ partial "tags-meta-item.html" . }}
|
{{ partial "post-meta-item/tags.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
@ -9,10 +9,10 @@
|
|||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "authors-meta-item.html" . }}
|
{{ partial "post-meta-item/authors.html" . }}
|
||||||
{{ partial "translations-meta-item.html" . }}
|
{{ partial "post-meta-item/translations.html" . }}
|
||||||
{{ partial "readingtime-meta-item.html" . }}
|
{{ partial "post-meta-item/readingtime.html" . }}
|
||||||
{{ partial "series-meta-item.html" . }}
|
{{ partial "post-meta-item/series.html" . }}
|
||||||
{{ partial "tags-meta-item.html" . }}
|
{{ partial "post-meta-item/tags.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
@ -7,7 +7,7 @@
|
|||||||
<div class="series-taxonomy">
|
<div class="series-taxonomy">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
<li>{{ .Render "series-summary" }}</li>
|
<li>{{ .Render "summary/series" }}</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages.Reverse }}
|
{{ range .Paginator.Pages.Reverse }}
|
||||||
<li>{{ .Render "summary" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<div class="page-list">
|
<div class="page-list">
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
<li>{{ .Render "summary" }}</li>
|
<li>{{ .Render "summary/post" }}</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div>
|
<div>
|
||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user