jekyll-theme-tallneck 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac7de6e1027882db7c9b283dfcad06967f9b084b9aa6e224b342985de7aff4eb
4
- data.tar.gz: b9c3222c8a72882febed8ec5bd9926c7ecda2a112128f520fd22e8010bd4e844
3
+ metadata.gz: 5ace7d19e5698d0ee503e2697a818399a9a1743c96db083df1445e6e92957f2a
4
+ data.tar.gz: 9ceb86c4e1c31b7201c01e7a2493c998d9426df07a02e08d1623474a7a117454
5
5
  SHA512:
6
- metadata.gz: 1b7b724311d5b9a57785a8739547e6fd0421ac1d88018a426806b87fd3cf0a68f3cc01e20d6421424f3133a0f70709a6092ee480329aa979670233fd906d758c
7
- data.tar.gz: 7bb5bab9d6497275fa96d6d43b2ce3b907924cfc1a26d4794d799a43ac69c18773b4f2febf8b75e8de18c642cbe14784fa4e7d5f56bda0f024e8d415737833d5
6
+ metadata.gz: 4a66d1c7b86be8fab787502890483069d4bf05991d29491b7fca300561041af17075dfa9723240ea03677487d16ba8e5947bf2178f8e028e6304b3310c321fdd
7
+ data.tar.gz: 58c5fa7859d4a2c9f07a9ebd641c4f11fe87444df2f6008aede0dc0875d6f6b958c7a745ac9d51ccae273b5f610080c725d8d4298d1393b335b8b46608de4a4a
data/README.md CHANGED
@@ -1,89 +1,89 @@
1
- # Tallneck
2
-
3
- Tallneck is a Jeckyll theme for my personal blog. The name was inspired from one of the machines on my favorite game, Horizon Zero Dawn.
4
-
5
- ## Installation
6
-
7
- Add this line to your Jekyll site's `Gemfile`:
8
-
9
- ```ruby
10
- gem "jekyll-theme-tallneck"
11
- ```
12
-
13
- And add this line to your Jekyll site's `_config.yml`:
14
-
15
- ```yaml
16
- theme: jekyll-theme-tallneck
17
- ```
18
-
19
- And then execute:
20
-
21
- $ bundle
22
-
23
- Or install it yourself as:
24
-
25
- $ gem install jekyll-theme-tallneck
26
-
27
-
28
- ## Usage
29
-
30
- ### Customization
31
-
32
- Create a folder named `assets` in your Jekyll site's root directory.
33
- Then create a folder named `images` inside the `assets` folder and put a replacement for the default banner image named `banner.png` (1200x630) inside it.
34
-
35
- After that, replace the `favicon.ico` and `favicon.svg` file in the root directory with your own favicon.
36
-
37
- Then, configure the various plugins in `_config.yml` to your liking. The plugins are:
38
-
39
- - [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
40
- - [jekyll-toc](https://github.com/toshimaru/jekyll-toc)
41
- - [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap)
42
-
43
- ### Main pages
44
-
45
- Create at the root of your Jekyll site the following pages:
46
-
47
- - `about.md`, which will be the About page and set the permalink to `/about`
48
- - `contact.md`, which will be the Contact page and set the permalink to `/contact`
49
- - `cookie.md`, which will be the Cookie Policy page and set the permalink to `/cookie`
50
- - `privacy.md`, which will be the Privacy Policy page and set the permalink to `/privacy`
51
- - `terms.md`, which will be the Terms of Service page and set the permalink to `/terms`
52
-
53
- Also create the file `404.html` with the following content:
54
-
55
- ```yaml
56
- ---
57
- layout: 404
58
- sitemap: false
59
- ---
60
- ```
61
-
62
- ### Writing posts
63
-
64
- To create a new post, add a markdown file in the `_posts` directory and add at the top of the file the following:
65
-
66
- ```yaml
67
- ---
68
- layout: post
69
- title: "First post!"
70
- subtitle: "Written in Go."
71
- date: 2023-01-16 17:40:28 +0100
72
- image:
73
- path: /assets/images/golang.jpg
74
- alt: golang logo
75
- ---
76
- ```
77
-
78
- ## Development
79
-
80
- To set up your environment to develop this theme, run `bundle install`.
81
-
82
- 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.
83
-
84
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
85
- To add a custom directory to your theme-gem, please edit the regexp in `jotone_theme.gemspec` accordingly.
86
-
87
- ## License
88
-
89
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
1
+ # Tallneck
2
+
3
+ Tallneck is a Jeckyll theme for my personal blog. The name was inspired from one of the machines on my favorite game, Horizon Zero Dawn.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "jekyll-theme-tallneck"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: jekyll-theme-tallneck
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install jekyll-theme-tallneck
26
+
27
+
28
+ ## Usage
29
+
30
+ ### Customization
31
+
32
+ Create a folder named `assets` in your Jekyll site's root directory.
33
+ Then create a folder named `images` inside the `assets` folder and put a replacement for the default banner image named `banner.png` (1200x630) inside it.
34
+
35
+ After that, replace the `favicon.ico` and `favicon.svg` file in the root directory with your own favicon.
36
+
37
+ Then, configure the various plugins in `_config.yml` to your liking. The plugins are:
38
+
39
+ - [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag)
40
+ - [jekyll-toc](https://github.com/toshimaru/jekyll-toc)
41
+ - [jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap)
42
+
43
+ ### Main pages
44
+
45
+ Create at the root of your Jekyll site the following pages:
46
+
47
+ - `about.md`, which will be the About page and set the permalink to `/about`
48
+ - `contact.md`, which will be the Contact page and set the permalink to `/contact`
49
+ - `cookie.md`, which will be the Cookie Policy page and set the permalink to `/cookie`
50
+ - `privacy.md`, which will be the Privacy Policy page and set the permalink to `/privacy`
51
+ - `terms.md`, which will be the Terms of Service page and set the permalink to `/terms`
52
+
53
+ Also create the file `404.html` with the following content:
54
+
55
+ ```yaml
56
+ ---
57
+ layout: 404
58
+ sitemap: false
59
+ ---
60
+ ```
61
+
62
+ ### Writing posts
63
+
64
+ To create a new post, add a markdown file in the `_posts` directory and add at the top of the file the following:
65
+
66
+ ```yaml
67
+ ---
68
+ layout: post
69
+ title: "First post!"
70
+ subtitle: "Written in Go."
71
+ date: 2023-01-16 17:40:28 +0100
72
+ image:
73
+ path: /assets/images/golang.jpg
74
+ alt: golang logo
75
+ ---
76
+ ```
77
+
78
+ ## Development
79
+
80
+ To set up your environment to develop this theme, run `bundle install`.
81
+
82
+ 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.
83
+
84
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
85
+ To add a custom directory to your theme-gem, please edit the regexp in `jotone_theme.gemspec` accordingly.
86
+
87
+ ## License
88
+
89
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,20 +1,20 @@
1
- <a class="post-preview__box" href="{{ include.url | relative_url }}">
2
- <div class="post-preview__box__image">
3
- {% if include.image %}
4
- <img src="{{ include.image | relative_url }}" alt="{{ include.alt }}">
5
- {% else %}
6
- <img src="{{ '/assets/images/banner.png' | relative_url }}" alt="Website logo">
7
- {% endif %}
8
- </div>
9
- <div class="post-preview__box__content">
10
- <h2 class="post-preview__box__content__title">{{ include.title }}</h2>
11
- {% if include.date %}
12
- <small class="post-preview__box__content__date">{{ include.date | date: "%-d %B %Y" }}</small>
13
- {% endif %}
14
- {% if include.author %}
15
- &nbsp;&nbsp;|&nbsp;&nbsp;
16
- <span class="post-preview__box__content__author">{{ include.author }}</span>
17
- {% endif %}
18
- <p class="post-preview__box__content__description">{{ include.subtitle }}</p>
19
- </div>
1
+ <a class="post-preview__box" href="{{ include.url | relative_url }}">
2
+ <div class="post-preview__box__image">
3
+ {% if include.image %}
4
+ <img src="{{ include.image | relative_url }}" alt="{{ include.alt }}">
5
+ {% else %}
6
+ <img src="{{ '/assets/images/banner.png' | relative_url }}" alt="Website logo">
7
+ {% endif %}
8
+ </div>
9
+ <div class="post-preview__box__content">
10
+ <h2 class="post-preview__box__content__title">{{ include.title }}</h2>
11
+ {% if include.date %}
12
+ <small class="post-preview__box__content__date">{{ include.date | date: "%-d %B %Y" }}</small>
13
+ {% endif %}
14
+ {% if include.author %}
15
+ &nbsp;&nbsp;|&nbsp;&nbsp;
16
+ <span class="post-preview__box__content__author">{{ include.author }}</span>
17
+ {% endif %}
18
+ <p class="post-preview__box__content__description">{{ include.subtitle }}</p>
19
+ </div>
20
20
  </a>
@@ -1,24 +1,24 @@
1
- <footer class="container no_print">
2
- <hr>
3
- <div>
4
- <nav>
5
- <ul>
6
- <li>
7
- <a href="{{ '/privacy' | relative_url }}" rel="noopener noreferrer">Privacy</a>
8
- </li>
9
- <li>
10
- <a href="{{ '/cookie' | relative_url }}" rel="noopener noreferrer">Cookie</a>
11
- </li>
12
- <li>
13
- <a href="{{ '/terms' | relative_url }}" rel="noopener noreferrer">Terms</a>
14
- </li>
15
- <li>
16
- <a href="{{ '/about' | relative_url }}" rel="noopener noreferrer">About</a>
17
- </li>
18
- <li>
19
- <a href="{{ '/contacts' | relative_url }}" rel="noopener noreferrer">Contacts</a>
20
- </li>
21
- </ul>
22
- </nav>
23
- </div>
1
+ <footer class="container no_print">
2
+ <hr>
3
+ <div>
4
+ <nav>
5
+ <ul>
6
+ <li>
7
+ <a href="{{ '/privacy' | relative_url }}" rel="noopener noreferrer">Privacy</a>
8
+ </li>
9
+ <li>
10
+ <a href="{{ '/cookie' | relative_url }}" rel="noopener noreferrer">Cookie</a>
11
+ </li>
12
+ <li>
13
+ <a href="{{ '/terms' | relative_url }}" rel="noopener noreferrer">Terms</a>
14
+ </li>
15
+ <li>
16
+ <a href="{{ '/about' | relative_url }}" rel="noopener noreferrer">About</a>
17
+ </li>
18
+ <li>
19
+ <a href="{{ '/contacts' | relative_url }}" rel="noopener noreferrer">Contacts</a>
20
+ </li>
21
+ </ul>
22
+ </nav>
23
+ </div>
24
24
  </footer>
data/_includes/head.html CHANGED
@@ -1,16 +1,16 @@
1
- <head>
2
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3
- <meta name="theme-color" media="(prefers-color-scheme: light)" content="#f0f0f0">
4
- <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#252525">
5
- <meta name="apple-mobile-web-app-capable" content="yes">
6
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
7
-
8
- <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
9
-
10
- {% seo %}
11
-
12
- <link rel="icon" href="{{ "{{ site.favicon_ico | relative_url }}" | relative_url }}" sizes="any">
13
- <link rel="icon" href="{{ "{{ site.favicon | relative_url }}" | relative_url }}" type="image/svg+xml">
14
-
15
- <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
1
+ <head>
2
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3
+ <meta name="theme-color" media="(prefers-color-scheme: light)" content="#f0f0f0">
4
+ <meta name="theme-color" media="(prefers-color-scheme: dark)" content="#252525">
5
+ <meta name="apple-mobile-web-app-capable" content="yes">
6
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
7
+
8
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">
9
+
10
+ {% seo %}
11
+
12
+ <link rel="icon" href="{{ "{{ site.favicon_ico | relative_url }}" | relative_url }}" sizes="any">
13
+ <link rel="icon" href="{{ "{{ site.favicon | relative_url }}" | relative_url }}" type="image/svg+xml">
14
+
15
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
16
16
  </head>
@@ -1,12 +1,12 @@
1
- <header class="no_print">
2
- <a href="{{ '/' | relative_url }}" class="header__logo" aria-label="Home">
3
- <img src="{{ site.favicon | relative_url }}" width="32" height="32" alt="Website logo">
4
- </a>
5
- <nav>
6
- <ul>
7
- <li>
8
- <a href="{{ '/feed' | relative_url }}">All Posts</a>
9
- </li>
10
- </ul>
11
- </nav>
1
+ <header class="no_print">
2
+ <a href="{{ '/' | relative_url }}" class="header__logo" aria-label="Home">
3
+ <img src="{{ site.favicon | relative_url }}" width="32" height="32" alt="Website logo" class=".header__logo__img">
4
+ </a>
5
+ <nav>
6
+ <ul>
7
+ <li>
8
+ <a href="{{ '/feed' | relative_url }}">All Posts</a>
9
+ </li>
10
+ </ul>
11
+ </nav>
12
12
  </header>
data/_layouts/400.html CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- layout: page
3
- title: 400
4
-
5
- ---
6
-
1
+ ---
2
+ layout: page
3
+ title: 400
4
+
5
+ ---
6
+
7
7
  Bad request
data/_layouts/404.html CHANGED
@@ -1,6 +1,6 @@
1
- ---
2
- layout: page
3
- title: 404
4
- ---
5
-
1
+ ---
2
+ layout: page
3
+ title: 404
4
+ ---
5
+
6
6
  Page not found.
data/_layouts/500.html CHANGED
@@ -1,6 +1,6 @@
1
- ---
2
- layout: page
3
- title: 500
4
- ---
5
-
1
+ ---
2
+ layout: page
3
+ title: 500
4
+ ---
5
+
6
6
  Server error
data/_layouts/base.html CHANGED
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ page.language | default: site.language | default: 'en' }}">
3
- {% include head.html %}
4
- <body>
5
- {% include header.html %}
6
-
7
- {{ content }}
8
-
9
- {% include footer.html %}
10
- </body>
11
-
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.language | default: site.language | default: 'en' }}">
3
+ {% include head.html %}
4
+ <body>
5
+ {% include header.html %}
6
+
7
+ {{ content }}
8
+
9
+ {% include footer.html %}
10
+ </body>
11
+
12
12
  </html>
data/_layouts/feed.html CHANGED
@@ -1,9 +1,9 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- <div class="post-preview">
6
- {% for post in site.posts %}
7
- {% include article-preview.html author=post.author image=post.image.path alt=post.image.alt title=post.title subtitle=post.subtitle date=post.date tags=post.tags url=post.url %}
8
- {% endfor %}
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ <div class="post-preview">
6
+ {% for post in site.posts %}
7
+ {% include article-preview.html author=post.author image=post.image.path alt=post.image.alt title=post.title subtitle=post.subtitle date=post.date tags=post.tags url=post.url %}
8
+ {% endfor %}
9
9
  </div>
data/_layouts/home.html CHANGED
@@ -1,11 +1,11 @@
1
- ---
2
- layout: page
3
- ---
4
-
5
- {{ content }}
6
-
7
- <div class="post-preview" style="margin-top: 3rem;">
8
- {% for post in site.posts limit: 5 %}
9
- {% include article-preview.html author=post.author image=post.image.path alt=post.image.alt title=post.title subtitle=post.subtitle tags=post.tags url=post.url %}
10
- {% endfor %}
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <div class="post-preview" style="margin-top: 3rem;">
8
+ {% for post in site.posts limit: 5 %}
9
+ {% include article-preview.html author=post.author image=post.image.path alt=post.image.alt title=post.title subtitle=post.subtitle tags=post.tags url=post.url %}
10
+ {% endfor %}
11
11
  </div>
data/_layouts/page.html CHANGED
@@ -1,11 +1,11 @@
1
- ---
2
- layout: base
3
- ---
4
-
5
- <div id="content" class="container content">
6
- <h1>{{ page.title }}</h1>
7
- {%- if page.subtitle -%}
8
- <p class="subtitle">{{ page.subtitle }}</p>
9
- {%- endif -%}
10
- {{ content }}
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <div id="content" class="container content">
6
+ <h1>{{ page.title }}</h1>
7
+ {%- if page.subtitle -%}
8
+ <p class="subtitle">{{ page.subtitle }}</p>
9
+ {%- endif -%}
10
+ {{ content }}
11
11
  </div>
data/_layouts/post.html CHANGED
@@ -1,27 +1,27 @@
1
- ---
2
- layout: base
3
- ---
4
-
5
- <div id="content" class="container content" itemscope itemtype="http://schema.org/BlogPosting">
6
- <h1 itemprop="name headline">{{ page.title }}</h1>
7
- <p class="content__info">
8
- <time datetime="{{ date | date_to_xmlschema }}" itemprop="datePublished">
9
- {{ page.date | date: "%-d %B %Y" }}
10
- </time>
11
- {% if page.author %}
12
- &nbsp;&nbsp;|&nbsp;&nbsp;
13
- <span itemprop="author" itemscope itemtype="http://schema.org/Person">
14
- <span itemprop="name">{{ page.author }}</span>
15
- </span>
16
- {% endif %}
17
- <br>
18
- This work is licensed under <a href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
19
- </p>
20
-
21
- <div id="toc">
22
- {% toc %}
23
- </div>
24
- <div itemprop="articleBody">
25
- {{ content }}
26
- </div>
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <div id="content" class="container content" itemscope itemtype="http://schema.org/BlogPosting">
6
+ <h1 itemprop="name headline">{{ page.title }}</h1>
7
+ <p class="content__info">
8
+ <time datetime="{{ date | date_to_xmlschema }}" itemprop="datePublished">
9
+ {{ page.date | date: "%-d %B %Y" }}
10
+ </time>
11
+ {% if page.author %}
12
+ &nbsp;&nbsp;|&nbsp;&nbsp;
13
+ <span itemprop="author" itemscope itemtype="http://schema.org/Person">
14
+ <span itemprop="name">{{ page.author }}</span>
15
+ </span>
16
+ {% endif %}
17
+ <br>
18
+ This work is licensed under <a href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
19
+ </p>
20
+
21
+ <div id="toc">
22
+ {% toc %}
23
+ </div>
24
+ <div itemprop="articleBody">
25
+ {{ content }}
26
+ </div>
27
27
  </div>