npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-tag-blog-card

v0.1.4

Published

Embed a blog card on your Hexo article.

Downloads

9

Readme

hexo-tag-blog-card

NPM NPM hexo

Embed a blog card on your Hexo article.

Features

  • OGP(Open Graph Protocol) based blog card
  • Supports favicon and site name
  • Supports Hatena blog card style
  • Supports style configuration

Installation

npm install hexo-tag-blog-card

Usage

{% blogCard <url> [target:<target>] [rel:<rel>] [hatena:<true/false>] %}

Example:

{% blogCard https://www.amazon.com/ target:_blank rel:nofollow %}

Explantion of attributes

  1. url - An URL for the link. Required.
  2. target attribute - if you need to open link with another window, you must set here "_blank".
  3. rel attribute - if you need to link with rel="nofollow", set here "nofollow".
  4. hatena - if you can use Hatena Blog Card, set "true" (default: use global settings(useHatena))

Target attribute and rel attribute can be abbreviated. But if only target attribute abbreviated, will not work correctly.

If you need to open same window and set rel="nofollow", please write down like below.

Options

className

You can provide top-level class name of this preview link HTML. (Default: blog-card)

descriptionLength

You can provide number of character in og-description. (Default: 140)

faviconAPI

You can provide a favicon API with variables($URL, $DOMAIN). (Default: http://favicon.hatena.ne.jp/?url=$URL)

useHatena

You can use Hatena Blog Card if you set true. (Default: false)

timeout

You can provide number of timeout(milliseconds). (Default: 4000)

You can use Hatena Blog Card if you set true. (Default: false)

Example

_config.yml:

blogCard:
  className: sample
  descriptionLength: 6
  faviconAPI: http://www.google.com/s2/favicons?domain=$DOMAIN

or

blogCard:
  className: sample
  useHatena: true

Style

You can customize the style.

Example:

View in CodePen

Thanks

This plugin refers to the following OSS resources:

  • https://github.com/minamo173/hexo-tag-link-preview
  • https://github.com/Gisonrg/hexo-github-card
  • https://github.com/shundroid/hexo-embed-hatena-blog-card

Thanks to them.

License

MIT