This commit is contained in:
parent
9c0d959181
commit
a2eaa3f4b4
@ -11,12 +11,13 @@ type CollectionConfig struct {
|
||||
Name *string `yaml:"Name"`
|
||||
EntriesJSON *string `yaml:"EntriesJSON"`
|
||||
NavTemplate *struct {
|
||||
GoTo string `yaml:"GoTo"`
|
||||
Navname string `yaml:"Navname"`
|
||||
Body string `yaml:"Body"`
|
||||
DataKey string `yaml:"DataKey"`
|
||||
Hidden bool `yaml:"Hidden"`
|
||||
Template string `yaml:"Template"`
|
||||
GoTo string `yaml:"GoTo"`
|
||||
Navname string `yaml:"Navname"`
|
||||
Body string `yaml:"Body"`
|
||||
DataKey string `yaml:"DataKey"`
|
||||
Hidden bool `yaml:"Hidden"`
|
||||
Template string `yaml:"Template"`
|
||||
Recursive bool `yaml:"Recursive"`
|
||||
} `yaml:"NavTemplate"`
|
||||
}
|
||||
|
||||
|
@ -3,7 +3,7 @@ This:
|
||||
- Name: blog1st
|
||||
EntriesJSON: '{{ fnRequest("https://mark2web.basiscms.de/api/collections/get/mark2webBlog?token=89ff216524093123bf7a0a10f7b273&filter[published]=true&sort[date]=-1&skip=0&limit=1").entries|json }}'
|
||||
NavTemplate:
|
||||
GoTo: '{{ date|add:"-"|add:title|slugify }}'
|
||||
GoTo: '{{ date }}-{{ title }}'
|
||||
Navname: '{{ title }}'
|
||||
Body: '{{ body }}'
|
||||
Template: base_blog_details.html
|
||||
@ -13,7 +13,7 @@ This:
|
||||
- Name: blog1skip
|
||||
EntriesJSON: '{{ fnRequest("https://mark2web.basiscms.de/api/collections/get/mark2webBlog?token=89ff216524093123bf7a0a10f7b273&filter[published]=true&sort[date]=-1&skip=1&limit=100").entries|json }}'
|
||||
NavTemplate:
|
||||
GoTo: '{{ date|add:"-"|add:title|slugify }}'
|
||||
GoTo: '{{ date }}-{{ title }}'
|
||||
Navname: '{{ title }}'
|
||||
Body: '{{ body }}'
|
||||
Template: base_blog_details.html
|
||||
|
@ -9,9 +9,11 @@
|
||||
|
||||
|
||||
<!-- Meta -->
|
||||
{% block meta %}
|
||||
<title>{{ Meta.Title }}</title>
|
||||
<meta name="description" content="{{ Meta.Description }}" />
|
||||
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
||||
{% endblock meta %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="project-files/css/preloader.css">
|
||||
|
||||
|
@ -1,5 +1,11 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block meta %}
|
||||
<title>{{ Data.details.date|datum }} {{ Data.details.title }}</title>
|
||||
<meta name="description" content="{{ Data.details.teaser }}" />
|
||||
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
||||
{% endblock meta %}
|
||||
|
||||
{% block part0 %}
|
||||
<h1>
|
||||
{{ Data.details.title }}
|
||||
|
Loading…
Reference in New Issue
Block a user