rename partials for consistency
This commit is contained in:
parent
de6decde38
commit
6b9c2ef4eb
@ -12,7 +12,7 @@
|
|||||||
<h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
|
<h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
|
||||||
{{ partial "post-language-switcher.html" . }}
|
{{ partial "post-language-switcher.html" . }}
|
||||||
</header>
|
</header>
|
||||||
{{ partial "postInfo.html" . }}
|
{{ partial "post-info.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
<div class="content e-content">
|
<div class="content e-content">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
{{ partial "postInfo.html" . }}
|
{{ partial "post-info.html" . }}
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
|
||||||
{{ partial "paginationPost.html" . }}
|
{{ partial "post-pagination.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.DisqusShortname }}
|
{{ if .Site.DisqusShortname }}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<a href="{{ (printf "%s/%s" .Site.LanguagePrefix .Data.Plural) | absLangURL }}">{{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }}</a>
|
<a href="{{ (printf "%s/%s" .Site.LanguagePrefix .Data.Plural) | absLangURL }}">{{ i18n (printf "toAll%s" (.Data.Plural | humanize )) | humanize }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ range .Paginator.Pages }}
|
{{ range .Paginator.Pages }}
|
||||||
{{ partial "postSummary.html" . }}
|
{{ partial "post-summary.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<div class="articles h-feed">
|
<div class="articles h-feed">
|
||||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
{{ range (.Paginate $pages).Pages }}
|
{{ range (.Paginate $pages).Pages }}
|
||||||
{{ partial "postSummary.html" . }}
|
{{ partial "post-summary.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<footer class="common-footer">
|
<footer class="common-footer">
|
||||||
{{ $languagesCount := $.Site.Home.AllTranslations }}
|
{{ $languagesCount := $.Site.Home.AllTranslations }}
|
||||||
{{ if gt $languagesCount 1 }}
|
{{ if gt $languagesCount 1 }}
|
||||||
{{ partial "languageSelect.html" . }}
|
{{ partial "language-switcher.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="common-footer-bottom">
|
<div class="common-footer-bottom">
|
||||||
@ -20,7 +20,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "themeSwitcher.html" . }}
|
{{ partial "theme-switcher.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{ partial "h-card.html" . }}
|
{{ partial "h-card.html" . }}
|
||||||
|
@ -15,5 +15,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "postInfo.html" . }}
|
{{ partial "post-info.html" . }}
|
||||||
</article>
|
</article>
|
@ -6,13 +6,13 @@
|
|||||||
{{ $ref := printf $url .name }}
|
{{ $ref := printf $url .name }}
|
||||||
<li>
|
<li>
|
||||||
<a {{ printf "href=%q" $ref | safeHTMLAttr }} title="{{ humanize .id }}" rel="me">
|
<a {{ printf "href=%q" $ref | safeHTMLAttr }} title="{{ humanize .id }}" rel="me">
|
||||||
{{ partial "fontawesome.html" (dict "iconName" .id "custom" false) }}
|
{{ partial "font-awesome.html" (dict "iconName" .id "custom" false) }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ else if (isset . "url") }}
|
{{ else if (isset . "url") }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ printf .url }}" title="{{ humanize .id }}" rel="me">
|
<a href="{{ printf .url }}" title="{{ humanize .id }}" rel="me">
|
||||||
{{ partial "fontawesome.html" (dict "iconName" .id "custom" true) }}
|
{{ partial "font-awesome.html" (dict "iconName" .id "custom" true) }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user