Git Product home page Git Product logo

disqus-svelte's Introduction

Disqus-Svelte

This is a package of pre-made components used to intergrate Disqus services into your Svelte Applications.

1. Installation:

You can install using npm as such:

npm i -D disqus-svelte

2. Usage:

<script>
	import Comments from "disqus-svelte"; // You can use any alias.
</script>

<Comments identifier="my-blog-post-41" />
Available Props:
  • Required identifier : The unique identifier of the page. It will work specifying this prop, but default settings are not guaranteed to work.
  • Optional url : The complete URL of the page. Default: window.location.href.
  • Optional container : The class name of the Disqus Comments Thread container..

3. Comment Count:

Setup:
<!-- The Root App file (App.svelte) -->
<script>
	import { Count } from "disqus-svelte";
</script>

<Count shortname="your-disqus-site-shortname" />
Using Comment Count:
<!-- Append `#disqus_thread` to the `href` attribute in your links.
This will tell Disqus which links to look up and return the comment count. 

For example: -->
<a href="http://foo.com/bar.html#disqus_thread">Link</a>`.
Available Props:

Required shortname : The Shortname of your site provided by Disqus.

GitHub

disqus-svelte's People

Contributors

demonicious avatar ambrt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.