mark2web/website/content/de/01_Navigation/04_Blog/config.yml

24 lines
1.1 KiB
YAML
Raw Normal View History

2019-03-21 14:55:40 +01:00
#This:
2019-03-10 13:26:26 +01:00
Collections:
- Name: blog1st
2019-03-21 14:55:40 +01:00
URL: 'https://mark2web.basiscms.de/api/collections/get/mark2webBlog?token={{ Data.token }}&filter[published]=true&sort[date]=-1&skip=0&limit=1{% if Data.details._id %}&filter[link._id]={{ Data.details._id }}{% else %}&filter[link][$exists]=0{% endif %}'
2019-03-10 16:02:53 +01:00
NavTemplate:
EntriesAttribute: entries
2019-03-10 16:41:56 +01:00
GoTo: '{{ date }}-{{ title }}'
2019-03-10 16:02:53 +01:00
Navname: '{{ title }}'
2019-03-12 14:56:00 +01:00
Body: '{{ body|safe }}'
2019-03-10 16:02:53 +01:00
Template: base_blog_details.html
DataKey: details
Hidden: true # hide from nav, but use this feature for rendering detail sites
2019-03-10 13:26:26 +01:00
- Name: blog1skip
2019-03-21 14:55:40 +01:00
URL: 'https://mark2web.basiscms.de/api/collections/get/mark2webBlog?token={{ Data.token }}&filter[published]=true&sort[date]=-1&skip=1&limit=100{% if Data.details._id %}&filter[link._id]={{ Data.details._id }}{% else %}&filter[link][$exists]=0{% endif %}'
2019-03-10 16:02:53 +01:00
NavTemplate:
EntriesAttribute: entries
2019-03-10 16:41:56 +01:00
GoTo: '{{ date }}-{{ title }}'
2019-03-10 16:02:53 +01:00
Navname: '{{ title }}'
2019-03-12 14:56:00 +01:00
Body: '{{ body|safe }}'
2019-03-10 16:02:53 +01:00
Template: base_blog_details.html
DataKey: details
Hidden: true