diff options
author | Byeonggon Lee <gonny952@gmail.com> | 2018-11-29 14:38:59 +0300 |
---|---|---|
committer | Byeonggon Lee <gonny952@gmail.com> | 2018-11-29 14:38:59 +0300 |
commit | bf3b7622000667a57b561565ab993c2f92942f0d (patch) | |
tree | f99170746fc0cb452553959e692c74dbe9c9d8d5 | |
parent | bd6910358debf42486a21a99e4f0ddde5f234621 (diff) |
enable_disqus -> enableDisqus
-rw-r--r-- | README.md | 5 | ||||
l--------- | exampleSite/content/README.md | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 1 | ||||
-rw-r--r-- | layouts/_default/single.html | 4 |
4 files changed, 7 insertions, 4 deletions
@@ -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 -}} |