May 14, 2025

Ghost CMS #1 댓글 시스템- Disqus

Ghost CMS #1  댓글 시스템- Disqus

기본적으로 Ghost CMS는 Ghost CMS에 로그인을 해야 댓글을 달 수 있습니다.
셀프 호스팅을 해도 내 Ghost에 가입을 해야 댓글을 달 수 있게 해놨어요.

근데 제 블로그에 누가 많이 들어올 것 같지도 않은데 가입은 더 안 할것 같아서 로그인이 필요 없는 댓글 서비스를 하려고 찾고 있었습니다.

Disqus

Ghost CMS에서 권장하는 댓글 서비스는 Disqus 입니다. 무료 서비스이기도 하고 사용하기도 편해요. 그냥 들어가서 가입을 진행하면 됩니다.

  1. 사이트 접속 후 Get started
#1 in audience engagement and community growth | Disqus
More publishers trust us to engage, grow, and understand their audiences than any other. Build your on-site community with Disqus.
  1. 밑으로 내리면 Free Version of Disqus Polls 에서 Get Started
  2. 회원가입을 진행하고 Site 생성을 진행합니다.
    1. Website Name은 내 블로그 URL이 아니라 disqus에서 사용할 이름입니다.
      원하시는 이름으로 생성하시면 됩니다. (shortname)
  3. 생성된 site -> settings에 접속합니다.
  4. 가장 위에 Installation을 선택하고 Ghost 를 클릭합니다.
  5. 절차대로 따라하시면 됩니다.
    1. Universal Embed Code를 클릭하여 첫번째 코드를 복사합니다.
    2. Ghost - contents - themes - (현재 사용중인 테마) - post.hbs/page.hbs
    3. {{post}}{{/post}} 사이 제일 아래쪽에 코드를 붙여 넣습니다.
    ...

    <div id="disqus_thread"></div>
    <script>
        var disqus_config = function () {
        this.page.url = "{{url absolute="true"}}";
        this.page.identifier = "ghost-{{comment_id}}";
        };
        (function() { // DON'T EDIT BELOW THIS LINE
        var d = document, s = d.createElement('script');
        s.src = 'https://SHORTNAME.disqus.com/embed.js';    # site shortname
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>

</section>
{{/post}}
  1. Ghost 서버를 재시작합니다.

장점

  1. 내 리소스를 사용하지 않고, 무료입니다.
  2. 구성이 쉽습니다. 디자인이 무난합니다.

단점

  1. 이메일을 무조건 작성해야 합니다.
    1. 이메일을 검증하지 않게 할 수 있지만, 작성은 필요합니다.
  2. 디자인을 변경할 수 없습니다. 테마를 변경할 수도 없습니다.

Comments