Initial commit
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
{{- $posts = where .Site.RegularPages "Type" $postsFoldername }}
|
||||
{{- end }}
|
||||
|
||||
{{- $pinnedPosts := where $posts "Params.pinned" true }}
|
||||
{{- $regularPosts := where $posts "Params.pinned" "!=" true }}
|
||||
{{- $posts = union $pinnedPosts $regularPosts }}
|
||||
|
||||
{{- $firstPost := first 1 $posts }}
|
||||
|
||||
{{- if and (eq $postsFeaturedPostEnabled true) (gt (len $posts) 1) -}}
|
||||
@@ -40,7 +44,7 @@
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
|
||||
{{- if (eq $postsFeaturedPostEnabled true) }}
|
||||
{{- if and (eq $postsFeaturedPostEnabled true) (eq $postsPaging.PageNumber 1) }}
|
||||
{{- partial "posts/featured.html" (dict "firstpost" $firstPost "siteData" (index .Site.Data .Site.Language.Lang)) }}
|
||||
{{- end }}
|
||||
|
||||
@@ -60,6 +64,9 @@
|
||||
<a href="#navPanel" id="navPanelToggle">{{ i18n "NAV_MENU" . }}</a>
|
||||
</div>
|
||||
|
||||
<!-- Global Back to Top Button -->
|
||||
{{ partial "back-to-top" . }}
|
||||
|
||||
{{- template "_internal/google_analytics.html" . }}
|
||||
{{- partial "scripts/index" . }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user