
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
This plugin finds the actual posts on front matter fields by UUID, for comfortable access on Liquid templates.
From v0.4.0 you don't need UUIDs and can use any field name you want and this plugin will link string or integer values.
We use them for translations and manually provided related posts.
Add this line to your application's Gemfile:
gem 'jekyll-linked-posts'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-linked-posts
Add the plugin to your _config.yml
:
plugins:
- jekyll-linked-posts
Every post should have an uuid
field in its front matter (Jekyll
calls them "variables", they
can also be "keys"). This field can contain any value, but it must be
unique to the post. We use random UUIDs.
---
layout: post
title: An article
uuid: 0f892c91-febd-4d76-b9fb-df1e4a47dd38
---
To link it from another post, use this value in a field. It can also be an array or a hash of UUIDs.
---
layout: post
title: Another article
uuid: 8fee66a3-0564-4635-96a6-6881a3e3dbb5
linked: 0f892c91-febd-4d76-b9fb-df1e4a47dd38
linked_array:
- 0f892c91-febd-4d76-b9fb-df1e4a47dd38
linked_hash:
key: 0f892c91-febd-4d76-b9fb-df1e4a47dd38
---
Then, you can call the field in your template as it were a regular document.
<h1>{{ page.title }}</h1>
<p class="linked">{{ page.linked.title }}</p>
<ul>
{% for linked in page.linked_array %}
<li>{{ linked.title }}</li>
{% endfor %}
</ul>
To let the plugin know in which fields you want to look for linked
posts, add them as an array to your _config.yml
:
linked_fields:
- linked
- linked_array
- linked_hash
By default, this array contains the values 'lang' and 'related'. These values are replaced by your configuration, so if you want to use them with other fields, re-add them to the configuration.
If you're using the Sutty CMS, this plugin
supports Sutty's schemas, so it can link posts automatically. No need
for linked_fields
in _config.yml
.
It also works between collections!
If you're linking articles by the same field, you can create a breadcrumb like this:
{%- assign breadcrumbs = page | breadcrumbs: 'previous' -%}
<nav aria-label="Breadcrumbs">
<ol class="breadcrumb">
{% for crumb in breadcrumbs %}
{% if forloop.last %}
<li class="breadcrumb-item active" aria-current="page">{{ crumb.title }}</li>
{% else %}
<li class="breadcrumb-item">
<a href="{{ crumb.url }}">{{ crumb.title }}</a>
</li>
{% endif %}
{% endfor %}
</ol>
</nav>
If you don't want to use UUIDs, you can configure this plugin to link by any field name as long as their values are strings or integers.
Add to your _config.yml
:
indexed_field: title
Bug reports and pull requests are welcome on 0xacab.org at https://0xacab.org/sutty/jekyll/jekyll-linked-posts. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Sutty code of conduct.
If you like our plugins, please consider donating!
The gem is available as free software under the terms of the GPL3 License.
Everyone interacting in the jekyll-linked-posts project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that jekyll-linked-posts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.