Fix disqus links

This commit is contained in:
Dave Gallant
2021-09-05 23:54:56 -04:00
parent 51189de047
commit 75f9797c91
7 changed files with 8 additions and 50 deletions

View File

@@ -1,37 +0,0 @@
baseurl = "/"
languageCode = "en-us"
title = "A minimal Hugo website"
theme = "hugo-xmin"
googleAnalytics = ""
disqusShortname = ""
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
preserveTaxonomyNames = true
footnotereturnlinkcontents = "↩"
[permalinks]
post = "/post/:year/:month/:day/:slug/"
note = "/note/:year/:month/:day/:slug/"
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
name = "Categories"
url = "/categories/"
weight = 3
[[menu.main]]
name = "Tags"
url = "/tags/"
weight = 4
[[menu.main]]
name = "Subscribe"
url = "/index.xml"
[params]
description = "A website built through Hugo and blogdown."
footer = "© [Yihui Xie](https://yihui.name) 2017 -- 2018 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"

View File

@@ -10,7 +10,7 @@
{{ range (where .Data.Pages "Section" "!=" "") }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
<a href="{{ .URL }}">{{ .Title }}</a>
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>

View File

@@ -1 +1 @@
{{ if eq .Section "posts" }} {{ template "_internal/disqus.html" . }} {{ end }}
{{ if eq .Section "post" }} {{ template "_internal/disqus.html" . }} {{ end }}