Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-03 13:38:10 +0300
committerDillon <dillonzq@outlook.com>2020-02-03 13:38:10 +0300
commit52c7ad29a60cc4ee6c51217d11bb4877ef0cf88a (patch)
tree4bf578ddcdbf78b8543bf33d948feceac2b7f5e8 /layouts/index.html
parent8aba2262906628f38f114a9947783bc6c7fd7495 (diff)
chore(style): update code style and add an i18n word
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 20bef9d..47825de 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,8 +1,11 @@
{{- define "content" -}}
+ {{- /* Home mode [post] */ -}}
{{- if eq .Site.Params.home_mode "post" -}}
<div class="page">
+ {{- /* Profile */ -}}
{{- partial "home/profile.html" . -}}
+ {{- /* Paginate */ -}}
{{- $paginator := where .Site.RegularPages "Type" "posts" -}}
{{- $paginator = where $paginator "Params.show_in_homepage" "!=" false -}}
{{- with .Site.Params.home_paginate -}}
@@ -13,10 +16,12 @@
{{- range $paginator.Pages -}}
{{- .Render "summary" -}}
{{- end -}}
-
{{- partial "paginator.html" . -}}
</div>
+
+ {{- /* Home mode [other] */ -}}
{{- else -}}
+ {{- /* Profile */ -}}
{{- partial "home/profile.html" . -}}
{{- end -}}
{{- end -}} \ No newline at end of file