Skip to content

Commit

Permalink
Update Comments Box
Browse files Browse the repository at this point in the history
  • Loading branch information
radito committed Apr 3, 2024
1 parent 89ab08f commit 2a7aa55
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
2 changes: 1 addition & 1 deletion assets/css/common/post-single.css
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
}

.post-footer {
margin-top: 56px;
margin-top: 20px;
}

.post-footer > * {
Expand Down
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ params:
disableThemeToggle: false

ShowReadingTime: true
ShowShareButtons: true
ShowShareButtons: false
ShowPostNavLinks: true
ShowBreadCrumbs: true
ShowCodeCopyButtons: false
Expand Down
38 changes: 24 additions & 14 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,38 @@ <h1 class="post-title">
{{- end }}

<footer class="post-footer">
<div id="comments" class="thin">
<script
src="https://utteranc.es/client.js"
repo="radito/radito.github.io"
issue-term="Blog Post - {{ .Page.Title }}"
theme="github-light"
crossorigin="anonymous"
async
></script>
</div>

{{- $tags := .Language.Params.Taxonomies.tag | default "tags" }}
<ul class="post-tags">
{{- range ($.GetTerms $tags) }}
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
{{- end }}
</ul>
{{- if (.Param "ShowPostNavLinks") }} {{- partial "post_nav_links.html" . }}
{{- end }} {{- if (and site.Params.ShowShareButtons (ne .Params.disableShare
true)) }} {{- partial "share_icons.html" . -}} {{- end }}

{{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }}
{{- partial "share_icons.html" . -}} {{- end }} {{- if (.Param
"ShowPostNavLinks") }} {{- partial "post_nav_links.html" . }} {{- end }}
</footer>

<div
id="comments"
class="thin"
style="
background-color: var(--code-bg);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0rem 1rem;
"
>
<script
src="https://utteranc.es/client.js"
repo="radito/radito.github.io"
issue-term="Blog Post - {{ .Page.Title }}"
theme="github-light"
crossorigin="anonymous"
async
></script>
</div>

{{- if (.Param "comments") }} {{- partial "comments.html" . }} {{- end }}
</article>

Expand Down

0 comments on commit 2a7aa55

Please sign in to comment.