jekyll-ham 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/_includes/navbar.html +3 -2
- data/_includes/random-posts.html +13 -0
- data/assets/main.css +21 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 169fd7f928d603d32b6c0eed41ffc70e6ee256bd9a42627a7b5d108b966accd2
|
4
|
+
data.tar.gz: b97e5f8cbcfc642ae544ee39525950c13749b01511532ae2eb5d89a19370b835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e88f2ba8a955d889ef294ef3c3696884ccf65c12f557bd725a2ea41e11da5ea72124010beb714513dceabbaf20f63aa42f269fa8a5b7996e14d813c4401dd4b
|
7
|
+
data.tar.gz: 7ad870843cc044e2b87605eacc40f91d520e1a876b1baa9a67a78e634fa7360c171ea67ba10c9319c8b8f4918d0e80ca839d25afa44e89b45b29a2f485001985
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ HAM is short for:
|
|
47
47
|
- [x] A better alternative than GitHub pages
|
48
48
|
- [x] Highly customizable through [Halfmoon] and [Jekyll]
|
49
49
|
- [x] Uses GitHub-Flavored Markdown (GFM)
|
50
|
-
- [x] Optimized for GitHub Pages and
|
50
|
+
- [x] Optimized for GitHub Pages and GitLab Pages
|
51
51
|
|
52
52
|
### What HAM isn't
|
53
53
|
- [ ] Optimized for large wiki content (this is where advanced alternatives such as [MediaWiki] excels at)
|
@@ -65,6 +65,8 @@ If you would like to add this theme into your GitHub Pages website, please just
|
|
65
65
|
remote_theme: reinhart1010/HAM
|
66
66
|
```
|
67
67
|
|
68
|
+
Note that this instruction will only work if you still opt in to GitHub Pages' "classic" experience - the same old workflow without having to write your own GitHub Actions. Users who opt in to use GitHub Actions instead should install this as a regular Gem-based theme.
|
69
|
+
|
68
70
|
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
71
|
|
70
72
|
### As a Gem-based theme
|
@@ -72,14 +74,14 @@ HAM is also available as a [Gem-based theme](https://rubygems.org/gems/jekyll-ha
|
|
72
74
|
|
73
75
|
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
|
74
76
|
|
75
|
-
```
|
77
|
+
```gemspec
|
76
78
|
gem "minima"
|
77
79
|
```
|
78
80
|
|
79
81
|
on your `Gemfile` with
|
80
82
|
|
81
|
-
```
|
82
|
-
gem "jekyll-ham", "~> 0.2.
|
83
|
+
```gemspec
|
84
|
+
gem "jekyll-ham", "~> 0.2.3"
|
83
85
|
```
|
84
86
|
|
85
87
|
Also don't forget to change the `theme` configuration on your `_config.yml` to `jekyll-ham` instead of `minima`.
|
@@ -118,11 +120,11 @@ HAM heavily uses [Halfmoon] CSS framework on the generated page due to its themi
|
|
118
120
|
[MediaWiki]: https://mediawiki.org
|
119
121
|
|
120
122
|
## Credits & Open Source Licenses
|
121
|
-
Copyright (c)
|
123
|
+
Copyright (c) 2022 Reinhart Previano Koentjoro.
|
122
124
|
|
123
125
|
This project is distributed under MIT License, and also uses the following open-source components:
|
124
126
|
|
125
|
-
+ Bootstrap Icons (<https://github.com/twbs/icons>) - Copyright (c) 2019-
|
127
|
+
+ Bootstrap Icons (<https://github.com/twbs/icons>) - Copyright (c) 2019-2022 The Bootstrap Authors, MIT License
|
126
128
|
+ Halfmoon (<https://github.com/halfmoonui/halfmoon>) - Copyright (c) 2020 Halfmoon UI, MIT License
|
127
129
|
+ OneDarkJekyll (<https://github.com/mgyongyosi/OneDarkJekyll>) - Copyright (c) 2016 Mihály Gyöngyösi, MIT License
|
128
130
|
+ Simple-Jekyll-Search (<https://github.com/christian-fei/Simple-Jekyll-Search>) - Copyright (c) 2015 Christian Fei, MIT License
|
data/_includes/navbar.html
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
<nav class="navbar">
|
2
2
|
<div class="navbar-content">
|
3
3
|
<button class="btn btn-action" type="button" onclick="halfmoon.toggleSidebar()">
|
4
|
-
<i class="bi bi-list" aria-hidden="true"></i>
|
4
|
+
<i class="bi bi-list ham-menu-button-icon-open" aria-hidden="true"></i>
|
5
|
+
<i class="bi bi-x-lg ham-menu-button-icon-close" aria-hidden="true"></i>
|
5
6
|
<span class="sr-only">Toggle sidebar</span>
|
6
7
|
</button>
|
7
8
|
</div>
|
@@ -18,7 +19,7 @@
|
|
18
19
|
<i class="bi bi-moon-stars" aria-hidden="true"></i>
|
19
20
|
<span class="sr-only">Toggle Dark Mode</span>
|
20
21
|
</button>
|
21
|
-
<a href="#search" class="btn btn-action btn-primary">
|
22
|
+
<a href="#search" class="btn btn-action btn-primary" onClick="document.getElementById('search-input').focus()">
|
22
23
|
<i class="bi bi-search" aria-hidden="true"></i>
|
23
24
|
<span class="sr-only">Search</span>
|
24
25
|
</a>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{% assign random1 = site.time | date: "%s%N" | modulo: site.posts.size %}
|
2
|
+
{% assign post_random1 = site.posts[random1] %}
|
3
|
+
{% assign random2 = site.time | date: "%s%N" | plus: 20 | modulo: site.posts.size %}
|
4
|
+
{% assign post_random2 = site.posts[random2] %}
|
5
|
+
{% assign random3 = site.time | date: "%s%N" | plus: 80 | modulo: site.posts.size %}
|
6
|
+
{% assign post_random3 = site.posts[random3] %}
|
7
|
+
|
8
|
+
<h2>Random Posts</h2>
|
9
|
+
<ul>
|
10
|
+
<li><a href="{{ post_random1.url }}">{{ post_random1.title }}</a></li>
|
11
|
+
<li><a href="{{ post_random2.url }}">{{ post_random2.title }}</a></li>
|
12
|
+
<li><a href="{{ post_random3.url }}">{{ post_random3.title }}</a></li>
|
13
|
+
</ul>
|
data/assets/main.css
CHANGED
@@ -1,8 +1,24 @@
|
|
1
1
|
/* TODO: Add your CSS here (Jekyll will override it) */
|
2
2
|
:root {
|
3
|
+
--font-family-sans: "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Cantarell, "Open Sans", "Noto Sans", Piboto, Ubuntu, "Roboto Flex", Roboto, Helvetica, FreeSans, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
3
4
|
--font-family-serif: 'Linux Libertine', 'Linux Libertine Display O', Georgia, 'Noto Serif', 'Times New Roman', Times, serif;
|
4
5
|
--heading-font-weight: 700;
|
5
6
|
}
|
7
|
+
body {
|
8
|
+
font-family: var(--font-family-sans);
|
9
|
+
}
|
10
|
+
|
11
|
+
/* Custom icon for panel open and close */
|
12
|
+
.page-wrapper .ham-menu-button-icon-open {
|
13
|
+
display: none;
|
14
|
+
}
|
15
|
+
.page-wrapper[data-sidebar-hidden="hidden"] .ham-menu-button-icon-open {
|
16
|
+
display: block;
|
17
|
+
}
|
18
|
+
.page-wrapper[data-sidebar-hidden="hidden"] .ham-menu-button-icon-close {
|
19
|
+
display: none;
|
20
|
+
}
|
21
|
+
|
6
22
|
|
7
23
|
/* Use serif font for headings (a-la MediaWiki) */
|
8
24
|
.article-wrapper h1, .article-wrapper h2, .content-wrapper .h1, .content-wrapper .h2 {
|
@@ -13,3 +29,8 @@
|
|
13
29
|
font-family: var(--font-family-serif);
|
14
30
|
font-style: italic;
|
15
31
|
}
|
32
|
+
|
33
|
+
/* Make code previews rounded */
|
34
|
+
.highlight, pre.highlight {
|
35
|
+
border-radius: var(--base-border-radius);
|
36
|
+
}
|
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.2.
|
4
|
+
version: 0.2.3
|
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: 2022-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.3.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.3.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jekyll-optional-front-matter
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,6 +162,7 @@ files:
|
|
162
162
|
- _includes/external-link.html
|
163
163
|
- _includes/footer.html
|
164
164
|
- _includes/navbar.html
|
165
|
+
- _includes/random-posts.html
|
165
166
|
- _includes/search-modal.html
|
166
167
|
- _includes/sidebar.html
|
167
168
|
- _layouts/default.html
|