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

Alexander Bilz
05.53.2022 2bbe5bd19682d225c09f2d19f93e301f9ea13737
refactor: comment section

2 files modified
1 files added
15 ■■■■ changed files
assets/scss/main.scss 1 ●●●● patch | view | raw | blame | history
assets/scss/partials/components/_comment.scss 6 ●●●●● patch | view | raw | blame | history
layouts/_default/single.html 8 ●●●● patch | view | raw | blame | history
assets/scss/main.scss
@@ -14,5 +14,6 @@
@import './partials/components/sidebar';
@import './partials/components/footer';
@import './partials/components/pagination';
@import './partials/components/comment';
@import './partials/vendors/mediumzoom';
@import './partials/vendors/contactform';
assets/scss/partials/components/_comment.scss
New file
@@ -0,0 +1,6 @@
.comment {
  margin: 30px;
  .utterances {
    max-width: unset;
  }
}
layouts/_default/single.html
@@ -77,28 +77,28 @@
    {{ if and (or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (ne .Page.Params.disableComments true) }}
      {{- if .Site.DisqusShortname -}}
        <div id="fb_comments_container">
        <div id="comment">
          <h2>{{ i18n "comments" }}</h2>
          {{ template "_internal/disqus.html" . }}
        </div>
      {{- end -}}
      {{- if .Site.Params.utterances.repo -}}
        <div id="fb_comments_container">
        <div id="comment">
          <h2>{{ i18n "comments" }}</h2>
          {{ partial "comments/utterances.html" . }}
        </div>
      {{- end -}}
      {{- if .Site.Params.CommentoURL -}}
        <div id="fb_comments_container">
        <div id="comment">
          <h2>{{ i18n "comments" }}</h2>
          {{ partial "comments/commento.html" . }}
        </div>
      {{- end -}}
      {{- if .Site.Params.gitalk.repo -}}
        <div id="fb_comments_container">
        <div id="comment">
          <h2>{{ i18n "comments" }}</h2>
          {{ partial "comments/gitalk.html" . }}
        </div>