Comments (10)
Hi.
What theme are you using?
from grav.
Hi, I use hydrogen theme with Gantry 5
from grav.
Are you using the default contentarray particle included with hydrogen or any other?
from grav.
I did not add anything myself, so I guess !
from grav.
Hi,
I have the following configuration in my blog.md file :
--- title: 'Les actualités' blog_url: actualites menu: Actualités body_classes: 'header-lite fullwidth blogstyling' bg_color: '#E85C5C' slug: actualites sitemap: changefreq: monthly content: items: '@self.children' order: by: date dir: desc limit: '15' pagination: '1' feed: description: 'Les actualités de la Fondation Geomanum' limit: 10 metadata: description: 'Suivre l''actualité de la Fondation Geomanum' pagination: '1' cache_enable: false child_type: default process: markdown: true twig: false robots: index ---
But the order parameter is not working and the limit / pagination neither ... any Clue ?
See online : https://geomanum.org/fr/actualites
Thanks for your support
This markdown code, is about your last image? The blog page is based in blog list template but your image refers to blog item.
from grav.
yes, actually, I use blog
I always edit manually files ... and doing it through the UI generates a big mess. I don't use blog-item neither particle, I use "blog". Forget my screenshot - sorry.
from grav.
I have tested on a local page based on Gantry and Hydrogen and my blog page works as it should, that is:
- In the blog with descending date order, the most recent pages would be the first to be displayed.
- In the blog with ascending order, it would be the opposite.
I can only think of clearing the cache or clearing the temporary files of your browser, because it seems to work fine.
This is my blog.md:
---
title: 'Blog Page'
blog_url: blog
sitemap:
changefreq: monthly
priority: 1.03
content:
items:
- '@self.children'
order:
by: date
dir: desc
limit: 5
pagination: true
show_date: true
leading: 0
columns: 2
url_taxonomy_filters: true
feed:
description: 'Sample Blog Description'
limit: 10
pagination: true
---
from grav.
It should behave as described but it does not.
Can you show me your date format ?
from grav.
It should behave as described but it does not.
Can you show me your date format ?
This is my date config in system.yaml:
dateformat:
default: null
short: 'jS M Y'
long: 'F jS \a\t g:ia'
By default Gantry uses {{ page.date|date(config.system.pages.dateformat.default) }}
in partials\blog_item.html.twig`.
There's something I don't understand yet. In Gantry the blog template does not exist, instead blog_list exists. Therefore, I don't understand how you have a blog.md
file instead of a blog_list.md
.
from grav.
I mean, the date format in your item.md files (in blog folder). This is mine :
date: 23-02-2024
publish_date: 23-02-2024
There's something I don't understand yet. In Gantry the blog template does not exist, instead blog_list exists. Therefore, I don't understand how you have a blog.md file instead of a blog_list.md.
I set it manually. But I've also tried to set it through gantry using blog_list / blog_item. Still I got the same error.
from grav.
Related Issues (20)
- Edit theme configuration from the admin panel. HOT 1
- Form plugin: Critical Bug - Form save: File with extension not allowed HOT 3
- Grav update from 1.7.43 to 1.7.44 failed HOT 11
- What is the setting that controls viewable page templates? HOT 1
- Ordering variables with NULL value
- Cannot save page after SVG upload HOT 2
- [add-resource] New Plugin HOT 1
- [add-resource] New Plugin HOT 1
- [Request] - add decoding="async" support like for loading="lazy" HOT 3
- Fatal error if opcache_compile_file is included in PHP disable_functions HOT 2
- [bug] home_url missing trailing / (slash) on home HOT 2
- Markdown Is Rendered Inside of Span Tags HOT 4
- [add-resource] New Theme: Oxygen
- [add-resource] New Skeleton: Oxygen HOT 1
- [feat] add Arbitrary Propertys to image tags HOT 2
- [add-resource] New Plugin String Replacer HOT 3
- [add-resource] New Plugin Amazon Affiliate Search Link HOT 3
- Request for attention to an already reported security issue on Grav CMS HOT 1
- `twig-first: true` in Module makes Markdown fail HOT 4
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 grav.