add utterances message

pull request #267
This commit is contained in:
zzossig 2020-06-10 12:09:24 +09:00
parent da88040751
commit 19551c536f
7 changed files with 16 additions and 4 deletions

View File

@ -330,6 +330,8 @@ commento = false
[utterances] # https://utteranc.es/
owner = "" # Your GitHub ID
repo = "" # The repo to store comments
message = "" # Optional
link = "" # Optional
[gitalk] # Gitalk is a comment system based on GitHub issues. see https://github.com/gitalk/gitalk
owner = "" # Your GitHub ID

View File

@ -325,6 +325,8 @@ commento = false
[utterances] # https://utteranc.es/
owner = "" # Your GitHub ID
repo = "" # The repo to store comments
message = "" # Optional
link = "" # Optional
[gitalk] # Gitalk is a comment system based on GitHub issues. see https://github.com/gitalk/gitalk
owner = "" # Your GitHub ID

View File

@ -0,0 +1,7 @@
.utterances {
&__message {
font-size: 0.95rem;
@include flexbox();
@include justify-content(center);
}
}

View File

@ -81,6 +81,7 @@ $viewport_size: {{ .Site.Params.viewportSize | default "normal" }};
@import 'components/tab';
@import 'components/button';
@import 'components/featuredImage';
@import 'components/comment';
@import 'pages/404';
@import 'pages/about';

View File

@ -29,8 +29,8 @@
</script>
<div id="comments-fallback" class="viaemail">
<div class="viaemail__no-comments-message">
Don't want to use the Utterance bot? Comments can be also placed
<a href="https://github.com/{{ .Site.Params.utterances.owner }}/{{ .Site.Params.utterances.repo }}/issues/{{ .Params.utterances_issue_id | default "" }}" target="_blank" rel="noreferrer">directly on GitHub</a>.
<div class="utterances__message">
{{ .Site.Params.utterances.message }}
<a href="https://github.com/{{ .Site.Params.utterances.owner }}/{{ .Site.Params.utterances.repo }}/issues/{{ .Params.utterances_issue_id | default "" }}" target="_blank" rel="noreferrer">&nbsp;{{ .Site.Params.utterances.link }}</a>
</div>
</div>