Skip to content

Commit

Permalink
Update comment system
Browse files Browse the repository at this point in the history
  • Loading branch information
Xzonn committed Oct 10, 2023
1 parent 4864f40 commit 6b709a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="para-heading">
<div class="container-md">
<div class="para-heading-text">{% if page.title %}
<h1><a href="https://github.com/{{ site.repository }}">{{ page.title }}</a></h1>{% endif %}
<h1><a href="{% if page.source %}{{ page.source }}{% else %}https://github.com/{{ site.repository }}{% endif %}">{{ page.title }}</a></h1>{% endif %}
</div>{% if page.screenshot_count and page.screenshot_count > 0 %}
<div id="para-carousel" class="para-carousel carousel carousel-dark slide" data-bs-ride="carousel">
<div class="carousel-indicators">{% for screenshot_index in (1..page.screenshot_count) %}
Expand Down Expand Up @@ -68,8 +68,7 @@ <h1><a href="https://github.com/{{ site.repository }}">{{ page.title }}</a></h1>
</div>
</div>{% endif %}{% unless jekyll.environment == "development" or page.no_comment %}
<div class="para-content-comment hidden-print">
<div id="lv-container" data-id="city" data-uid="MTAyMC80MTk5MS8xODUzOA=="></div>
<script src="https://cdn-city.livere.com/js/embed.dist.js" async="async"></script>
<script src="https://utteranc.es/client.js" repo="{{ site.repository }}" issue-term="title" label="comment" theme="github-light" crossorigin="anonymous" async></script>
</div>{% endunless %}
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions assets/css/_site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,9 @@
.para-carousel {
width: 60%;
}
}

/* comment */
.utterances {
max-width: 100%;
}
2 changes: 1 addition & 1 deletion assets/css/_variables_override.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $font-family-sans-serif-latin: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Not
$font-family-sans-serif-chinese: "Source Han Sans CN","Source Han Sans SC", "Source Han Sans", "Noto Sans CJK SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei";
$font-family-sans-serif: append(join($font-family-sans-serif-latin, $font-family-sans-serif-chinese), sans-serif);

$font-family-serif-latin: "Times New Roman";
$font-family-serif-latin: Georgia, "Times New Roman", Times;
$font-family-serif-chinese: "Source Han Serif CN", "Source Han Serif SC", "Source Han Serif", Simsun, serif;
$font-family-serif: append(join($font-family-serif-latin, $font-family-serif-chinese), sans-serif);

Expand Down

0 comments on commit 6b709a3

Please sign in to comment.