mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2025-07-04 11:07:32 -05:00
Use RelPermalink
This commit is contained in:
3
assets/css/commento.css
Normal file
3
assets/css/commento.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.commento-root * {
|
||||||
|
color: var(--text-normal);
|
||||||
|
}
|
@ -4,17 +4,20 @@
|
|||||||
</small>
|
</small>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
{{ $url := .Permalink }}
|
{{ $url := .RelPermalink }}
|
||||||
|
|
||||||
{{ if .IsTranslated }}
|
{{ if .IsTranslated }}
|
||||||
{{ with index .AllTranslations 0 }}
|
{{ with index .AllTranslations 0 }}
|
||||||
{{ $url = .Permalink }}
|
{{ $url = .RelPermalink }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ $css := resources.Get "css/commento.css" }}
|
||||||
|
|
||||||
<script defer
|
<script defer
|
||||||
src="https://commento.bbaovanc.com/js/commento.js"
|
src="https://commento.bbaovanc.com/js/commento.js"
|
||||||
data-page-id="{{ $url }}"
|
data-page-id="{{ $url }}"
|
||||||
|
data-css-override="{{ $css.Permalink }}"
|
||||||
></script>
|
></script>
|
||||||
|
|
||||||
<div id="commento"></div>
|
<div id="commento"></div>
|
||||||
|
Reference in New Issue
Block a user