meta in blog details
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2019-03-10 16:41:56 +01:00
parent 9c0d959181
commit a2eaa3f4b4
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
4 changed files with 17 additions and 8 deletions

View File

@ -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"`
}

View File

@ -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

View File

@ -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">

View File

@ -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 }}