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

github.com/themefisher/liva-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThemefisher Dev <themefisher.dev@gmail.com>2020-02-29 07:28:41 +0300
committerThemefisher Dev <themefisher.dev@gmail.com>2020-02-29 07:28:41 +0300
commit3791474bee600497e35bc32eed87c6a2ae2f68c9 (patch)
treea66d5781914bf5281078e03a6cfef532af546eb4 /layouts
parent01ce9124cb24c53cb08fc80440d6256069d117dc (diff)
modified about page
Diffstat (limited to 'layouts')
-rw-r--r--layouts/about/single.html39
-rw-r--r--layouts/partials/sidebar.html2
2 files changed, 1 insertions, 40 deletions
diff --git a/layouts/about/single.html b/layouts/about/single.html
deleted file mode 100644
index f8ffc2a..0000000
--- a/layouts/about/single.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{{ define "main" }}
-
-<section class="section-sm">
- <div class="container">
- <div class="row">
- <div class="col-lg-8 mx-auto text-center">
- {{ if .Params.Image }}
- <img src="{{ .Params.Image | absURL }}" alt="" class="img-fluid d-block mx-auto rounded-circle mb-4">
- {{ end }}
- <h4 class="widget-title">{{ .Title | markdownify }}</h4>
- <div class="content">
- {{ .Content }}
- </div>
- </div>
- </div>
- </div>
-</section>
-
-{{ if .Site.Data.gallery.enable }}
-{{ with .Site.Data.gallery }}
-<section>
- <div class="container-fluid px-0">
- <div class="text-center">
- <h4 class="widget-title">My Gallery</h4>
- </div>
- <div class="row no-gutters">
- {{ range .gallery }}
- <div class="col-lg-2 col-md-3 col-sm-4 col-6">
- <a href="{{ .image | absURL}}" class="venobox" data-gall="gallery"><img class="img-fluid w-100"
- src="{{ .image | absURL}}" alt=""></a>
- </div>
- {{ end }}
- </div>
- </div>
-</section>
-{{ end }}
-{{ end }}
-
-{{ end }} \ No newline at end of file
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 45ec101..1abf51b 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,7 +1,7 @@
<div class="col-lg-4">
<!-- about -->
<div class="widget">
- {{ range first 1 (where .Site.RegularPages "Type" "about")}}
+ {{ with .Site.GetPage "/about" }}
<h4 class="widget-title">{{ .Title | markdownify }}</h4>
{{ if .Params.Image }}
<img src="{{ .Params.Image | absURL }}" alt=""