Comments (5)
(did you export the filter?)
https://github.com/madrilene/lenesaile.com/blob/main/config/filters/index.js#L218
from eleventy-excellent.
(did you export the filter?) https://github.com/madrilene/lenesaile.com/blob/main/config/filters/index.js#L218
That's it, I think. Thank you very much
from eleventy-excellent.
Hey, yeah, that's not a problem. You can see on my website (which is structured very similar) how to solve this. dayjs comes with locales, you can call them in the filter configs.
https://github.com/madrilene/lenesaile.com/blob/main/config/filters/index.js#L3
https://github.com/madrilene/lenesaile.com/blob/main/config/filters/index.js#L103
You then import the new filter into your config file
https://github.com/madrilene/lenesaile.com/blob/main/.eleventy.js#L28
https://github.com/madrilene/lenesaile.com/blob/main/.eleventy.js#L114
You can then apply the filter directly here (if you only have one language):
https://github.com/madrilene/eleventy-excellent/blob/main/src/_includes/partials/date.njk
<time datetime="{{ definedDate | toIsoString }}">
{{
definedDate | formatDateDE('D. MMMM YYYY')
}}
</time>
My site is multilingual, but for this to work you have to set some more things.
https://www.lenesaile.com/en/blog/internationalization-with-eleventy-20-and-netlify/
from eleventy-excellent.
Hey, yeah, that's not a problem. You can see on my website (which is structured very similar) how to solve this. dayjs comes with locales, you can call them in the filter configs.
https://github.com/madrilene/lenesaile.com/blob/main/config/filters/index.js#L3
https://github.com/madrilene/lenesaile.com/blob/main/config/filters/index.js#L103You then import the new filter into your config file
https://github.com/madrilene/lenesaile.com/blob/main/.eleventy.js#L28
https://github.com/madrilene/lenesaile.com/blob/main/.eleventy.js#L114You can then apply the filter directly here (if you only have one language):
https://github.com/madrilene/eleventy-excellent/blob/main/src/_includes/partials/date.njk<time datetime="{{ definedDate | toIsoString }}"> {{ definedDate | formatDateDE('D. MMMM YYYY') }} </time>
My site is multilingual, but for this to work you have to set some more things.
https://www.lenesaile.com/en/blog/internationalization-with-eleventy-20-and-netlify/
Hello, thanks for your help. The first two steps are working, but when I change the date.njk the build fails with a template render error: (./src/_includes/partial/date.njk)
from eleventy-excellent.
I'd need to see your code!
from eleventy-excellent.
Related Issues (20)
- Suggestion: Add github public template button HOT 1
- Draft Posts HOT 5
- Remove Minification HOT 2
- Fantastic (EXCELLENT!) template! Looking for TAGS support for post HOT 3
- How to link to full size image? HOT 4
- sitemap.xml generated urls from src/assets css and js HOT 1
- Tailwind classes in HTML markup don't work HOT 2
- Plugin Warning HOT 3
- imagePlaceholder fallback doesn't work HOT 1
- OG images don't work with webfonts HOT 2
- Broken OG Images HOT 1
- Middle-click usability issue with clickable cards HOT 6
- Post Tags on Blog Cards HOT 2
- Dark theme custom colors don't render. HOT 2
- How do you update a template? HOT 2
- Partial -> Meta-info.njk (Description and Personal.Platforms Corrections) HOT 1
- adding a license? HOT 2
- Incorrect URL on the about page HOT 2
- On the issue of dependencies vs devDependencies HOT 1
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 eleventy-excellent.