mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
26.43.2021 4a2e76a2bc75d875a75b18f0c2c933202ce9ebe0
chore: ran prettier on gitalk

4 files modified
13 ■■■■■ changed files
README.md 1 ●●●● patch | view | raw | blame | history
assets/css/style.css 2 ●●● patch | view | raw | blame | history
layouts/_default/single.html 1 ●●●● patch | view | raw | blame | history
layouts/partials/comments/gitalk.html 9 ●●●●● patch | view | raw | blame | history
README.md
@@ -315,6 +315,7 @@
```
### Comments powered by Gitalk
No comment section is shown on the `single.html` unless a `repo` is specified in the `config.toml` file. If uncertain how parameter to configure, check out the official [documentation](https://github.com/gitalk/gitalk).
```toml
assets/css/style.css
@@ -348,7 +348,7 @@
.post .post-title h1 {
  text-transform: uppercase;
  font-size: 3.0em;
  font-size: 3em;
  letter-spacing: 1px;
  line-height: 1;
}
layouts/_default/single.html
@@ -90,6 +90,7 @@
      {{- end -}}
    {{ end }}
  </div>
layouts/partials/comments/gitalk.html
@@ -1,5 +1,5 @@
<div id="gitalk-container"></div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css" />
<script src="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<script>
  const gitalk = new Gitalk({
@@ -9,11 +9,12 @@
    owner: '{{ .Site.Params.Gitalk.owner }}',
    admin: ['{{ .Site.Params.Gitalk.admin }}'],
    id: location.pathname, // Ensure uniqueness and length less than 50
    distractionFreeMode: false // Facebook-like distraction free mode
    distractionFreeMode: false, // Facebook-like distraction free mode
  });
  (function() {
    if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
      document.getElementById('gitalk-container').innerHTML = 'Gitalk comments not available by default when the website is previewed locally.';
    if (['localhost', '127.0.0.1'].indexOf(window.location.hostname) != -1) {
      document.getElementById('gitalk-container').innerHTML =
        'Gitalk comments not available by default when the website is previewed locally.';
      return;
    }
    gitalk.render('gitalk-container');