jekyll-theme-dummy 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/_layouts/default.html +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21b3ab7e423c640eef18e6b41e4e655368c4eef9719581bed160477e179d0901
|
4
|
+
data.tar.gz: e6a7127f957f3ecf9f2c6ff3e24c1869f102d15493ddf5c260a5eb815d3c8616
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d265e6f1d9eb9bdb313839caeeca85c97f45261e7d6bf329e1506a0cbce33a702fa3c3e813159164c016ca32853a9d2da1e528200a3d76a3008accbb3eaeca5a
|
7
|
+
data.tar.gz: d52575652b9db6c69339c07a6c6f2061ebb790a10b0e4c9de01cc0fd3b48e7dcfb9c4c0591b6a76a7c3ec0dab77ccbe287ece16fa94856c5d20876f1cdb77eb3
|
data/README.md
CHANGED
@@ -41,6 +41,16 @@ Your theme is setup just like a normal Jekyll site! To test your theme, run `bun
|
|
41
41
|
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
42
42
|
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-dummy.gemspec` accordingly.
|
43
43
|
|
44
|
+
## Publish
|
45
|
+
|
46
|
+
To Github
|
47
|
+
|
48
|
+
~~~
|
49
|
+
echo ":github: Bearer GH_TOKEN" >> ~/.gem/credentials
|
50
|
+
gem build jekyll-theme-dummy.gemspec
|
51
|
+
gem push --key github --host https://rubygems.pkg.github.com/mpan-wework jekyll-theme-dummy-0.1.2.gem
|
52
|
+
~~~
|
53
|
+
|
44
54
|
## License
|
45
55
|
|
46
56
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_layouts/default.html
CHANGED
@@ -6,8 +6,10 @@
|
|
6
6
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=" />
|
7
7
|
<script src="https://unpkg.com/@mpan-wework/jekyll-theme-manager@0.1.12/dist/index.umd.min.js"></script>
|
8
8
|
<script>
|
9
|
-
|
10
|
-
|
9
|
+
const themes = {{ site.data.themes | jsonify }};
|
10
|
+
const defaultTheme = themes[new Date().getMinutes() % themes.length];
|
11
|
+
window.JekyllThemeManager.load(themes);
|
12
|
+
window.JekyllThemeManager.use(window.localStorage.getItem('theme') || defaultTheme);
|
11
13
|
</script>
|
12
14
|
</head><body>
|
13
15
|
{{ content }}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-dummy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Pan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|