betterplace-content 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -19
- data/_layouts/rules.html +77 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92a707aff1d854dedb2b733945c510f05147c7c4
|
4
|
+
data.tar.gz: 8f5bb0671bdb14587192edfeb5d0bf9c18e7c5e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8efd915debb687833b2571426e8afdf25065e57cfd351997de874e7824d769356b7d48627fb6c137ad4d1fcf251c17a3db79686d96e016bff75beb5ccd74acb7
|
7
|
+
data.tar.gz: 1033092751e8850c4eae5b4ec8f0ba21d998a2e662fcb16529f5e7d8034f2dcad57a41413e05fa2eeef8848133f4d0bab0263fa539ef98dcd21108edfa4cb563
|
data/README.md
CHANGED
@@ -30,22 +30,4 @@ When your theme is released, only the files in `_layouts`, `_includes`, and `_sa
|
|
30
30
|
|
31
31
|
## Quick Update all content theme
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
```
|
36
|
-
#!/usr/bin/env fish
|
37
|
-
|
38
|
-
for folder in (ls -d */ | grep content-)
|
39
|
-
cd $folder
|
40
|
-
echo "update $folder"
|
41
|
-
chruby 2.4.1
|
42
|
-
git pull --quiet
|
43
|
-
bundle --quiet
|
44
|
-
git checkout Gemfile
|
45
|
-
bundle update --quiet
|
46
|
-
git add Gemfile.lock
|
47
|
-
git commit -m "Update layout gem" > /dev/null
|
48
|
-
git push --quiet
|
49
|
-
cd ..
|
50
|
-
end
|
51
|
-
```
|
33
|
+
See `*.sh`-Files, specifically `content-bundle-update.sh`
|
data/_layouts/rules.html
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
6
|
+
|
7
|
+
{% comment %}
|
8
|
+
############# Style-Korrekturen #############
|
9
|
+
{% endcomment %}
|
10
|
+
<style type="text/css">
|
11
|
+
ul#markdown-toc li {
|
12
|
+
line-height: 27px !important;
|
13
|
+
padding-bottom: 0 !important;
|
14
|
+
}
|
15
|
+
.post h2,
|
16
|
+
.post h3,
|
17
|
+
.post h4,
|
18
|
+
.post h5 {
|
19
|
+
font-size: 18px !important;
|
20
|
+
line-height: 26px !important;
|
21
|
+
margin-top: 30px;
|
22
|
+
}
|
23
|
+
</style>
|
24
|
+
|
25
|
+
{% comment %}
|
26
|
+
############# Autolinking #############
|
27
|
+
{% endcomment %}
|
28
|
+
<script>
|
29
|
+
/* Thanks at https://github.com/jekyll/jekyll/blob/2adac58b41a788eef41a6db1d4588a667de611da/docs/_includes/anchor_links.html#L7 */
|
30
|
+
var anchorForId = function (id) {
|
31
|
+
var anchor = document.createElement("a");
|
32
|
+
anchor.className = "header-link";
|
33
|
+
anchor.href = "#" + id;
|
34
|
+
anchor.innerHTML = "<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>";
|
35
|
+
anchor.title = "Permalink";
|
36
|
+
return anchor;
|
37
|
+
};
|
38
|
+
var linkifyAnchors = function (level, containingElement) {
|
39
|
+
var headers = containingElement.getElementsByTagName("h" + level);
|
40
|
+
for (var h = 0; h < headers.length; h++) {
|
41
|
+
var header = headers[h];
|
42
|
+
if (typeof header.id !== "undefined" && header.id !== "") {
|
43
|
+
header.appendChild(anchorForId(header.id));
|
44
|
+
}
|
45
|
+
}
|
46
|
+
};
|
47
|
+
document.onreadystatechange = function () {
|
48
|
+
if (this.readyState === "complete") {
|
49
|
+
var contentBlock = document.getElementsByClassName("post")[0];
|
50
|
+
if (!contentBlock) {
|
51
|
+
return;
|
52
|
+
}
|
53
|
+
for (var level = 1; level <= 6; level++) {
|
54
|
+
linkifyAnchors(level, contentBlock);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
};
|
58
|
+
</script>
|
59
|
+
<style type="text/css">
|
60
|
+
/* Thanks at https://github.com/jekyll/jekyll/blob/aef0e1c2527160c0a8f4f472811eacc5687c986f/docs/_sass/_style.scss#L162 */
|
61
|
+
.header-link {
|
62
|
+
position: relative;
|
63
|
+
left: 0.5em;
|
64
|
+
opacity: 0;
|
65
|
+
font-size: 0.8em;
|
66
|
+
-webkit-transition: opacity 0.2s ease-in-out 0.1s;
|
67
|
+
-moz-transition: opacity 0.2s ease-in-out 0.1s;
|
68
|
+
-ms-transition: opacity 0.2s ease-in-out 0.1s;
|
69
|
+
}
|
70
|
+
h2:hover .header-link,
|
71
|
+
h3:hover .header-link,
|
72
|
+
h4:hover .header-link,
|
73
|
+
h5:hover .header-link,
|
74
|
+
h6:hover .header-link {
|
75
|
+
opacity: 1;
|
76
|
+
}
|
77
|
+
</style>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betterplace-content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace.org Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- _layouts/news.html
|
81
81
|
- _layouts/post.html
|
82
82
|
- _layouts/redirect.html
|
83
|
+
- _layouts/rules.html
|
83
84
|
- _sass/about-us/because.sass
|
84
85
|
- _sass/about-us/feature.sass
|
85
86
|
- _sass/about-us/generic_content_header.sass
|