Преглед на файлове

Fix disqus comment not working on new configuration style (#451)

* Fix disqus comment not working on new configuration style

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

* Fix LOC badge

Signed-off-by: hossainemruz <hossainemruz@gmail.com>
Emruz Hossain преди 3 години
родител
ревизия
32837a0938
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      README.md
  2. 2 2
      layouts/partials/disqus.html

+ 1 - 1
README.md

@@ -3,7 +3,7 @@
 [![Netlify Status](https://api.netlify.com/api/v1/badges/b1b93b02-f278-440b-ae1b-304e9f4c4ab5/deploy-status)](https://app.netlify.com/sites/toha/deploys)
 [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fhugo-toha%2Ftoha%2Fbadge%3Fref%3Dmain&style=flat)](https://actions-badge.atrox.dev/hugo-toha/toha/goto?ref=main)
 ![Repository Size](https://img.shields.io/github/repo-size/hugo-toha/toha)
-![Lines of Codes](https://img.shields.io/tokei/lines/github/hugo-toha/toha)
+![Lines of Codes](https://img.shields.io/tokei/lines/github.com/hugo-toha/toha)
 ![Contributor](https://img.shields.io/github/contributors/hugo-toha/toha)
 ![Latest Release](https://img.shields.io/github/v/release/hugo-toha/toha?include_prereleases)
 ![Last Commit](https://img.shields.io/github/last-commit/hugo-toha/toha)

+ 2 - 2
layouts/partials/disqus.html

@@ -1,6 +1,6 @@
 {{ $disqusShortName := site.DisqusShortname }}
-{{ if site.Params.features.disqus.shortName }}
-  {{ $disqusShortName = site.Params.features.disqus.shortName }}
+{{ if site.Params.features.comment.disqus.shortName }}
+  {{ $disqusShortName = site.Params.features.comment.disqus.shortName }}
 {{ end }}
 
 <div id="disqus_thread"></div>