liquid-utilities / feed-json Goto Github PK
View Code? Open in Web Editor NEWJSON feed from collection and FrontMatter data
Home Page: https://liquid-utilities.github.io/feed-json/
License: GNU Affero General Public License v3.0
JSON feed from collection and FrontMatter data
Home Page: https://liquid-utilities.github.io/feed-json/
License: GNU Affero General Public License v3.0
Feel free to tag this issue or other issues via something like...
git commit -F- <<'EOF'
:heavy_plus_sign: Adds `liquid-utilities/feed-json#1` submodule
EOF
... within comments for projects utilizing code from this repository, and GitHub should cross link things nicely.
According to JSON Feed -- Spec -- Extensions "items"
may contain custom objects, provided that the key name is prefixed by an underscore, eg...
{
"items": [
{
"_entry_name": {
"about": "http://example.com/json-feed-extensions/",
"something": "value"
}
}
]
}
Likely this feature should be added as FrontMatter configuration for feed.json
files, for example something like...
feed.json
(snip)
custom_entries:
- entry_name
When post.id
is undefined, the post.url
filtered through absolute_url
should be used. Branching via if
/else
functions as intended, however, for unknown reasons the absolute_url
Jekyll filter is failing to produce a full URL. Instead only the collection name and post slug survives.
This seems to be some kind of bug that is triggered when permalink
is defined/configured.
_config.yml
(snip)
url: 'https://liquid-utilities.github.io'
collections_dir: documentation
collections:
example-collection:
output: true
permalink: /:collection/:name/
_layout/test-absolute-url.html
{% assign collection__data = collection[page.collection_name] %}
{% for post in collection__data %}
URL: {{ post.url | absolute_url }}
{% endfor %}
documentation/_exapmple-collection/test-absolute-url.md
---
layout: post
title: Tests Absolute URL Filter
description: Example post that collection layout will fail to parse URL for
---
example-collection.html
---
layout: test-absolute-url
collection_name: example-collection
---
Build then navigate to example-collection URL similar to; https://<acount>.github.io/<project>/example-collection.html
Output will likely be presented similar to...
URL: /example-collection/test-absolute-url
Output should be presented similar to...
URL: https://<acount>.github.io/<project>/example-collection/test-absolute-url
... this is what feed-atom
and feed-rss2
layouts from liquid-utilities
achieve, and there doesn't appear to be any major differences in how post.url
is filtered by absolute_url
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.