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
4 changed files with 17 additions and 8 deletions

View File

@@ -11,12 +11,13 @@ type CollectionConfig struct {
Name *string `yaml:"Name"` Name *string `yaml:"Name"`
EntriesJSON *string `yaml:"EntriesJSON"` EntriesJSON *string `yaml:"EntriesJSON"`
NavTemplate *struct { NavTemplate *struct {
GoTo string `yaml:"GoTo"` GoTo string `yaml:"GoTo"`
Navname string `yaml:"Navname"` Navname string `yaml:"Navname"`
Body string `yaml:"Body"` Body string `yaml:"Body"`
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"`
} }

View File

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

View File

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

View File

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