monoholic 1.1.0 โ 1.2.0
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 +24 -9
- data/_includes/head.html +3 -0
- data/_includes/post_list.html +1 -1
- data/_layouts/default.html +4 -2
- data/_sass/_components.scss +7 -0
- data/_sass/monoholic.scss +5 -5
- data/assets/css/style.scss +1 -1
- data/assets/favicon.svg +1 -58
- data/assets/js/.keep +5 -0
- metadata +3 -4
- data/assets/favicon-16x16.png +0 -0
- data/assets/favicon-32x32.png +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ee37aea1bd4ecf60b33567d582c4363961f49364bd2176f42e8b0de8aaa12ce
|
|
4
|
+
data.tar.gz: a00389e09ed54a0d268694fc002614cd0eca0820555d6f888d4442d22e353a34
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47a614360018402b6e397fb4e8f6d16cb267919176a479dbb3c6ac58c68d4c605af839e84379fc84eca2ffb36ab77ab77c546521cd5e77cb3366ac1e561fa868
|
|
7
|
+
data.tar.gz: cd0c4518e8d0e39ddfe00c56a8311c63d375c5ee749313e15be1ad4a29316ec36321fd4219b2900b7475b9287a5e57811e8f2c685a4f3d2fbfeec85a8ffde0be
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://rubygems.org/gems/monoholic)
|
|
7
7
|
[](https://stiermid.github.io/monoholic)
|
|
8
8
|
|
|
9
|
-
A minimal, monochrome dark Jekyll theme
|
|
9
|
+
A minimal, monochrome dark Jekyll theme
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
|
@@ -38,14 +38,27 @@ theme: monoholic
|
|
|
38
38
|
$ bundle install
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
### Manual Installation
|
|
41
|
+
### Manual Installation (GitHub Pages)
|
|
42
42
|
|
|
43
43
|
If you're running Jekyll without RubyGems or prefer to use GitHub Pages remote themes, update your `_config.yml`:
|
|
44
44
|
|
|
45
45
|
```yaml
|
|
46
46
|
remote_theme: stiermid/monoholic
|
|
47
|
+
plugins:
|
|
48
|
+
- jekyll-remote-theme
|
|
49
|
+
- jekyll-feed
|
|
50
|
+
- jekyll-seo-tag
|
|
47
51
|
```
|
|
48
52
|
|
|
53
|
+
`jekyll-remote-theme` fetches the theme on Pages; `jekyll-feed` and `jekyll-seo-tag` are required by the theme's `head.html` (`{% feed_meta %}`, `{% seo %}`). For project sites, also set `baseurl` (e.g. `/your-repo`) and `url` (e.g. `https://<user>.github.io`). To pin a release: `remote_theme: stiermid/monoholic@v1.2.0`.
|
|
54
|
+
|
|
55
|
+
> **Pages note:** Native GitHub Pages builds run Jekyll 3.9. The `monoholic` RubyGem requires Jekyll 4.4, so on GitHub Pages use `remote_theme` only (not `theme:` + `gem "monoholic"`). SCSS intentionally uses `@import` for 3.9 compatibility.
|
|
56
|
+
|
|
57
|
+
| Install method | Jekyll | How |
|
|
58
|
+
| -------------------------------------------------------- | ------------- | --------------------------- |
|
|
59
|
+
| RubyGems (`theme: monoholic`) | 4.4 | local / CI / non-Pages host |
|
|
60
|
+
| GitHub Pages (`remote_theme: stiermid/monoholic@v1.2.0`) | 3.9 via Pages | Pages only |
|
|
61
|
+
|
|
49
62
|
Or, simply fork this repository, adapt the `_config.yml` according to your needs, and you're good to go!
|
|
50
63
|
|
|
51
64
|
## Usage
|
|
@@ -60,8 +73,8 @@ Override the default settings in your `_config.yml`. Key theme configuration opt
|
|
|
60
73
|
|
|
61
74
|
```yaml
|
|
62
75
|
theme_config:
|
|
63
|
-
back: "
|
|
64
|
-
date_format: "%Y
|
|
76
|
+
back: "Back" # Text for backlink on post pages
|
|
77
|
+
date_format: "%Y-%m-%d" # Date format for post metadata
|
|
65
78
|
monochrome_images: true # Apply grayscale filter to images (default: true)
|
|
66
79
|
footer: true # Show/hide site footer (default: true)
|
|
67
80
|
```
|
|
@@ -77,7 +90,7 @@ fediverse_creator: "@username@social.example.com"
|
|
|
77
90
|
Setting `fediverse_creator` tag appends following tag to the site's header:
|
|
78
91
|
|
|
79
92
|
```html
|
|
80
|
-
<meta name="fediverse:creator" content="@username@social.example.com"
|
|
93
|
+
<meta name="fediverse:creator" content="@username@social.example.com" />
|
|
81
94
|
```
|
|
82
95
|
|
|
83
96
|
[See Also](https://docs.joinmastodon.org/user/profile/#attribution)
|
|
@@ -142,18 +155,20 @@ Monoholic ships with a default favicon. To use your own, replace the following f
|
|
|
142
155
|
|
|
143
156
|
### Stylesheet
|
|
144
157
|
|
|
145
|
-
Monoholic's stylesheet is written in SCSS and compiled at build time. The source lives in `_sass/` and is
|
|
158
|
+
Monoholic's stylesheet is written in SCSS and compiled at build time. The source lives in `_sass/` and is imported from `assets/css/style.scss`. Compilation is handled by `jekyll-sass-converter`, which is declared as a runtime dependency in the theme's `gemspec` โ so no extra setup is required when you add `gem "monoholic"` to your `Gemfile`.
|
|
146
159
|
|
|
147
|
-
If you want to override or extend the styles, the recommended approach is to add your own partials in your site's `_sass/` directory and
|
|
160
|
+
If you want to override or extend the styles, the recommended approach is to add your own partials in your site's `_sass/` directory and import them **after** the theme's entry point:
|
|
148
161
|
|
|
149
162
|
```scss
|
|
150
163
|
---
|
|
151
164
|
---
|
|
152
165
|
|
|
153
|
-
@
|
|
154
|
-
@
|
|
166
|
+
@import "monoholic";
|
|
167
|
+
@import "your-overrides";
|
|
155
168
|
```
|
|
156
169
|
|
|
170
|
+
Note: the theme uses `@import` (not `@use`) to stay compatible with GitHub Pages' Sass stack.
|
|
171
|
+
|
|
157
172
|
To override CSS custom properties (colors, spacing, fonts) without touching SCSS, redeclare the variables in your own stylesheet โ they are exposed under `:root` in `_sass/_variables.scss`.
|
|
158
173
|
|
|
159
174
|
### Per-Page JavaScript
|
data/_includes/head.html
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
<meta charset="utf-8">
|
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
+
<meta name="theme-color" content="#030303">
|
|
6
|
+
<meta name="color-scheme" content="dark">
|
|
5
7
|
|
|
6
8
|
{%- if site.fediverse_creator -%}
|
|
7
9
|
<meta
|
|
@@ -39,6 +41,7 @@
|
|
|
39
41
|
>
|
|
40
42
|
<link
|
|
41
43
|
rel="apple-touch-icon"
|
|
44
|
+
sizes="180x180"
|
|
42
45
|
href="{{ "/assets/apple-touch-icon.png" | relative_url }}"
|
|
43
46
|
>
|
|
44
47
|
{%- feed_meta -%}
|
data/_includes/post_list.html
CHANGED
data/_layouts/default.html
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
<body class="{% if site.theme_config.monochrome_images != false %}images-monochrome{% endif %}">
|
|
5
5
|
<a class="skip-link" href="#main">Skip to content</a>
|
|
6
6
|
<div class="wrapper">
|
|
7
|
-
{%-
|
|
7
|
+
{%- unless page.layout == 'post' -%}
|
|
8
|
+
{%- include header.html -%}
|
|
9
|
+
{%- endunless -%}
|
|
8
10
|
<main id="main" class="page-content">
|
|
9
11
|
{{ content }}
|
|
10
12
|
</main>
|
|
@@ -17,7 +19,7 @@
|
|
|
17
19
|
{% if page.custom_js %}
|
|
18
20
|
{% for js_file in page.custom_js %}
|
|
19
21
|
<script
|
|
20
|
-
|
|
22
|
+
defer
|
|
21
23
|
src="{{ '/assets/js/' | append: js_file | append: '.js' | relative_url }}"
|
|
22
24
|
></script>
|
|
23
25
|
{% endfor %}
|
data/_sass/_components.scss
CHANGED
|
@@ -9,6 +9,13 @@
|
|
|
9
9
|
align-items: baseline;
|
|
10
10
|
gap: var(--space-md);
|
|
11
11
|
flex-wrap: wrap; // Mobile safety
|
|
12
|
+
|
|
13
|
+
&::before {
|
|
14
|
+
content: "*";
|
|
15
|
+
color: var(--meta-color);
|
|
16
|
+
// Keep marker snug to the date (flex `gap` would push it too far).
|
|
17
|
+
margin-right: calc(1ch - var(--space-md));
|
|
18
|
+
}
|
|
12
19
|
}
|
|
13
20
|
|
|
14
21
|
.post-meta {
|
data/_sass/monoholic.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// monoholic.scss
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
2
|
+
@import "variables";
|
|
3
|
+
@import "base";
|
|
4
|
+
@import "content";
|
|
5
|
+
@import "layout";
|
|
6
|
+
@import "components";
|
data/assets/css/style.scss
CHANGED
data/assets/favicon.svg
CHANGED
|
@@ -1,58 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
width="32"
|
|
6
|
-
height="32"
|
|
7
|
-
viewBox="0 0 32 32"
|
|
8
|
-
version="1.1"
|
|
9
|
-
id="svg1"
|
|
10
|
-
inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)"
|
|
11
|
-
sodipodi:docname="icon.svg"
|
|
12
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
-
<sodipodi:namedview
|
|
17
|
-
id="namedview1"
|
|
18
|
-
pagecolor="#505050"
|
|
19
|
-
bordercolor="#eeeeee"
|
|
20
|
-
borderopacity="1"
|
|
21
|
-
inkscape:showpageshadow="0"
|
|
22
|
-
inkscape:pageopacity="0"
|
|
23
|
-
inkscape:pagecheckerboard="0"
|
|
24
|
-
inkscape:deskcolor="#505050"
|
|
25
|
-
inkscape:document-units="px"
|
|
26
|
-
inkscape:zoom="16"
|
|
27
|
-
inkscape:cx="8.125"
|
|
28
|
-
inkscape:cy="19.59375"
|
|
29
|
-
inkscape:window-width="1918"
|
|
30
|
-
inkscape:window-height="1052"
|
|
31
|
-
inkscape:window-x="0"
|
|
32
|
-
inkscape:window-y="0"
|
|
33
|
-
inkscape:window-maximized="1"
|
|
34
|
-
inkscape:current-layer="layer1" />
|
|
35
|
-
<defs
|
|
36
|
-
id="defs1" />
|
|
37
|
-
<g
|
|
38
|
-
inkscape:label="Layer 1"
|
|
39
|
-
inkscape:groupmode="layer"
|
|
40
|
-
id="layer1">
|
|
41
|
-
<path
|
|
42
|
-
style="font-size:48px;font-family:Monospace;-inkscape-font-specification:Monospace"
|
|
43
|
-
d="M 4.4799998,27.981593 V 4.4984075 h 3.744 c 0,0 0.72,1.36 1.488,0.624 0.8000002,-0.736 1.8080002,-1.104 3.0240002,-1.104 1.152,0 2.128,0.336 2.928,1.008 0.8,0.672 2.496,0.672 3.264,0 0.8,-0.672 1.808,-1.008 3.024,-1.008 1.696,0 3.04,0.64 4.032,1.92 1.024,1.248 1.536,2.88 1.536,4.8960005 V 27.981593 H 23.488 V 10.786408 c 0,-1.0560005 -0.256,-1.8880005 -0.768,-2.4960005 -0.512,-0.64 -1.216,-0.96 -2.112,-0.96 -0.864,0 -1.552,0.304 -2.064,0.912 -0.512,0.608 -0.768,1.44 -0.768,2.4960005 V 27.981593 H 14.224 V 10.786408 c 0,-1.0560005 -0.256,-1.8880005 -0.768,-2.4960005 -0.512,-0.64 -1.2,-0.96 -2.064,-0.96 -0.896,0 -1.6000002,0.304 -2.1120002,0.912 -0.512,0.608 -0.768,1.44 -0.768,2.4960005 v 17.243185 z"
|
|
44
|
-
id="text2"
|
|
45
|
-
aria-label="m"
|
|
46
|
-
sodipodi:nodetypes="ccccsscscsccscsssccscssscc" />
|
|
47
|
-
<text
|
|
48
|
-
xml:space="preserve"
|
|
49
|
-
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:48px;font-family:Monospace;-inkscape-font-specification:Monospace;writing-mode:lr-tb;direction:ltr;fill:#000000"
|
|
50
|
-
x="-171.11984"
|
|
51
|
-
y="24.041632"
|
|
52
|
-
id="text3"><tspan
|
|
53
|
-
sodipodi:role="line"
|
|
54
|
-
id="tspan2"
|
|
55
|
-
x="-171.11984"
|
|
56
|
-
y="24.041632" /></text>
|
|
57
|
-
</g>
|
|
58
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img"><title>m</title><path fill="#fff" d="M 4.4799998,27.981593 V 4.4984075 h 3.744 c 0,0 0.72,1.36 1.488,0.624 0.8000002,-0.736 1.8080002,-1.104 3.0240002,-1.104 1.152,0 2.128,0.336 2.928,1.008 0.8,0.672 2.496,0.672 3.264,0 0.8,-0.672 1.808,-1.008 3.024,-1.008 1.696,0 3.04,0.64 4.032,1.92 1.024,1.248 1.536,2.88 1.536,4.8960005 V 27.981593 H 23.488 V 10.786408 c 0,-1.0560005 -0.256,-1.8880005 -0.768,-2.4960005 -0.512,-0.64 -1.216,-0.96 -2.112,-0.96 -0.864,0 -1.552,0.304 -2.064,0.912 -0.512,0.608 -0.768,1.44 -0.768,2.4960005 V 27.981593 H 14.224 V 10.786408 c 0,-1.0560005 -0.256,-1.8880005 -0.768,-2.4960005 -0.512,-0.64 -1.2,-0.96 -2.064,-0.96 -0.896,0 -1.6000002,0.304 -2.1120002,0.912 -0.512,0.608 -0.768,1.44 -0.768,2.4960005 v 17.243185 z"/></svg>
|
data/assets/js/.keep
ADDED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: monoholic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Agil Mammadov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -93,10 +93,9 @@ files:
|
|
|
93
93
|
- _sass/monoholic.scss
|
|
94
94
|
- assets/apple-touch-icon.png
|
|
95
95
|
- assets/css/style.scss
|
|
96
|
-
- assets/favicon-16x16.png
|
|
97
|
-
- assets/favicon-32x32.png
|
|
98
96
|
- assets/favicon.ico
|
|
99
97
|
- assets/favicon.svg
|
|
98
|
+
- assets/js/.keep
|
|
100
99
|
homepage: https://github.com/stiermid/monoholic
|
|
101
100
|
licenses:
|
|
102
101
|
- GPL-3.0-only
|
data/assets/favicon-16x16.png
DELETED
|
Binary file
|
data/assets/favicon-32x32.png
DELETED
|
Binary file
|