Comments (2)
No, not natively at least for now. It would need to be added as a config option similar to JINJA_GLOBALS
, JINJA_TESTS
, etc...
For now, you can do that with a simple plugin:
from pelican import signals
def add_jinja_policy(generator):
generator.env.policies['ext.i18n.trimmed'] = True
def register():
signals.generator_init.connect(add_jinja_policy)
from pelican.
Thanks for your answer, @avaris! I'm going to try this out. Closing the question for now.
from pelican.
Related Issues (20)
- Missing "getting started with Pelican on GitLab" HOT 4
- Internal URLs not parsed in summaries HOT 11
- Enhance Social widget documentation HOT 2
- pelican --print-settings should show all possible settings, including those unset by default HOT 3
- Pelican or Jinja problem? HOT 2
- Pelican Install Problem - Debian 11 HOT 4
- Adding keywords metadata to specific page HOT 5
- How to handle line length limit error? HOT 4
- Ampersands don't seem to be escaped in text in markdown HOT 5
- Anchor links in feeds are not absolute
- Option to disable the RichHandler log handler?
- how to use rst-directive such as "toctree" HOT 3
- Pelican orgmode format HOT 2
- Newest lxml breaks the building HOT 3
- Ability to show traceback of template errors HOT 2
- Windows test failure: `Unsupported locale setting` HOT 3
- XMPP: Post to PubSub HOT 6
- Cannot generate (markdown) content after Pelican upgrade/reinstall HOT 4
- How do I link to static content (e.g. image) from metadata and/or a template? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pelican.