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

github.com/themefisher/parsa-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fe8268b..b056447 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,8 @@
{{ define "main" }}
+<!-- checking blog -->
+{{ if or (eq .Section "post") (eq .Section "posts") (eq .Section "blog") (eq .Section "blogs") (eq .Section "news") (eq .Section "categories") (eq .Section "tags") }}
+
<!-- page-title -->
<section class="section bg-secondary">
<div class="container">
@@ -32,4 +35,20 @@
</section>
<!-- /blog single -->
+<!-- regular page -->
+{{ else }}
+<section class="section">
+ <div class="container">
+ <div class="row">
+ <div class="col-lg-12">
+ <h2 class="mb-4">{{.Title }}</h2>
+ {{with .Params.image}}<img src="{{. | absURL }}" alt="{{site.Params.author}}" class="img-fluid w-100 mb-4">{{end}}
+ <div class="content">{{ .Content }}</div>
+ </div>
+ </div>
+ </div>
+</section>
+{{ end }}
+<!-- /regular page -->
+
{{ end }} \ No newline at end of file