Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ paginate = 10
copyright = "© 2016 Copyright Text"
canonifyurls = true
googleAnalytics = "Your Tracking Id" # optional
muut = "Your Muut community name" # optional

# optional
[[menu.header]]
Expand Down Expand Up @@ -74,6 +75,7 @@ title = "my new post"
date = "2016-09-01"
tags = ["x", "y"]
categories = ["x", "y"]
comments = "true", "false" # optional
+++

content here
Expand Down
7 changes: 7 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ <h1>{{ .Title }}</h1>
{{ .Content }}
</div>
{{ if eq .Type "post" }}
{{ if .Site.Params.muut }}
{{ if not (eq .Params.comments false) }}
<br/>
<a class="muut" href="https://muut.com/i/{{ . }}/comments" type="dynamic">{{ .Title }}</a>
<script src="//cdn.muut.com/1/moot.min.js"></script>
{{ end }}
{{ end }}
<br/><br/>
<div class="pagination">
{{ if .Prev }}<a class="prev" href="{{ .Prev.Permalink }}">{{ .Prev.Title }}</a>{{ else }}<a></a>{{ end }}
Expand Down