jekyll-theme-simpleton 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9b52e03f912e9ddd340029e5e673daf1c4e94257be5fff9025a574306c82ac04
4
+ data.tar.gz: 47fb0247ad71b65e4da5c375b2effca17f0634006bcccdf27709c2e1c2bbae3a
5
+ SHA512:
6
+ metadata.gz: f8257e0bfa38baa0d96f634dfb5fdfde147d16b820ef6038e65d5cc7aaa8f295d2fd9da105988d055591a8eec8e6346f14764947e3958e49d9015ad74907f11b
7
+ data.tar.gz: dd9eeaebb25252a7fcad335f04baf1c323bcd44701c03bae46ea8fd3606320fcf7ba2868158c72498f8d49ff70a3fe37f7d9cf58bef1e4d5329c0eaedcdfa984
@@ -0,0 +1,21 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Anatoli Wagner
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
13
+ all 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
21
+ THE SOFTWARE.
@@ -0,0 +1,67 @@
1
+ # Jekyll Theme Simpleton
2
+ ## Table of Contents
3
+ - [About](#about)
4
+ - [Instructions](#instructions)
5
+ - [Usage](#usage)
6
+ - [License](#license)
7
+ - [Is it any good?](#is-it-any-good)
8
+
9
+
10
+ ## About
11
+ Just my personal simplistic theme for when I really don't care about style.
12
+
13
+
14
+ ## Instructions
15
+ ### Installation
16
+ Add this line to your Jekyll site's `Gemfile`:
17
+
18
+ ```ruby
19
+ gem "jekyll-theme-simpleton"
20
+ ```
21
+
22
+ And add this line to your Jekyll site's `_config.yml`:
23
+
24
+ ```yaml
25
+ theme: jekyll-theme-simpleton
26
+ ```
27
+
28
+ And then execute:
29
+ ```sh
30
+ bundle
31
+ ```
32
+
33
+ Or install it yourself as:
34
+ ```sh
35
+ gem install jekyll-theme-simpleton
36
+ ```
37
+
38
+ ### Development
39
+ To set up your environment to develop this theme, run `bundle install`.
40
+
41
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
42
+
43
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
44
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-simpleton.gemspec` accordingly.
45
+
46
+
47
+ ## Usage
48
+ The whole idea is having no theme specific configurations ... enjoy!
49
+
50
+
51
+ ### Menu Order
52
+ Add `menu_weight: <number>` to your front matter if you want to control the
53
+ order of menu entries. The higher the weight the lower the item will appear.
54
+ Weightless items appear always _after_ weighted items
55
+
56
+
57
+ ### Hidden Menu Items
58
+ Add `hidden: true` to your front matter if you want to hide the page from the
59
+ menu.
60
+
61
+
62
+ ## License
63
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
64
+
65
+
66
+ ## Is it any good?
67
+ [Yes](https://news.ycombinator.com/item?id=3067434).
@@ -0,0 +1,28 @@
1
+ # Global Configuration
2
+ title: Jekyll Theme Simpleton
3
+
4
+ plugins:
5
+ - jekyll-seo-tag
6
+
7
+ date_format: "%F"
8
+
9
+ defaults:
10
+ -
11
+ scope:
12
+ path: ""
13
+ type: "posts"
14
+ values:
15
+ layout: "post"
16
+
17
+
18
+ # Build Command Options
19
+ ## Liquid Profiler
20
+ ### Generate a Liquid rendering profile to help you identify performance
21
+ ### bottlenecks.
22
+ profile: true
23
+
24
+
25
+ ## Strict Front Matter
26
+ ### Cause a build to fail if there is a YAML syntax error in a page's front
27
+ ### matter.
28
+ strict_front_matter: true
@@ -0,0 +1,3 @@
1
+ <footer id="footer">
2
+ <!-- TOOD: currently not used -->
3
+ </footer> <!-- #footer -->
@@ -0,0 +1,6 @@
1
+ <head>
2
+ <meta charset="utf-8" />
3
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
4
+ {%- seo -%}
5
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}" />
6
+ </head>
@@ -0,0 +1,13 @@
1
+ <header id="header">
2
+ <h1 id="site-title">
3
+ {{ site.title }}
4
+ </h1> <!-- #site-title -->
5
+
6
+ {% if site.subtitle %}
7
+ <p id="site-subtitle">
8
+ {{ site.subtitle }}
9
+ </p> <!-- #site-subtitle -->
10
+ {% endif %}
11
+
12
+ {% include menu.html %}
13
+ </header> <!-- #header -->
@@ -0,0 +1,17 @@
1
+ {% assign sorted_pages = site.html_pages | sort: "menu_weight", "last" %}
2
+
3
+ <nav id="menu">
4
+ <ul class="menu-list">
5
+ {% for p in sorted_pages %}
6
+ {% unless p.hidden %}
7
+ <li
8
+ class="menu-item {% if p.url == page.url %}menu-selected{% endif %}"
9
+ >
10
+ <a class="menu-link" href="{{ p.url }}">
11
+ {{ p.title }}
12
+ </a> <!-- .menu-link -->
13
+ </li> <!-- .menu-item -->
14
+ {% endunless %}
15
+ {% endfor %}
16
+ </ul> <!-- .menu-list -->
17
+ </nav> <!-- #menu -->
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: 'en' }}">
3
+ {% include head.html %}
4
+ <body>
5
+ <div id="layout">
6
+ {% include header.html %}
7
+ <main id="main">
8
+ {{ content }}
9
+ </main> <!-- #main -->
10
+ {% include footer.html %}
11
+ </div> <!-- #layout -->
12
+ </body>
13
+ </html>
@@ -0,0 +1,39 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section id="hero">
6
+ {{ content }}
7
+ </section> <!-- #hero -->
8
+
9
+ {% if site.paginate %}
10
+ {% assign posts = paginator.posts %}
11
+ {% else %}
12
+ {% assign posts = site.posts %}
13
+ {% endif %}
14
+
15
+ {% if posts.size > 0 %}
16
+ {% assign date_format = site.date_format %}
17
+ <section id="post-listing">
18
+ <header id="post-listing-header">
19
+ <h2 id="post-listing-heading">
20
+ {{ posts.list_title | default: "Posts" }}
21
+ </h2> <!-- #post-listing-heading -->
22
+ </header> <!-- #post-listing-header -->
23
+ <ul class="post-list">
24
+ {% for post in posts %}
25
+ <li class="post-item">
26
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
27
+ <h3>
28
+ <a class="post-link" href="{{ post.url | relative_url }}">
29
+ {{ post.title | escape }}
30
+ </a>
31
+ </h3>
32
+ {%- if site.show_excerpts -%}
33
+ {{ post.excerpt }}
34
+ {% endif %}
35
+ </li> <!-- .post-item -->
36
+ {% endfor %}
37
+ </ul> <!-- .post-list -->
38
+ </section> <!-- #post-listing -->
39
+ {%- endif -%}
@@ -0,0 +1,35 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <section id="content">
6
+ <header id="page-header">
7
+ {% if page.title %}
8
+ <h2 id="page-title">
9
+ {{ page.title }}
10
+ </h2> <!-- #page-title -->
11
+ {% endif %}
12
+
13
+ {% if page.subtitle %}
14
+ <p id="page-subtitle">
15
+ {{ page.subtitle }}
16
+ </p> <!-- #page-subtitle -->
17
+ {% endif %}
18
+
19
+ {% if page.author %}
20
+ <p id="page-author">
21
+ {{ page.author }}
22
+ </p> <!-- #page-author -->
23
+ {% endif %}
24
+
25
+ {% if page.date %}
26
+ <p id="page-date">
27
+ {{ page.date }}
28
+ </p> <!-- #page-date -->
29
+ {% endif %}
30
+ </header>
31
+
32
+ <article>
33
+ {{ content }}
34
+ </article>
35
+ </section> <!-- #content -->
@@ -0,0 +1,37 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% assign date_format = site.date_format %}
6
+
7
+ <section id="content">
8
+ <header id="page-header">
9
+ {% if page.title %}
10
+ <h2 id="page-title">
11
+ {{ page.title }}
12
+ </h2> <!-- #page-title -->
13
+ {% endif %}
14
+
15
+ {% if page.subtitle %}
16
+ <p id="page-subtitle">
17
+ {{ page.subtitle }}
18
+ </p> <!-- #page-subtitle -->
19
+ {% endif %}
20
+
21
+ {% if page.author %}
22
+ <p id="page-author">
23
+ {{ page.author }}
24
+ </p> <!-- #page-author -->
25
+ {% endif %}
26
+
27
+ {% if page.date %}
28
+ <p id="page-date">
29
+ {{ page.date | date: date_format }}
30
+ </p> <!-- #page-date -->
31
+ {% endif %}
32
+ </header> <!-- #page-header -->
33
+
34
+ <article class="content">
35
+ {{ content }}
36
+ </article>
37
+ </section>
@@ -0,0 +1 @@
1
+ # My Sass Library
@@ -0,0 +1,13 @@
1
+ @import "modules/breakpoints";
2
+ @import "modules/colors";
3
+ @import "modules/mixins";
4
+ @import "modules/spacing";
5
+ @import "modules/typography";
6
+
7
+ // TODO move
8
+ $hamburger-color: $black-color;
9
+ $hamburger-margin: 0.5ex;
10
+ $hamburger-height: 1ex;
11
+ $hamburger-width: 2em;
12
+ $hamburger-radius: 1ex;
13
+ $clickable-cursor: pointer;
@@ -0,0 +1,9 @@
1
+ /*
2
+ The values are based on the Default Media Queries of purecss at
3
+ https://purecss.io/grids/
4
+ */
5
+
6
+ $break-sm: 35.5em !default; // >= 568px
7
+ $break-md: 48em !default; // >= 768px
8
+ $break-lg: 64em !default; // >= 1024px
9
+ $break-xl: 80em !default; // >= 1280px
@@ -0,0 +1,15 @@
1
+ // Ubuntu Colors
2
+ $ubuntu-orange-color: #E95420;
3
+ $black-color: #000000;
4
+ $white-color: #FFFFFF;
5
+ $light-aubergine-color: #77216F;
6
+ $mid-aubergine-color: #5E2750;
7
+ $dark-aubergine-color: #2C001E;
8
+ $warm-grey-color: #AEA79F;
9
+ $cool-grey-color: #333333;
10
+ $text-grey-color: #111111;
11
+
12
+
13
+ // Menu
14
+ $menu-background-color: $ubuntu-orange-color !default;
15
+ $menu-text-color: $white-color !default;
@@ -0,0 +1,13 @@
1
+ @mixin transition {
2
+ -webkit-transition: all 0.2s ease-out;
3
+ -moz-transition: all 0.2s ease-out;
4
+ -ms-transition: all 0.2s ease-out;
5
+ -o-transition: all 0.2s ease-out;
6
+ transition: all 0.2s ease-out;
7
+ }
8
+
9
+ @mixin media-query($breakpoint) {
10
+ @media screen and (min-width: $breakpoint) {
11
+ @content;
12
+ }
13
+ }
@@ -0,0 +1 @@
1
+ $menu-width: 160px !default;
@@ -0,0 +1 @@
1
+ $link-text-decoration: none;
@@ -0,0 +1,39 @@
1
+ #hero {
2
+ display: grid;
3
+ grid-template: 1fr / 1fr;
4
+ width: 100%;
5
+ height: 100vh;
6
+
7
+ .hero-tile {
8
+ animation: carousel ease-out 10s infinite;
9
+
10
+ &:first-of-type {
11
+ //animation: carousel ease-out 3s infinite;
12
+ }
13
+ }
14
+ }
15
+
16
+
17
+ @keyframes carousel {
18
+ 0% {
19
+ opacity: 1;
20
+ }
21
+
22
+ 30% {
23
+ opacity: 1;
24
+ }
25
+
26
+ 50% {
27
+ opacity: 0;
28
+ }
29
+
30
+ 70% {
31
+ opacity: 1
32
+ }
33
+
34
+ /*
35
+ 100% {
36
+ background: 1;
37
+ }
38
+ */
39
+ }
@@ -0,0 +1 @@
1
+ @import "modules/all";
@@ -0,0 +1,86 @@
1
+ #menu-container {
2
+ * {
3
+ transition: all 1s ease-out;
4
+ }
5
+
6
+ #menu-toggle {
7
+ display: none;
8
+
9
+ &:checked {
10
+ ~ #menu {
11
+ left: 0;
12
+ }
13
+
14
+ ~ #menu-icon {
15
+ background: green;
16
+ left: $menu-width;
17
+
18
+ span {
19
+ /* TODO */
20
+ &:first-child {
21
+ transform: rotate(135deg) translate(21px, -13px);
22
+ }
23
+
24
+ &:nth-child(2) {
25
+ opacity: 0;
26
+ }
27
+
28
+ &:last-child {
29
+ transform: rotate(-135deg) translate(3px);
30
+ }
31
+ }
32
+ }
33
+ }
34
+ } // #menu-toggle
35
+
36
+ #menu {
37
+ position: fixed;
38
+ top: 0;
39
+ left: -$menu-width;
40
+ bottom: 0;
41
+ background: $menu-background-color;
42
+ width: $menu-width;
43
+ display: flex;
44
+ flex-flow: column nowrap;
45
+ align-items: center;
46
+
47
+ > * {
48
+ margin: 0.5em;
49
+ }
50
+
51
+ header {
52
+ display: flex;
53
+ flex-flow: row wrap;
54
+ justify-content: center;
55
+ text-align: center; /* DEBUG */
56
+ }
57
+
58
+ ul {
59
+ margin: 0;
60
+ padding: 0;
61
+ list-style-type: none;
62
+ }
63
+
64
+ a {
65
+ color: $menu-text-color;
66
+ text-decoration: $link-text-decoration;
67
+ // margin: 1em;
68
+ }
69
+ } // #menu
70
+
71
+ #menu-icon {
72
+ position: fixed;
73
+ top: 0;
74
+ left: 0;
75
+
76
+ span {
77
+ display: block;
78
+ background: $hamburger-color;
79
+ margin: $hamburger-margin;
80
+ height: $hamburger-height;
81
+ width: $hamburger-width;
82
+ border-radius: $hamburger-radius;
83
+ cursor: $clickable-cursor;
84
+ }
85
+ } // #menu-icon
86
+ } // #menu-container
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "partials/base";
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-simpleton
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ platform: ruby
6
+ authors:
7
+ - Anatoli Wagner
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-01-02 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.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-seo-tag
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ description:
56
+ email:
57
+ - info@anwait.org
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.md
63
+ - README.md
64
+ - _config.yml
65
+ - _includes/footer.html
66
+ - _includes/head.html
67
+ - _includes/header.html
68
+ - _includes/menu.html
69
+ - _layouts/default.html
70
+ - _layouts/home.html
71
+ - _layouts/page.html
72
+ - _layouts/post.html
73
+ - _sass/README.md
74
+ - _sass/modules/_all.scss
75
+ - _sass/modules/_breakpoints.scss
76
+ - _sass/modules/_colors.scss
77
+ - _sass/modules/_mixins.scss
78
+ - _sass/modules/_spacing.scss
79
+ - _sass/modules/_typography.scss
80
+ - _sass/pages/_home.scss
81
+ - _sass/partials/base.scss
82
+ - _sass/partials/side-menu.scss
83
+ - assets/css/style.scss
84
+ homepage: https://gitlab.com/anwait/jekyll-theme-simpleton
85
+ licenses:
86
+ - MIT
87
+ metadata: {}
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.1.4
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: A very simple jekyll theme with almost no css.
107
+ test_files: []