pelican-plugins / jinja-filters Goto Github PK
View Code? Open in Web Editor NEWJinja Filters is a plugin for Pelican, a static site generator written in Python.
License: MIT License
Jinja Filters is a plugin for Pelican, a static site generator written in Python.
License: MIT License
Further to #4 (Moving to pelican-plugins organization), look into hosting documentation within the core Pelican documentation. Or is the README here enough?
As the package name changed, release one more 1.x release pointing to the new location.
This filter would allow you to do a reverse lookup based on the slug of the page you are looking for:
# custom Jinja2 filter
def get_by_slug(objs, slug):
for obj in objs:
if obj.slug == slug:
return obj
JINJA_FILTERS = {
"get_by_slug": get_by_slug,
}
https://siongui.github.io/2017/01/08/pelican-get-single-page-or-article-by-slug-metadata-in-theme/
Further to #4 (moving to the pelican-plugins organization), move this project's tasks.py
file to mostly be contained in a separate repo, much like minchin.releaser
.
@MinchinWeb said:
Would it be possible to "transfer ownership" instead?
The advantage of this is that is moves everything (issues, PR history, forks), and not just the Git history.
To do it, you'd need to give me permission to create repositories under pelican-plugins.
Done! Once you accept the invitation and this repo has been transferred, I'll rename the repo such that it lives at pelican-plugins/jinja-filters
in order to maintain consistency with plugin naming conventions throughout the new organization. Looking forward to collaborating with you over at the new communal org! โจ
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.