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
14 changes: 10 additions & 4 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,19 +280,19 @@ justify-content: space-between;
content: "🏷 ";
}
.tags a{
border-bottom: 3px solid var(--maincolor);
border-bottom: 3px solid var(--maincolor);
}
.tags a:hover{
color:white;
background-color: var(--hovercolor);
background-color: var(--hovercolor);
}
svg{
max-height: 15px;
}
.soc:hover{
color: white;
}
.draft-label{
.draft-label{
color: var(--bordercl);
text-decoration: none;
padding: 2px 4px;
Expand Down Expand Up @@ -343,7 +343,7 @@ color:white
.highlight pre code[class*='language-json']::before{
content: 'json';
background: dodgerblue;
color: #000000
color: #000000
}
.highlight pre code[class*='language-python']::before,
.highlight pre code[class*='language-py']::before {
Expand Down Expand Up @@ -399,3 +399,9 @@ table td{
stroke-linejoin: round;
fill: none;
}

#tcomment {
margin-top: 2em;
padding-top: 2em;
border-top: 1px solid #eee;
}
15 changes: 15 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ <h1 class="title">{{ .Title }}</h1>
{{- if eq ($.Scratch.Get "isDisqus") true -}}
{{- partial "disqus.html" . -}}
{{- end -}}

<!-- Twikoo -->
{{ $pagePath := .File.Path }}
{{ $disableComments := .Site.Params.disableComments | default slice }}
{{ if not (in $disableComments $pagePath) }}
<div id="tcomment"></div>
<script src="https://cdn.jsdelivr.net/npm/twikoo@1.6.41/dist/twikoo.min.js"></script>
<script>
twikoo.init({
envId: '{{ .Site.Params.twikoo.envId }}',
el: '#tcomment',
})
</script>
{{ end }}

</article>
</main>
{{ end }}
6 changes: 6 additions & 0 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ homepage = "https://github.com/athul/archie"
tags = ["blog","simple","responsive","minimal","tags","personal","clean","shortcodes"]
features = ["blog", "Clean and minimal", "Responsive", "Syntax highlighting",]
min_version = "0.41"
disableComments = ["about.md"]

[author]
name = "Athul Cyriac Ajay"
homepage = "https://github.com/athul"

# Comments

[twikoo]
envId = "your-env-id"