This commit is contained in:
@@ -17,6 +17,7 @@ type CollectionConfig struct {
|
|||||||
DataKey string `yaml:"DataKey"`
|
DataKey string `yaml:"DataKey"`
|
||||||
Hidden bool `yaml:"Hidden"`
|
Hidden bool `yaml:"Hidden"`
|
||||||
Template string `yaml:"Template"`
|
Template string `yaml:"Template"`
|
||||||
|
Recursive bool `yaml:"Recursive"`
|
||||||
} `yaml:"NavTemplate"`
|
} `yaml:"NavTemplate"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ This:
|
|||||||
- Name: blog1st
|
- 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 }}'
|
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:
|
NavTemplate:
|
||||||
GoTo: '{{ date|add:"-"|add:title|slugify }}'
|
GoTo: '{{ date }}-{{ title }}'
|
||||||
Navname: '{{ title }}'
|
Navname: '{{ title }}'
|
||||||
Body: '{{ body }}'
|
Body: '{{ body }}'
|
||||||
Template: base_blog_details.html
|
Template: base_blog_details.html
|
||||||
@@ -13,7 +13,7 @@ This:
|
|||||||
- Name: blog1skip
|
- 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 }}'
|
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:
|
NavTemplate:
|
||||||
GoTo: '{{ date|add:"-"|add:title|slugify }}'
|
GoTo: '{{ date }}-{{ title }}'
|
||||||
Navname: '{{ title }}'
|
Navname: '{{ title }}'
|
||||||
Body: '{{ body }}'
|
Body: '{{ body }}'
|
||||||
Template: base_blog_details.html
|
Template: base_blog_details.html
|
||||||
|
|||||||
@@ -9,9 +9,11 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Meta -->
|
<!-- Meta -->
|
||||||
|
{% block meta %}
|
||||||
<title>{{ Meta.Title }}</title>
|
<title>{{ Meta.Title }}</title>
|
||||||
<meta name="description" content="{{ Meta.Description }}" />
|
<meta name="description" content="{{ Meta.Description }}" />
|
||||||
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
<meta name="keywords" content="{{ Meta.Keywords }}" />
|
||||||
|
{% endblock meta %}
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="project-files/css/preloader.css">
|
<link rel="stylesheet" type="text/css" href="project-files/css/preloader.css">
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
{% extends 'base.html' %}
|
{% 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 %}
|
{% block part0 %}
|
||||||
<h1>
|
<h1>
|
||||||
{{ Data.details.title }}
|
{{ Data.details.title }}
|
||||||
|
|||||||
Reference in New Issue
Block a user