mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-11-03 18:27:55 -06:00 
			
		
		
		
	Clean up directory structure of partials and .Render templates
This commit is contained in:
		@@ -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" }}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
    </h1>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
{{ partial "post-metadata.html" . }}
 | 
			
		||||
{{ partial "post-metadata/full.html" . }}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{{ with (.GetTerms "series") }}
 | 
			
		||||
 
 | 
			
		||||
@@ -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" . }}
 | 
			
		||||
@@ -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">
 | 
			
		||||
@@ -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>
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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" }}
 | 
			
		||||
 
 | 
			
		||||
@@ -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 }}">
 | 
			
		||||
 
 | 
			
		||||
@@ -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 }}
 | 
			
		||||
@@ -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 }}
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
    <div class="series-taxonomy">
 | 
			
		||||
        <ul>
 | 
			
		||||
            {{ range .Pages }}
 | 
			
		||||
                <li>{{ .Render "series-summary" }}</li>
 | 
			
		||||
                <li>{{ .Render "summary/series" }}</li>
 | 
			
		||||
            {{ end }}
 | 
			
		||||
        </ul>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -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" }}
 | 
			
		||||
 
 | 
			
		||||
@@ -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" }}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user