amp_base_theme 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32cd254b15ddf4459d20a053e38910cb1a6b12a27e414c33e804fe35610bb757
4
- data.tar.gz: 3178182a30a608f59201a0fe599a5077f6315d0c67e0213bb80246ef77615019
3
+ metadata.gz: 664c79d2ee3d5e93a1c02b0ecd7b7903e137e5817f6d7d49a28d43a955b2359e
4
+ data.tar.gz: 577d2865fa50d68a893693a1df784e0cf478945925833c4ccdd3393b3fb2d481
5
5
  SHA512:
6
- metadata.gz: 7a5c1393b7ff6beca60aa748273c3e1fe5fafb224a12c5f8b653a4eb0290b24d8230456e8c5b2b9a2d0b54b81d3da2fe6ebe5ef35fc86bd4fc57dd04966c404f
7
- data.tar.gz: 4687ed815f1db558dc992f69a9327374ab7ac482fdfe138cece7dccbbf6eb4e5288c6b30609c75c8488ce5f9d6161912192938d9a34c417714205ba42bac7a8e
6
+ metadata.gz: af73f7c2837ff595422d8770ee76c5453796d1e27f1ed4066e983ee0cc370d30b34b52fca9d3cb508211446c513ae63194d3f6c62f1eee9e84044aed6f6187c9
7
+ data.tar.gz: a3e7b1b67c32f6fabe695afba7bbd10ba4d25a712056f4a0277a57635d6a12edf50446eeaee26a61da7b76525925cb6dd7e0847dfec4b6ab3389e0035aa210ef
@@ -0,0 +1,8 @@
1
+ ---
2
+ permalink: "_headers"
3
+ ---
4
+
5
+ /*
6
+ access-control-allow-credentials: true
7
+ access-control-allow-headers: Access-Control-Allow-Origin, Access-Control-Allow-Credentials
8
+ access-control-allow-origin: *
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/feed.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <rss version="2.0"
8
+ xmlns:atom="http://www.w3.org/2005/Atom">
9
+ <channel>
10
+ <title>{{ site.title | xml_escape }}</title>
11
+ <description>{{ site.description | xml_escape }}</description>
12
+ <link>{{ site.url }}{{ site.baseurl }}/</link>
13
+ <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml"/>
14
+ <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
15
+ <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
16
+ <generator>Jekyll v{{ jekyll.version }}</generator>
17
+ {% for post in site.posts limit: 25 %}
18
+ <item>
19
+ <title>{{ post.title | xml_escape }}</title>
20
+ <description>
21
+ {{ post.excerpt | xml_escape }}
22
+ <br />
23
+ <a href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">Link</a>
24
+ </description>
25
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
26
+ <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
27
+ <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
28
+ {% assign cats = post.categories | concat: post.tags %}
29
+ {% for cat in cats %}
30
+ <category>{{ cat | xml_escape }}</category>
31
+ {% endfor %}
32
+ </item>
33
+ {% endfor %}
34
+ </channel>
35
+ </rss>
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/google-news.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
8
+ xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
9
+ {% for post in site.posts limit: 10 %}
10
+ <url>
11
+ <loc>{{ site.url }}{{ site.baseurl }}{{ post.url | cgi_escape | replace: '%2F', '/' }}</loc>
12
+ <news:news>
13
+ <news:publication>
14
+ <news:name>{{ site.title }}</news:name>
15
+ <news:language>de</news:language>
16
+ </news:publication>
17
+ <news:genres></news:genres>
18
+ <news:publication_date>{{ post.date | date: "%Y-%m-%d" }}</news:publication_date>
19
+ <news:title>{{ post.title | xml_escape }}</news:title>
20
+ {% assign cats = post.categories %}
21
+ {% assign cats = cats | concat: post.tags %}
22
+ <news:keywords>{{ cats | join: ', ' | xml_escape }}</news:keywords>
23
+ </news:news>
24
+ </url>
25
+ {% endfor %}
26
+ </urlset>
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/humans.txt"
4
+ ---
5
+
6
+ /* TEAM */
7
+ Author: {{ site.author }}
8
+ Location: {{ site.location }}
9
+ {% if site.twitter %}Twitter: @{{ site.twitter }}{% endif %}
10
+
11
+ /* THANKS */
12
+
13
+
14
+ /* SITE */
15
+ Last update: {{ site.time | date: "%Y/%m/%d" }}
16
+ Standards: HTML5, CSS3, ...
17
+ Components: AMP
18
+ Software: Jekyll, SASS
@@ -0,0 +1,9 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/robots.txt"
4
+ ---
5
+
6
+ User-agent: *
7
+ Disallow:
8
+ Sitemap: {{ site.url }}{{ site.baseurl }}/sitemap.xml
9
+ Sitemap: {{ site.url }}{{ site.baseurl }}/google-news.xml
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/sitemap-pages.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
8
+ {% assign documents = site.pages %}
9
+ {% for p in documents %}
10
+ {% if p.output == false and p.path contains "assets" %}
11
+ {% else %}
12
+ {% assign u = p.url %}{% assign usize = u | size | minus: 1 %}
13
+ {% assign u = u | slice: usize %}{% if u != '/' and u != 'l' and usize <= 1 %}{% assign x = p.url | append: '.html' %}{% else %}{% assign x = p.url %}{% endif %}
14
+ <url>
15
+ <loc>{{ site.url }}{{ site.baseurl }}{{ x | replace: '&', '&amp;' }}</loc>
16
+ {% if p.lastmod == null %}
17
+ {% if p.date == null %}
18
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
19
+ {% else %}
20
+ <lastmod>{{ p.date | date_to_xmlschema }}</lastmod>
21
+ {% endif %}
22
+ {% else %}
23
+ <lastmod>{{ p.lastmod | date_to_xmlschema }}</lastmod>
24
+ {% endif %}
25
+ <changefreq>weekly</changefreq>
26
+ <priority>1.0</priority>
27
+ </url>
28
+ {% endif %}
29
+ {% endfor %}
30
+ </urlset>
@@ -0,0 +1,29 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/sitemap-posts.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
8
+ {% assign documents = site.posts %}
9
+ {% for p in documents %}
10
+ {% if p.output != false %}
11
+ {% assign u = p.url %}{% assign usize = u | size | minus: 1 %}
12
+ {% assign u = u | slice: usize %}{% if u != '/' and u != 'l' and usize <= 1 %}{% assign x = p.url | append: '.html' %}{% else %}{% assign x = p.url %}{% endif %}
13
+ <url>
14
+ <loc>{{ site.url }}{{ site.baseurl }}{{ x | replace: '&', '&amp;' }}</loc>
15
+ {% if p.lastmod == null %}
16
+ {% if p.date == null %}
17
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
18
+ {% else %}
19
+ <lastmod>{{ p.date | date_to_xmlschema }}</lastmod>
20
+ {% endif %}
21
+ {% else %}
22
+ <lastmod>{{ p.lastmod | date_to_xmlschema }}</lastmod>
23
+ {% endif %}
24
+ <changefreq>weekly</changefreq>
25
+ <priority>1.0</priority>
26
+ </url>
27
+ {% endif %}
28
+ {% endfor %}
29
+ </urlset>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: none
3
+ permalink: "/sitemap.xml"
4
+ ---
5
+
6
+ <?xml version="1.0" encoding="UTF-8"?>
7
+ <sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
8
+ <sitemap>
9
+ <loc>{{ site.url }}{{ site.baseurl }}/sitemap-posts.xml</loc>
10
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
11
+ </sitemap>
12
+ <sitemap>
13
+ <loc>{{ site.url }}{{ site.baseurl }}/sitemap-pages.xml</loc>
14
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
15
+ </sitemap>
16
+ <sitemap>
17
+ <loc>{{ site.url }}{{ site.baseurl }}/google-news.xml</loc>
18
+ <lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
19
+ </sitemap>
20
+ </sitemapindex>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amp_base_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Himsel
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description:
28
42
  email:
29
43
  - lukas@himsel.me
@@ -51,6 +65,14 @@ files:
51
65
  - _layouts/default.html
52
66
  - _layouts/page.html
53
67
  - _layouts/post.html
68
+ - meta/_headers
69
+ - meta/feed.xml
70
+ - meta/google-news.xml
71
+ - meta/humans.txt
72
+ - meta/robots.txt
73
+ - meta/sitemap-pages.xml
74
+ - meta/sitemap-posts.xml
75
+ - meta/sitemap.xml
54
76
  - pwa/manifest.json
55
77
  - pwa/sw.html
56
78
  - pwa/sw.js