Skip to content

Commit

Permalink
feat: Add disqus
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 1, 2020
1 parent 3178cbd commit 080c200
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions exampleSite/config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
baseURL: "https://example.com"
# theme: hugo-theme-iris

disqusShortname: hugothemeiris

# paginate: 3
canonifyURLs: true
enableRobotsTXT: true
Expand Down
6 changes: 4 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<section class="hero is-dark is-large">
<div class="columns">
<div class="column is-8 is-offset-2">
{{ partial "lang-button" . }}
{{ partial "edit-button" . }}
<section class="section">
{{ partial "lang-button" . }}
{{ partial "edit-button" . }}
</section>
{{ block "main" . }}{{ end }}
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{ define "main" }}
{{ partial "eyecatch" . }}
{{ partial "content" . }}
<section class="section">
{{ template "_internal/disqus.html" . }}
</section>
{{ end }}

0 comments on commit 080c200

Please sign in to comment.