~magentix/stapy-theme-dusk

db45be132a40a884abf3e9a664695ad5bf07094a — magentix 2 years ago 39dd413
Use of new 1.7 features
M source/json/about.html.json => source/json/about.html.json +2 -1
@@ 1,5 1,6 @@
{
  "meta_title": "Dusk - About",
  "meta_description": "A simple and minimal theme for StaPy",
  "content": "page/about.html"
  "content": "page/about.html",
  "tags": ["sitemap"]
}
\ No newline at end of file

M source/json/articles.html.json => source/json/articles.html.json +2 -1
@@ 2,5 2,6 @@
  "meta_title": "Dusk - Articles",
  "meta_description": "A simple and minimal theme for StaPy",
  "content": "page/articles.html",
  "article": "template/block/article.html"
  "article": "template/block/article.html",
  "tags": ["sitemap"]
}
\ No newline at end of file

M source/json/blog/article-1.html.json => source/json/blog/article-1.html.json +2 -1
@@ 5,5 5,6 @@
  "date": "2021-04-06",
  "author": "Magentix",
  "intro": "Quo magnam mollitia ea odit amet. Eos iste itaque sed consequatur dolor ut saepe omnis sed maiores excepturi in voluptatem nihil.",
  "content": "page/blog/article.html"
  "content": "page/blog/article.html",
  "tags": ["post", "sitemap"]
}
\ No newline at end of file

M source/json/blog/article-2.html.json => source/json/blog/article-2.html.json +2 -1
@@ 5,5 5,6 @@
  "date": "2021-04-02",
  "author": "Magentix",
  "intro": "Dolore qui aliquam eius aut voluptatem dolor. Eos molestias molestiae et quibusdam amet quo pariatur deleniti aut nostrum iure eos explicabo voluptate.",
  "content": "page/blog/article.html"
  "content": "page/blog/article.html",
  "tags": ["post", "sitemap"]
}
\ No newline at end of file

M source/json/blog/article-3.html.json => source/json/blog/article-3.html.json +2 -1
@@ 5,5 5,6 @@
  "date": "2021-03-26",
  "author": "Magentix",
  "intro": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.",
  "content": "page/blog/article.html"
  "content": "page/blog/article.html",
  "tags": ["post", "sitemap"]
}
\ No newline at end of file

A source/json/default/common.json => source/json/default/common.json +4 -0
@@ 0,0 1,4 @@
{
  "url.local": "http://localhost:1985/",
  "url.prod": "/"
}
\ No newline at end of file

M source/json/default/html.json => source/json/default/html.json +1 -3
@@ 3,7 3,5 @@
  "template": "template/default.html",
  "head": "template/block/head.html",
  "header": "template/block/header.html",
  "footer": "template/block/footer.html",
  "url.local": "http://localhost:1985/",
  "url.prod": "/"
  "footer": "template/block/footer.html"
}
\ No newline at end of file

M source/json/index.html.json => source/json/index.html.json +2 -1
@@ 1,5 1,6 @@
{
  "meta_title": "Dusk - Home",
  "meta_description": "A simple and minimal theme for StaPy",
  "content": "page/index.html"
  "content": "page/index.html",
  "tags": ["sitemap"]
}
\ No newline at end of file

A source/json/robots.txt.json => source/json/robots.txt.json +4 -0
@@ 0,0 1,4 @@
{
  "template": "template/robots.txt",
  "directive": "Allow: /"
}
\ No newline at end of file

A source/json/sitemap.xml.json => source/json/sitemap.xml.json +4 -0
@@ 0,0 1,4 @@
{
  "template": "template/sitemap.xml",
  "page_url": "template/sitemap/url.xml"
}
\ No newline at end of file

M source/page/articles.html => source/page/articles.html +1 -5
@@ 1,7 1,3 @@
<h2>Articles</h2>

{% article + blog/article-1.html %}

{% article + blog/article-2.html %}

{% article + blog/article-3.html %}
\ No newline at end of file
{% article ~ tags:post date:desc 1:100 %}
\ No newline at end of file

A source/template/robots.txt => source/template/robots.txt +4 -0
@@ 0,0 1,4 @@
Sitemap: {{ url }}sitemap.xml

User-agent: *
{{ directive }}
\ No newline at end of file

A source/template/sitemap.xml => source/template/sitemap.xml +4 -0
@@ 0,0 1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{% page_url ~ tags:sitemap date:desc 1:10000 %}
</urlset>
\ No newline at end of file

A source/template/sitemap/url.xml => source/template/sitemap/url.xml +1 -0
@@ 0,0 1,1 @@
<url><loc>{{ url }}{{ $_path }}</loc></url>
\ No newline at end of file