Comments (2)
Hi there, the default pagelist block template doesn't support filtering by date. However, you can write a new template for the pagelist block or modify the one you are using in order to add a conditional that compares the page date with the current datetime. The current datetime can be accessed using the @{ :now }
runtime variable. The conditional would look as follows:
<@ if @{date} >= @{:now} @>
@{title}
<@ end @>
You can find more info in the docs about how to use templates for blocks.
from automad.
Hey Marc,
works perfectly! Just copied a template in /packages/standard/templates/blocks/pagelist
and wrapped all after the foreach
in your conditional.
from automad.
Related Issues (20)
- [v2,feature request] Add multiple images to the gallery
- [v2,bug] When image is resized by the engine it is not respecting the orientation
- [v2,feature] Set maximum dimensions for the image, that is automatically applied on upload
- [v2,bug] In gallery view with row layout images are vertically cropped HOT 3
- [v2,bug] href values are being generated incorrectly, resulting in broken links HOT 3
- The try-it-with-docker example does not work on arm mac HOT 1
- Vulnerability Report HOT 3
- Docker/Longhorn/K8s: Project directory "/app" is not empty.
- automad/dist/blocks/main.bundle.css is not exists in release HOT 3
- Migration assistant for version 2 HOT 2
- Cache Issue
- Internationalization Issue
- Small Cosmetic Issue
- Automad v2 template selection problem. HOT 5
- [QUESTION] placement or removal of copyright footer HOT 2
- Internal corruption of phar error HOT 9
- Error in loading the image HOT 4
- Mail option for TLS/SSL? HOT 2
- [v2,feature request] Multiple independent galleries on the same page
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 automad.