Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jekyll-generate-tags

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jekyll-generate-tags

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

jekyll-generate-tags

Classify Jekyll post content automatically using NLP (huggingface.co/facebook/bart-large-mnli) based on a set of site-wide labels.

Installation

Prerequisites

  • Python

Install

Add this line to your project's Gemfile:

gem 'jekyll-generate-tags'

Add the following to your site's _config.yml:

plugins:
  - jekyll-generate-tags

Usage

Use the following tag to reference a comma-delimited string of tag matches (in order of confidence).

{{ page.generatedtags }}

Note: When building the site for the first time, it may take a bit to run through existing posts to generate each set of tags.

Custom Labels

Optional: Add the following property to the _config.yml file to include custom labels for selection as tags.

tag_options: software engineering,coding,programming languages

These can also be updated in the tag_options.txt file within the root of the project or updated inside the gem itself.

Confidence

By default, labels are only selected as tags if they have a greater than .50 confidence value.

Optional: Add the following property to the _config.yml file to alter the confidence value according to desired preference.

tag_confidence: .30

Caching

Includes a caching-mechanism that allows for faster re-builds when the content, labels, or confidence values don't change. The outputted tags are stored in the .tags-cache folder. Depending on how your site builds are handled, it probably makes sense to check this folder in to eliminate the need to reprocess each post at time of deployment.

Clear Cache

To clear the cache entirely, simply delete the .tags-cache folder.

FAQs

Package last updated on 03 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc