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
parent01ce9124cb24c53cb08fc80440d6256069d117dc (diff)
modified about page
-rw-r--r--exampleSite/config.toml18
-rw-r--r--exampleSite/content/about/about.md20
-rw-r--r--layouts/about/single.html39
-rw-r--r--layouts/partials/sidebar.html2
4 files changed, 10 insertions, 69 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0b42593..411a71f 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -8,7 +8,7 @@ paginate = 6
disqusShortname = ""
[outputs]
- home = ["HTML", "AMP", "RSS", "JSON"]
+ home = ["HTML", "RSS", "JSON"]
############################# Plugins ##############################
[params.plugins]
@@ -46,34 +46,34 @@ disqusShortname = ""
# main menu
[[menu.main]]
name = "About"
- URL = "about/about"
- weight = 2
+ URL = "about"
+ weight = 1
[[menu.main]]
name = "Post"
URL = "blog"
- weight = 3
+ weight = 2
[[menu.main]]
name = "Contact"
URL = "contact"
- weight = 4
+ weight = 3
# footer menu
[[menu.footer]]
name = "About"
- URL = "about/about"
- weight = 2
+ URL = "about"
+ weight = 1
[[menu.footer]]
name = "Post"
URL = "blog"
- weight = 3
+ weight = 2
[[menu.footer]]
name = "Contact"
URL = "contact"
- weight = 4
+ weight = 3
#################### default parameters ################################
diff --git a/exampleSite/content/about/about.md b/exampleSite/content/about/about.md
deleted file mode 100644
index 4be6d7c..0000000
--- a/exampleSite/content/about/about.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: "About Me"
-date: 2019-10-29T13:49:23+06:00
-draft: false
-
-# image
-image: "images/author.jpg"
-
-# meta description
-description: "this is meta description"
-
-# type
-type : "about"
----
-
-Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
-
-consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
-
-nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd \ No newline at end of file
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=""