New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eleventy-plugin-backlinks

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eleventy-plugin-backlinks

Collect and display backlinks from your notes

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by33.33%
Maintainers
0
Weekly downloads
 
Created
Source

Collect and display backlinks from your notes.

NPM version badge

Note: I'm not building this project for myself, so y'all gotta tell me what you think. Issues are the way to go here.

Usage

Add the plugin to your eleventy config, like so:

const eleventyBacklinks = require("eleventy-plugin-backlinks");

module.exports = function (eleventyConfig) {
	eleventyConfig.addPlugin(eleventyBacklinks, {
		folder: "/notes", // The folder with your notes
	});
};

For every page in the given folder, you get a backlinks variable. By default, it contains an array, with the title (if set) and the url of each page.

Options

  • folder (string) - The name of a folder which contains your notes. The default folder-name is "notes".
  • getData (function) - Optionally, control which data will be passed to backlinks. The function receives a collection item, and is called for every relevant page.

Contributing

All input is welcome; feel free to open an issue. Please remember to be a mensch. If you want to program, you can browse the issue list.

All source-code is provided under the terms of the MIT license. Copyright 2024 Binyamin Aron Green.

Keywords

FAQs

Package last updated on 09 Dec 2024

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