jekyll-theme-monty 1.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7571dc9e36c1a3a44cf932227b6c5ddb643437fb610443c857d028d38121727b
4
+ data.tar.gz: 36b33ba83a5ed5bd3ba0826c707d9d7a87a242b3eb6c037bf94a6babdeb87c2b
5
+ SHA512:
6
+ metadata.gz: 8b0b1b8e0160436d61006cf728cb1d596cd92e7b70ebdd360ecde678952666d88006f5b3bcaca8b4ad1c0314a6da3bee029fefefc53912aaaecf3eab488b48de
7
+ data.tar.gz: c6a05d62e124191642d49a6974baa13ee9dcda5fcf8102fdcdaa879e2e5139a56f6af755c1994cfccc0fc839423664b75a4aea139639994b00826db3ffcc47f3
data/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [1.0.1]
8
+
9
+ ### Fixed
10
+
11
+ - Project configuration files
12
+
13
+ ## [1.0.0]
14
+
15
+ ### Added
16
+
17
+ - Initial release
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 brolun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # Monty
2
+
3
+ [![GitHub Release](https://img.shields.io/github/v/release/brolun/jekyll-theme-monty)](https://github.com/brolun/jekyll-theme-monty/releases)
4
+ [![Gem Version](https://img.shields.io/gem/v/jekyll-theme-monty)](https://rubygems.org/gems/jekyll-theme-monty)
5
+ [![Gem Total Downloads](https://img.shields.io/gem/dt/jekyll-theme-monty)](https://rubygems.org/gems/jekyll-theme-monty)
6
+ [![GitHub License](https://img.shields.io/github/license/brolun/jekyll-theme-monty)](https://github.com/brolun/jekyll-theme-monty/blob/main/LICENSE)
7
+
8
+ Monty is a Jekyll theme inspired by [CSS Naked Day](https://css-naked-day.github.io/). It has just enough styling to make it appealing and different, yet is almost as stripped back as [the Emperor parading in his full monty](https://andersen.sdu.dk/vaerk/hersholt/TheEmperorsNewClothes_e.html).
9
+
10
+ Monty is designed for [blogging on GitHub Pages](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/about-github-pages-and-jekyll). It is a simple theme consisting of only a home page and your blog posts. You can [preview the theme here](https://brolun.github.io/jekyll-theme-monty/).
11
+
12
+ ## Usage
13
+
14
+ To use the Monty theme, add the following to your site's `_config.yaml`:
15
+
16
+ ```yaml
17
+ remote_theme: brolun/jekyll-theme-monty@1.0.1
18
+ plugins:
19
+ - jekyll-remote-theme
20
+ ```
21
+
22
+ Optionally, if you would like to preview your site locally, add the following to your site's `Gemfile`:
23
+
24
+ ```ruby
25
+ gem "github-pages", group: :jekyll_plugins
26
+ ```
27
+
28
+ ## Customizing
29
+
30
+ ### Configuration variables
31
+
32
+ Monty requires the following variables to be set in your site's `_config.yml`:
33
+
34
+ ```yaml
35
+ title: [Your site's title]
36
+ tagline: [A short description of your site]
37
+ description: [A longer meta description of your site]
38
+ ```
39
+
40
+ Additionally, you may choose to set the following optional variables:
41
+
42
+ ```yaml
43
+ language: [A language code; 'en' and 'nb' are supported]
44
+ license: [Your license or copyright info; can be left blank]
45
+ ```
46
+
47
+ ### Language configuration
48
+
49
+ Monty contains two hardcoded language strings; `en` and `nb`. To add support for another language:
50
+
51
+ 1. Create a `_data/languages/**.yml` file, replacing `**` with your chosen ISO 639-1 two-letter language code.
52
+
53
+ 2. Add the following (with your translations) to the file:
54
+
55
+ ```yaml
56
+ locale: [Your two-letter language code]
57
+ string:
58
+ home: [Your translation of 'Home']
59
+ about: [Your translation of 'About']
60
+ posts: [Your translation of 'Posts']
61
+ ```
62
+
63
+ 3. Set the language code in your `_config.yml` file to activate your language.
64
+
65
+ ### Front matter variables
66
+
67
+ Monty is **not** designed for sorting blog posts according to `categories`, `tags`, or other front matter variables.
68
+
69
+ ### Favicon
70
+
71
+ If you want your site to display a favicon, simply add a `favicon.ico` image to the root folder.
72
+
73
+ ### SEO tag and RSS Feed plugins
74
+
75
+ Monty comes with the Jekyll SEO tag plugin installed. You can [read about how to further configure the SEO tag plugin here](https://github.com/jekyll/jekyll-seo-tag).
76
+
77
+ Monty also comes with the Jekyll Feed plugin installed. The plugin generates an Atom/RSS feed of your blog posts. You can [read about the Feed plugin here](https://github.com/jekyll/jekyll-feed).
78
+
79
+ ## Contributing
80
+
81
+ Bug reports and pull requests are welcome on GitHub at https://github.com/brolun/jekyll-theme-monty.
82
+
83
+ ## Development
84
+
85
+ If you would like to preview the theme locally (for example, in the process of proposing a change):
86
+
87
+ 1. Clone the theme's repository using `git clone https://github.com/brolun/jekyll-theme-monty.git`.
88
+ 2. `cd` into the theme's directory.
89
+ 3. Run `bundle install` to install the necessary dependencies.
90
+ 4. Run `bundle exec jekyll serve` to start the preview server.
91
+ 5. Visit [`http://localhost:4000`](http://localhost:4000) in your browser to preview the theme.
92
+
93
+ ## License
94
+
95
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_config.yml ADDED
@@ -0,0 +1,11 @@
1
+ title: Monty
2
+ tagline: A Jekyll theme
3
+ description: Monty is a Jekyll theme inspired by CSS Naked Day.
4
+
5
+ language: en
6
+
7
+ license: © Monty 2024.
8
+
9
+ plugins:
10
+ - jekyll-feed
11
+ - jekyll-seo-tag
@@ -0,0 +1,5 @@
1
+ locale: en
2
+ string:
3
+ home: Home
4
+ about: About
5
+ posts: Posts
@@ -0,0 +1,5 @@
1
+ locale: nb
2
+ string:
3
+ home: Hjem
4
+ about: Om
5
+ posts: Innlegg
@@ -0,0 +1,34 @@
1
+ <hr />
2
+ <nav>
3
+ <ul>
4
+ <li>
5
+ <a href="{{ '/index.html' | relative_url }}"
6
+ >{{ language.string.home }}</a
7
+ >
8
+ </li>
9
+ <li>
10
+ <a href="{{ '/feed.xml' | relative_url }}">RSS</a>
11
+ </li>
12
+ </ul>
13
+ <ul>
14
+ {% if page.previous.url %}
15
+ <li>
16
+ <a class="prev" href="{{page.previous.url}}"
17
+ >« {{page.previous.title}}
18
+ </a>
19
+ </li>
20
+ {% endif %} {% if page.next.url %}
21
+ <li>
22
+ <a class="next" href="{{page.next.url}}">{{page.next.title}} » </a>
23
+ </li>
24
+ {% endif %}
25
+ </ul>
26
+ </nav>
27
+
28
+ <p>
29
+ {{ site.license }} 🗲
30
+ <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> &
31
+ <a href="https://github.com/brolun/jekyll-theme-monty" target="_blank"
32
+ >Monty</a
33
+ >.
34
+ </p>
@@ -0,0 +1,4 @@
1
+ {% assign default = site.data.languages | where: "locale", "en" |
2
+ first %}
3
+ {% assign language = site.data.languages | where: "locale", site.language |
4
+ first | default: default %}
@@ -0,0 +1,23 @@
1
+ ---
2
+ ---
3
+
4
+ <!-- {% include language.liquid %} -->
5
+ <!DOCTYPE html>
6
+ <html lang="{{ language.locale }}">
7
+ <head>
8
+ <meta charset="UTF-8" />
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
10
+ <link
11
+ rel="stylesheet"
12
+ href="{{ '/assets/css/styles.css' | relative_url }}"
13
+ />
14
+ <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?" />
15
+ {% feed_meta %} {% seo %}
16
+ </head>
17
+ <body>
18
+ <main>
19
+ {{ content }}
20
+ </main>
21
+ <footer>{% include footer.html %}</footer>
22
+ </body>
23
+ </html>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <!-- {% include language.liquid %} -->
6
+ {% assign title = page.title | default: site.title %}
7
+ <h1>{{ title }}</h1>
8
+ <section>
9
+ <h2>{{ language.string.about }}</h2>
10
+ {{ content }}
11
+ </section>
12
+ <section>
13
+ <h2>{{ language.string.posts }}</h2>
14
+ <nav>
15
+ <ul>
16
+ {% for post in site.posts %}
17
+ <li>
18
+ <span class="date">{{ post.date | date: "%F" }}</span>:
19
+ <a href="{{ post.url }}">{{ post.title }}</a>
20
+ </li>
21
+ {% endfor %}
22
+ </ul>
23
+ </nav>
24
+ </section>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>{{ page.title }}</h1>
6
+ <p>{{ page.date | date: "%F" }}</p>
7
+ {{ content }}
data/_sass/fonts.scss ADDED
@@ -0,0 +1,56 @@
1
+ @font-face {
2
+ font-family: "Jost";
3
+ font-style: normal;
4
+ font-weight: normal;
5
+ src: url(../fonts/Jost-400-Book.otf) format("opentype");
6
+ src: url(../fonts/Jost-400-Book.ttf) format("truetype");
7
+ }
8
+ @font-face {
9
+ font-family: "Jost";
10
+ font-style: normal;
11
+ font-weight: bold;
12
+ src: url(../fonts/Jost-700-Bold.otf) format("opentype");
13
+ src: url(../fonts/Jost-700-Bold.ttf) format("truetype");
14
+ }
15
+ @font-face {
16
+ font-family: "Jost";
17
+ font-style: italic;
18
+ font-weight: normal;
19
+ src: url(../fonts/Jost-400-BookItalic.otf) format("opentype");
20
+ src: url(../fonts/Jost-400-BookItalic.ttf) format("truetype");
21
+ }
22
+ @font-face {
23
+ font-family: "Jost";
24
+ font-style: italic;
25
+ font-weight: bold;
26
+ src: url(../fonts/Jost-700-BoldItalic.otf) format("opentype");
27
+ src: url(../fonts/Jost-700-BoldItalic.ttf) format("truetype");
28
+ }
29
+ @font-face {
30
+ font-family: "Drafting";
31
+ font-style: normal;
32
+ font-weight: normal;
33
+ src: url(../fonts/DraftingMono-Regular.otf) format("opentype");
34
+ src: url(../fonts/DraftingMono-Regular.ttf) format("truetype");
35
+ }
36
+ @font-face {
37
+ font-family: "Drafting";
38
+ font-style: normal;
39
+ font-weight: bold;
40
+ src: url(../fonts/DraftingMono-Bold.otf) format("opentype");
41
+ src: url(../fonts/DraftingMono-Bold.ttf) format("truetype");
42
+ }
43
+ @font-face {
44
+ font-family: "Drafting";
45
+ font-style: italic;
46
+ font-weight: normal;
47
+ src: url(../fonts/DraftingMono-Italic.otf) format("opentype");
48
+ src: url(../fonts/DraftingMono-Italic.ttf) format("truetype");
49
+ }
50
+ @font-face {
51
+ font-family: "Drafting";
52
+ font-style: italic;
53
+ font-weight: bold;
54
+ src: url(../fonts/DraftingMono-BoldItalic.otf) format("opentype");
55
+ src: url(../fonts/DraftingMono-BoldItalic.ttf) format("truetype");
56
+ }
data/_sass/main.scss ADDED
@@ -0,0 +1,82 @@
1
+ // General
2
+ html {
3
+ color: $primary;
4
+ font-family: "Jost";
5
+ line-height: 1.5;
6
+ max-width: 80ch;
7
+ padding: 16px;
8
+ }
9
+ :is(h2, h3, h4, h5, h6) {
10
+ margin-top: 1.5em;
11
+ }
12
+
13
+ // Footer
14
+ footer {
15
+ margin-top: 50px;
16
+ }
17
+ footer nav {
18
+ display: inline-flex;
19
+ flex-wrap: wrap;
20
+ }
21
+ footer nav ul {
22
+ align-items: left;
23
+ display: inline-flex;
24
+ flex-wrap: wrap;
25
+ gap: 20px;
26
+ list-style-type: none;
27
+ margin-bottom: 0;
28
+ padding: 0 20px 0 0;
29
+ }
30
+
31
+ // Images
32
+ img {
33
+ max-width: 100%;
34
+ }
35
+
36
+ // Lists
37
+ :is(ul, ol) {
38
+ font-variant-numeric: tabular-nums;
39
+ padding-left: 16px;
40
+ }
41
+ dt {
42
+ font-weight: bold;
43
+ }
44
+ :is(ul, ol) li li,
45
+ dd {
46
+ margin-left: $indentation;
47
+ }
48
+
49
+ // Blockquotes
50
+ blockquote {
51
+ border-left: $border;
52
+ font-style: italic;
53
+ margin-left: 0;
54
+ padding-left: $indentation;
55
+ }
56
+
57
+ // Tables
58
+ table {
59
+ border-collapse: collapse;
60
+ width: 100%;
61
+ }
62
+ :is(table, th, td) {
63
+ border: $border;
64
+ }
65
+ :is(th, td) {
66
+ padding: 4px 8px;
67
+ }
68
+
69
+ // Horizontal rules
70
+ hr {
71
+ border-bottom: 1px;
72
+ color: $primary;
73
+ margin: 0;
74
+ }
75
+
76
+ // Footnotes
77
+ .footnotes {
78
+ margin-top: 2em;
79
+ }
80
+ .footnotes ol li::marker {
81
+ font-variant-position: super;
82
+ }
data/_sass/syntax.scss ADDED
@@ -0,0 +1,78 @@
1
+ // Code syntax
2
+ code {
3
+ font-family: "Drafting";
4
+ font-size: 0.8em;
5
+ padding: 0.3em;
6
+ vertical-align: text-bottom;
7
+ }
8
+ pre {
9
+ border-left: $border;
10
+ max-height: 400px;
11
+ overflow: scroll;
12
+ padding: $indentation;
13
+ position: relative;
14
+ }
15
+
16
+ // Rouge theme igorpro syntax highlighting
17
+ .highlight table td {
18
+ padding: 5px;
19
+ }
20
+ .highlight table pre {
21
+ margin: 0;
22
+ }
23
+ .highlight,
24
+ .highlight .w {
25
+ color: #444444;
26
+ }
27
+ .highlight .cp {
28
+ color: #cc00a3;
29
+ }
30
+ .highlight .cs {
31
+ color: #cc00a3;
32
+ }
33
+ .highlight .c,
34
+ .highlight .ch,
35
+ .highlight .cd,
36
+ .highlight .cm,
37
+ .highlight .cpf,
38
+ .highlight .c1 {
39
+ color: #ff0000;
40
+ }
41
+ .highlight .kc {
42
+ color: #c34e00;
43
+ }
44
+ .highlight .kd {
45
+ color: #0000ff;
46
+ }
47
+ .highlight .kr {
48
+ color: #007575;
49
+ }
50
+ .highlight .k,
51
+ .highlight .kn,
52
+ .highlight .kp,
53
+ .highlight .kt,
54
+ .highlight .kv {
55
+ color: #0000ff;
56
+ }
57
+ .highlight .s,
58
+ .highlight .sb,
59
+ .highlight .sc,
60
+ .highlight .dl,
61
+ .highlight .sd,
62
+ .highlight .s2,
63
+ .highlight .se,
64
+ .highlight .sh,
65
+ .highlight .si,
66
+ .highlight .sx,
67
+ .highlight .sr,
68
+ .highlight .s1,
69
+ .highlight .ss {
70
+ color: #009c00;
71
+ }
72
+ .highlight .sa {
73
+ color: #0000ff;
74
+ }
75
+ .highlight .nb,
76
+ .highlight .bp {
77
+ color: #c34e00;
78
+ }
@@ -0,0 +1,6 @@
1
+ // Colors
2
+ $primary: #222;
3
+
4
+ // Typography
5
+ $indentation: 20px;
6
+ $border: 1px solid $primary;
@@ -0,0 +1,7 @@
1
+ ---
2
+ ---
3
+
4
+ @import "fonts";
5
+ @import "variables";
6
+ @import "main";
7
+ @import "syntax";
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/feed.xml ADDED
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: none
3
+ ---
4
+ <?xml version="1.0" encoding="UTF-8"?>
5
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6
+ <channel>
7
+ <title>{{ site.name | xml_escape }}</title>
8
+ <description>{{ site.description | xml_escape }}</description>
9
+ <link>{{ site.url }}</link>
10
+ <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
11
+ {% for post in site.posts limit:10 %}
12
+ <item>
13
+ <title>{{ post.title | xml_escape }}</title>
14
+ <description>{{ post.content | xml_escape }}</description>
15
+ <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
16
+ <link>{{ site.url }}/{{ post.url }}</link>
17
+ <guid isPermaLink="true">{{ site.url }}/{{ post.url }}</guid>
18
+ </item>
19
+ {% endfor %}
20
+ </channel>
21
+ </rss>
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-monty
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ platform: ruby
6
+ authors:
7
+ - brolun
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-06-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.3'
27
+ description:
28
+ email:
29
+ - luna.brodersen@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - CHANGELOG.md
35
+ - LICENSE
36
+ - README.md
37
+ - _config.yml
38
+ - _data/languages/en.yml
39
+ - _data/languages/nb.yml
40
+ - _includes/footer.html
41
+ - _includes/language.liquid
42
+ - _layouts/default.html
43
+ - _layouts/home.html
44
+ - _layouts/post.html
45
+ - _sass/fonts.scss
46
+ - _sass/main.scss
47
+ - _sass/syntax.scss
48
+ - _sass/variables.scss
49
+ - assets/css/styles.scss
50
+ - assets/fonts/DraftingMono-Bold.otf
51
+ - assets/fonts/DraftingMono-Bold.ttf
52
+ - assets/fonts/DraftingMono-BoldItalic.otf
53
+ - assets/fonts/DraftingMono-BoldItalic.ttf
54
+ - assets/fonts/DraftingMono-Italic.otf
55
+ - assets/fonts/DraftingMono-Italic.ttf
56
+ - assets/fonts/DraftingMono-Regular.otf
57
+ - assets/fonts/DraftingMono-Regular.ttf
58
+ - assets/fonts/Jost-400-Book.otf
59
+ - assets/fonts/Jost-400-Book.ttf
60
+ - assets/fonts/Jost-400-BookItalic.otf
61
+ - assets/fonts/Jost-400-BookItalic.ttf
62
+ - assets/fonts/Jost-700-Bold.otf
63
+ - assets/fonts/Jost-700-Bold.ttf
64
+ - assets/fonts/Jost-700-BoldItalic.otf
65
+ - assets/fonts/Jost-700-BoldItalic.ttf
66
+ - feed.xml
67
+ homepage: https://github.com/brolun/jekyll-theme-monty
68
+ licenses:
69
+ - MIT
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.5.9
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Monty is a Jekyll theme inspired by CSS Naked Day.
90
+ test_files: []