amp_base_theme 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/404.md +1 -1
- data/CHANGLELOG.md +3 -0
- data/_data/amp_components.yaml +1 -0
- data/_includes/amp-story/body.html +0 -0
- data/_includes/{footer.html → foot.html} +0 -0
- data/_includes/head/amp-components.html +13 -0
- data/_includes/head/amp-custom.html +8 -1
- data/_layouts/amp-base.html +18 -0
- data/_layouts/default.html +3 -11
- data/_layouts/story.html +4 -0
- data/_layouts/website.html +6 -0
- data/assets/_headers +9 -0
- data/assets/feed.xml +35 -0
- data/assets/google-news.xml +26 -0
- data/assets/humans.txt +18 -0
- data/{pwa → assets}/manifest.json +2 -2
- data/assets/robots.txt +9 -0
- data/assets/sitemap-pages.xml +30 -0
- data/assets/sitemap-posts.xml +29 -0
- data/assets/sitemap.xml +20 -0
- data/{pwa → assets}/sw.html +1 -1
- data/{pwa → assets}/sw.js +1 -1
- data/deploy.sh +1 -0
- metadata +34 -8
- data/_layouts/page.html +0 -5
- data/_layouts/post.html +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ec9b83d8be07f199109eabff868d22cbeb1e5e02b47b16bd8b0cb6450ccb47
|
4
|
+
data.tar.gz: f1dfb9947ccf1156a9776cbe6d8cc9fef0cb5e3cbf5d48181166e5a8d1a8cb72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ae0979570bc44ea0182c32a933c55815d355415491edd3ecb5aa285b188a3a7f637bc741e25b47d5c1cf267762d291e4957b0de05aa0c21d91f9a96aca4701
|
7
|
+
data.tar.gz: f4dc80f85e046ef6731421a59aa339065254cd9cb0660cf7d7abd23ffb3425d25eee21a0a871cc4aef60051de703a08395bb7c3523fe1271d5a8c8656bf1d817
|
data/404.md
CHANGED
data/CHANGLELOG.md
ADDED
data/_data/amp_components.yaml
CHANGED
File without changes
|
File without changes
|
@@ -16,6 +16,19 @@
|
|
16
16
|
|
17
17
|
{% endif %}
|
18
18
|
|
19
|
+
{% if page.amp_type == "story" %}
|
20
|
+
|
21
|
+
{% if component_keys contains "amp-story" %}{% else %}
|
22
|
+
|
23
|
+
{% assign story_comp = site.data.amp_components | where: "name", "amp-story" %}
|
24
|
+
{% assign components = components | concat: story_comp %}
|
25
|
+
{% assign comp_name = "amp-story" | split: "" %}
|
26
|
+
{% assign component_keys = component_keys | concat: comp_name %}
|
27
|
+
|
28
|
+
{% endif %}
|
29
|
+
|
30
|
+
{% endif %}
|
31
|
+
|
19
32
|
{% if site.google_analytics or site.facebook_analytics %}
|
20
33
|
{% if component_keys contains "amp-analytics" %}{% else %}
|
21
34
|
|
@@ -1,3 +1,10 @@
|
|
1
|
-
|
1
|
+
{% if site.google_fonts %}
|
2
|
+
|
3
|
+
{% assign family_param = site.google_fonts | join: "|" | replace: " ", "+" %}
|
4
|
+
<link href="https://fonts.googleapis.com/css?family={{ family_param }}" rel="stylesheet">
|
2
5
|
|
6
|
+
{% endif %}
|
7
|
+
|
8
|
+
<style amp-custom>
|
9
|
+
|
3
10
|
</style>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
|
5
|
+
<!doctype html>
|
6
|
+
<html ⚡>
|
7
|
+
{% include head.html %}
|
8
|
+
|
9
|
+
<body>
|
10
|
+
{% if page.amp_type =="story" %}
|
11
|
+
{% include amp-story/body.html %}
|
12
|
+
{% else %}
|
13
|
+
{{ content }}
|
14
|
+
{% endif %}
|
15
|
+
{% include foot.html %}
|
16
|
+
</body>
|
17
|
+
|
18
|
+
</html>
|
data/_layouts/default.html
CHANGED
data/_layouts/story.html
ADDED
data/assets/_headers
ADDED
data/assets/feed.xml
ADDED
@@ -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>
|
data/assets/humans.txt
ADDED
@@ -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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
|
-
permalink: "/manifest.json"
|
3
2
|
layout: none
|
3
|
+
permalink: "manifest.json"
|
4
4
|
---
|
5
5
|
|
6
6
|
{
|
@@ -10,7 +10,7 @@ layout: none
|
|
10
10
|
"display": "standalone",
|
11
11
|
"theme_color": "{{ site.color }}",
|
12
12
|
"background_color": "{{ site.background_color }}",
|
13
|
-
"lang": "{{ site.lang | default: "
|
13
|
+
"lang": "{{ site.lang | default: "de-DE" }}",
|
14
14
|
"scope": "{{ site.baseurl }}",
|
15
15
|
"orientation": "portrait-primary",
|
16
16
|
"description": "{{ site.description }}",
|
data/assets/robots.txt
ADDED
@@ -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: '&', '&' }}</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: '&', '&' }}</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>
|
data/assets/sitemap.xml
ADDED
@@ -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>
|
data/{pwa → assets}/sw.html
RENAMED
data/{pwa → assets}/sw.js
RENAMED
data/deploy.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
gem build amp_base_theme && sudo gem install amp_base_theme-0.0.7.gem && gem contents amp_base_theme --version "=0.0.7" && gem push amp_base_theme-0.0.7.gem
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: amp_base_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Himsel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -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
|
@@ -32,14 +46,16 @@ extensions: []
|
|
32
46
|
extra_rdoc_files: []
|
33
47
|
files:
|
34
48
|
- 404.md
|
49
|
+
- CHANGLELOG.md
|
35
50
|
- LICENSE.txt
|
36
51
|
- README.md
|
37
52
|
- _data/amp_components.yaml
|
38
53
|
- _data/pwa_ignore.yaml
|
54
|
+
- _includes/amp-story/body.html
|
39
55
|
- _includes/analytics/cookie-consent.html
|
40
56
|
- _includes/analytics/facebook-analytics.html
|
41
57
|
- _includes/analytics/google-analytics.html
|
42
|
-
- _includes/
|
58
|
+
- _includes/foot.html
|
43
59
|
- _includes/head.html
|
44
60
|
- _includes/head/amp-boilerplate.html
|
45
61
|
- _includes/head/amp-components.html
|
@@ -47,13 +63,23 @@ files:
|
|
47
63
|
- _includes/head/seo.html
|
48
64
|
- _includes/head/structured-data.html
|
49
65
|
- _includes/pwa/sw.html
|
66
|
+
- _layouts/amp-base.html
|
50
67
|
- _layouts/compress.html
|
51
68
|
- _layouts/default.html
|
52
|
-
- _layouts/
|
53
|
-
- _layouts/
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
69
|
+
- _layouts/story.html
|
70
|
+
- _layouts/website.html
|
71
|
+
- assets/_headers
|
72
|
+
- assets/feed.xml
|
73
|
+
- assets/google-news.xml
|
74
|
+
- assets/humans.txt
|
75
|
+
- assets/manifest.json
|
76
|
+
- assets/robots.txt
|
77
|
+
- assets/sitemap-pages.xml
|
78
|
+
- assets/sitemap-posts.xml
|
79
|
+
- assets/sitemap.xml
|
80
|
+
- assets/sw.html
|
81
|
+
- assets/sw.js
|
82
|
+
- deploy.sh
|
57
83
|
homepage: https://github.com/lukas-h/amp_base_theme
|
58
84
|
licenses:
|
59
85
|
- MIT
|
data/_layouts/page.html
DELETED