jekyll-ham 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/_includes/comments.html +19 -0
- data/_layouts/page.html +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf7ac09b46c599dd3e518debbea7d340a624d51de10411dc28ba2963097c2ebf
|
4
|
+
data.tar.gz: 2c600aaa0f8363b1c7e81793e486a5575eda645db47db6e12719a175198ec042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f8d14e2e3438b31cfce961fac7fed16e8c63c1be8fd5534e679dfb7677a33ea3de3a4a041882f0537baede05a7dfaf30644ddb0ca8d56a7c5e66c42f00c645f
|
7
|
+
data.tar.gz: 8dde903821c3a4e15ad413fbfe2dd2bb6a1111c7bbde741292a6624ea5a881ba2c821c1cbffc97bd9cc39ccd8ea5534736102b87089b2a5bea8e156ad161cd52
|
data/README.md
CHANGED
@@ -58,7 +58,17 @@ HAM is short for:
|
|
58
58
|
- [ ] Supporting Forem (DEV.to) liquid tags (YouTube embeds, Twitter posts, etc.)
|
59
59
|
|
60
60
|
## Usage
|
61
|
-
|
61
|
+
### For [GitHub Pages](https://pages.github.com)
|
62
|
+
If you would like to add this theme into your GitHub Pages website, please just add the following on your `_config.yml`
|
63
|
+
|
64
|
+
```
|
65
|
+
remote_theme: reinhart1010/HAM
|
66
|
+
```
|
67
|
+
|
68
|
+
The best part of this is that you can get the latest version of HAM without manually requiring it on your Gemfile, as long as you have updated your page frequently (GitHub will fetch the current available version of the HAM "theme").
|
69
|
+
|
70
|
+
### As a Gem-based theme
|
71
|
+
HAM is also available as a [Gem-based theme](https://rubygems.org/gems/jekyll-ham) on the official Ruby gems repository. If you are unsure on installing gem-based themes like this one, check out the [official Jekyll documentation](https://jekyllrb.com/docs/themes/#installing-a-theme) for that.
|
62
72
|
|
63
73
|
If you have just created a new site with `jekyll new <PATH>` chances are that you're using the default, Minima theme instead of HAM. If that's the case, replace the line which begins with
|
64
74
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% if site.ham.contributing != null %}
|
2
|
+
{% if site.ham.contributing != null %}
|
3
|
+
{% if site.ham.contributing.discuss.type != null && site.ham.contributing.discuss.type != 'url' %}
|
4
|
+
<h5 id="discuss" class="sidebar-title">Discuss this page</h5>
|
5
|
+
{% case site.ham.contributing.discuss.type %}
|
6
|
+
{% when 'giscus' %}
|
7
|
+
<script src="https://giscus.app/client.js" data-repo="{{ site.ham.contributing.discuss.repo }}" data-repo-id="{{ site.ham.contributing.discuss.repo_id }}" data-category="{{ site.ham.contributing.discuss.category }}" data-category-id="{{ site.ham.contributing.discuss.category_id }}" data-mapping="{{ site.ham.contributing.discuss.mapping }}" data-reactions-enabled="{{ site.ham.contributing.discuss.reactions_enabled | default: 1 }}" data-emit-metadata="{{ site.ham.contributing.discuss.emit_metadata | default: 0 }}" data-theme="{{ site.ham.contributing.discuss.theme | default: 'preferred_color_scheme' }}" data-lang="{{ site.ham.contributing.discuss.lang | default: 'en' }}" crossorigin="anonymous" async></script>
|
8
|
+
{% when 'telegram' %}
|
9
|
+
<script src="https://telegram.org/js/telegram-widget.js?15" {% if site.ham.contributing.discuss.telegram_discussion != null %} data-telegram-discussion="{{ site.ham.contributing.discuss.telegram_discussion }}" {% endif %} data-comments-limit="{{ site.ham.contributing.discuss.comments_limit | default: '5' }}" {% if site.ham.contributing.discuss.height != null %} data-height="{{ site.ham.contributing.discuss.height }}" {% endif %} data-color="{{ site.ham.contributing.discuss.color | default: '319BE6' }}" data-dark-color="{{ site.ham.contributing.discuss.color | default: '4BA3E2' }}" data-colorful="{{ site.ham.contributing.discuss.colorful | default: 0 }}" data-dark="{{ site.ham.contributing.discuss.dark | default: 0 }}" crossorigin="anonymous" async></script>
|
10
|
+
{% when 'utteranc.es' %}
|
11
|
+
<script src="https://utteranc.es/client.js" repo="{{ site.ham.contributing.discuss.repo }}" issue-term="{{ site.ham.contributing.discuss.issue_term }}"
|
12
|
+
{% if site.ham.contributing.discuss.label != null %}
|
13
|
+
label="{{ site.ham.contributing.discuss.label }}"
|
14
|
+
{% endif %}
|
15
|
+
theme="{{ site.ham.contributing.discuss.theme | default: 'preferred-color-scheme' }}" crossorigin="anonymous" async></script>
|
16
|
+
{% endcase %}
|
17
|
+
{% endif %}
|
18
|
+
{% endif %}
|
19
|
+
{% endif %}
|
data/_layouts/page.html
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-ham
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reinhart Previano Koentjoro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- LICENSE.txt
|
145
145
|
- README.md
|
146
146
|
- _config.yml
|
147
|
+
- _includes/comments.html
|
147
148
|
- _includes/external-link.html
|
148
149
|
- _includes/footer.html
|
149
150
|
- _includes/navbar.html
|