1.4.0 • Published 7 months ago

hashnode-postcard v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Hashnode Postcard

Hashnode blogpost cards for your website using a single HTML element. import it anywhere you want.

hashnode-postcard demo

install

npm i hashnode-postcard

or

yarn add hashnode-postcard

usage

  • using import statement:
<hashnode-postcard data-username="ayushcodes"></hashnode-postcard>

<script type="module">
  import "hashnode-postcard";
</script>
  • using script tag:
<hashnode-postcard data-username="ayushcodes"></hashnode-postcard>

<script
  src="https://unpkg.com/hashnode-postcard@latest/dist/hashnode-postcard.umd.js"
  type="module"
></script>

demo

api

  • <hashnode-postcard data-username="YOUR_HASHNODE_USERNAME"></hashnode-postcard>

customize

Following data attributes are available to customize the postcard.

data attributedescriptionexamplestype
data-usernameyour hashnode usernameayushcodesrequired
data-widthwidth of the postcard600pxoptional
data-heightheight of the blogposts wrapper500pxoptional
data-cover-imageto show the post cover imagestrueoptional (default is true)
data-followersto show the number of followersfalseoptional (default is true)
data-briefto show the brief description of blogpoststrueoptional (default is true)
data-themeto change the theme of the interfacedefaultoptional (default is default)

available themes

  • default
  • devto
  • hashnode-light-mode
  • dracula
  • nord-light
  • nord-dark
1.2.0

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago

1.4.0

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

0.1.1

3 years ago

0.1.0

3 years ago