Skip to content

Commit

Permalink
Add settings to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shenoydotme committed Oct 12, 2016
1 parent 7f5082b commit e619bde
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ directory.
hugo new projects/index.md
````

### Page settings

These settings are at the page level.

- `showpagemeta`: `default=true`. This allows you to disable page meta information from being displayed. For example, this setting is disabled [here](https://shenoybr.github.io/hugo-goa-demo/about/) and enabled [here](https://shenoybr.github.io/hugo-goa-demo/coderag/).
- `showcomments`: `default=true`. Enables or disable comments. For example, this setting is disabled [here](https://shenoybr.github.io/hugo-goa-demo/blog/third/) and enabled [here](https://shenoybr.github.io/hugo-goa-demo/blog/first/).

## Configuration

The provided [config.toml](https://github.com/shenoybr/hugo-goa/blob/master/exampleSite/config.toml) describes all options and features that are supported. Configure it your way!
Expand Down
1 change: 1 addition & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ tags = []
categories = []

showpagemeta = true
showcomments = true
+++
4 changes: 4 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

{{ partial "content.html" . }}

{{ if ne .Params.showcomments false }}

{{ template "_internal/disqus.html" . }}

{{ end }}

{{ partial "menu.html" . }}

{{ partial "footer.html" . }}
Expand Down

0 comments on commit e619bde

Please sign in to comment.