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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2018-11-29 14:38:59 +0300
committerByeonggon Lee <gonny952@gmail.com>2018-11-29 14:38:59 +0300
commitbf3b7622000667a57b561565ab993c2f92942f0d (patch)
treef99170746fc0cb452553959e692c74dbe9c9d8d5
parentbd6910358debf42486a21a99e4f0ddde5f234621 (diff)
enable_disqus -> enableDisqus
-rw-r--r--README.md5
l---------exampleSite/content/README.md1
-rw-r--r--layouts/_default/baseof.html1
-rw-r--r--layouts/_default/single.html4
4 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index e0b497d..a178814 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,6 @@
-
+---
+enableDisqus: true
+---
# Hugo Apps Theme
[![GitHub stars](https://img.shields.io/github/stars/gonapps/hugo-apps-theme.svg?style=flat-square)](https://github.com/gonapps/hugo-apps-theme/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/gonapps/hugo-apps-theme.svg?style=flat-square)](https://github.com/gonapps/hugo-apps-theme/fork)
@@ -40,6 +42,7 @@ touch apps/myapp/app.css
- title(string): title for your page
- weight(integer): weight of your page, used for sorting
- full(boolean): whether your page is full page or not
+- enableDisqus(boolean): wheter your page uses disqus or not, even though this value is true you cannot enable disqus for full page
- img(string): logo image for your page
### config.toml
diff --git a/exampleSite/content/README.md b/exampleSite/content/README.md
new file mode 120000
index 0000000..fe84005
--- /dev/null
+++ b/exampleSite/content/README.md
@@ -0,0 +1 @@
+../../README.md \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 699568b..0fa6a53 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -24,7 +24,6 @@
{{ with .Site.Menus.main }}
{{ range $i, $e := sort . }}
<a class="apps-menu-item" href="{{ $e.URL }}">
-<!-- <h4 style="margin:0;{{ if $i }}padding-left:1rem;margin-left: 0.8rem; border-left: 0.2rem solid black{{ end }}">-->
<h4>
{{- $e.Name -}}
</h4>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 78241e4..484e731 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,8 +2,8 @@
<div class="apps-content">
{{- .Content -}}
{{- if not (eq .Site.DisqusShortname "") -}}
- {{- if isset .Params "enable_disqus" -}}
- {{- if .Params.enable_disqus -}}
+ {{- if isset .Params "enableDisqus" -}}
+ {{- if .Params.enableDisqus -}}
{{- template "_internal/disqus.html" . -}}
{{- end -}}
{{- else -}}