jekyll-theme-anatole 0.1.2

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: 75be961d419df4b07ab4ffe1d1662628989ceb908307ffe7c70bd5bc9c9f5033
4
+ data.tar.gz: 64dd0824b5c3e7a5a5101b52d45baad2cd2ba851c22ebbd409134356cdde38ce
5
+ SHA512:
6
+ metadata.gz: 424f4427b36f68047ce515a2c382d9b01726d5fcd8da9c7f91c05b6b0940c0acddc6cf82d2690ce3c764366f668728ba78709a3288527ddfd585da735cf80a2d
7
+ data.tar.gz: 3bfdbbd99ef58779a1ac69c6d81acca6e53bd53f97b428d61e4dd914c1d2482e8b4797b5ef1988b58a1b8f2cced54d569a7ac19b8a1669c6d0818154d9b86e70
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2020 lxndrblz
2
+ Copyright (c) 2024 Alessandro De Piccoli, Marco Garlet
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ this software and associated documentation files (the "Software"), to deal in
6
+ the Software without restriction, including without limitation the rights to
7
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ the Software, and to permit persons to whom the Software is furnished to do so,
9
+ subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # Anatole Jekyll Theme
2
+
3
+ This theme is the porting from [Hugo](https://gohugo.io/) to [Jekyll](https://jekyllrb.com/) of [Anatole](https://github.com/lxndrblz/anatole).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "jekyll-theme-anatole"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: jekyll-theme-anatole
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install jekyll-theme-anatole
26
+
27
+ ## Usage
28
+
29
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ale-depi/jekyll-theme-anatole. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
34
+
35
+ ## Development
36
+
37
+ In order to ensure a unique environment for developing the theme, the following steps can be applied:
38
+ * `docker compose create`
39
+ * `docker start -ia anatole-container`
40
+
41
+ To set up your environment to develop this theme, run:
42
+ * `bundle install`
43
+
44
+ Your theme is setup just like a normal Jekyll site! To test your theme, run
45
+ * `bundle exec jekyll serve`
46
+
47
+ and open your browser at
48
+ * `http://localhost:4000`.
49
+
50
+ 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.
51
+
52
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
53
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-anatole.gemspec` accordingly.
54
+
55
+ ## License
56
+
57
+ 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,104 @@
1
+ # Welcome to Jekyll!
2
+ #
3
+ # This config file is meant for settings that affect your whole blog, values
4
+ # which you are expected to set up once and rarely edit after that. If you find
5
+ # yourself editing this file very often, consider using Jekyll's data files
6
+ # feature for the data you need to update frequently.
7
+ #
8
+ # For technical reasons, this file is *NOT* reloaded automatically when you use
9
+ # 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10
+ #
11
+ # If you need help with YAML syntax, here are some quick references for you:
12
+ # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13
+ # https://learnxinyminutes.com/docs/yaml/
14
+ #
15
+ # Site settings
16
+ # These are used to personalize your new site. If you look in the HTML files,
17
+ # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18
+ # You can create any custom variable you would like, and they will be accessible
19
+ # in the templates via {{ site.myvariable }}.
20
+
21
+ title: Website of Rubberr Duck
22
+ email: rubberr-duck@desktop.com
23
+ baseurl: "" # the subpath of your site, e.g. /blog
24
+ url: "" # the base hostname & protocol for your site, e.g. http://example.com
25
+
26
+ parameters:
27
+ title: I'm Rubberr Duck
28
+ author: Rubberr Duck
29
+ description: >-
30
+ Call me Err Duck
31
+ profile_picture: /assets/images/profile_picture.svg
32
+
33
+ # Build settings
34
+ plugins:
35
+ - jekyll-feed
36
+
37
+ menu:
38
+ - name: Home
39
+ identifier: home
40
+ weight: 100
41
+ url: /
42
+ - name: Posts
43
+ identifier: posts
44
+ weight: 200
45
+ url: /posts/
46
+ - name: About
47
+ identifier: about
48
+ weight: 300
49
+ url: /about/
50
+
51
+ social_icons:
52
+ - title: LinkedIn
53
+ icon: fa-linkedin
54
+ url: https://en.linkedin.com/
55
+ - title: GitHub
56
+ icon: fa-github
57
+ url: https://github.com/ale-depi/jekyll-theme-anatole/
58
+ - title: Instagram
59
+ icon: fa-instagram
60
+ url: https://www.instagram.com/
61
+ - title: e-mail
62
+ icon: fa-envelope
63
+ url: mailto:ale.depi@live.it
64
+
65
+ sass:
66
+ style: compressed
67
+
68
+ collections:
69
+ posts:
70
+ output: true
71
+ permalink: /:collection/:title/
72
+
73
+ jekyll-archives:
74
+ enabled: [categories, tags]
75
+ layouts:
76
+ category: category
77
+ tag: tag
78
+ permalinks:
79
+ category: /categories/:name/
80
+ tag: /tags/:name/
81
+
82
+ # Exclude from processing.
83
+ # The following items will not be processed, by default.
84
+ # Any item listed under the `exclude:` key here will be automatically added to
85
+ # the internal "default list".
86
+ #
87
+ # Excluded items can be processed by explicitly listing the directories or
88
+ # their entries' file path in the `include:` list.
89
+ #
90
+ exclude:
91
+ - docker-compose.yml
92
+ - Dockerfile
93
+ - jekyll-theme-anatole.gemspec
94
+ - README.md
95
+ # - .sass-cache/
96
+ # - .jekyll-cache/
97
+ # - gemfiles/
98
+ # - Gemfile
99
+ # - Gemfile.lock
100
+ # - node_modules/
101
+ # - vendor/bundle/
102
+ # - vendor/cache/
103
+ # - vendor/gems/
104
+ # - vendor/ruby/
@@ -0,0 +1,4 @@
1
+ <script type="text/javascript" src="/assets/js/jquery.js" crossorigin="anonymous"></script>
2
+ <script type="text/javascript" src="/assets/js/jquery-migrate.js" crossorigin="anonymous"></script>
3
+ <script type="text/javascript" src="/assets/js/jquery-appear.js" crossorigin="anonymous"></script>
4
+ <script type="text/javascript" src="/assets/js/medium-zoom.js" crossorigin="anonymous"></script>
@@ -0,0 +1,12 @@
1
+ <head>
2
+ <title>{{ site.parameters.author }}{% if page.title %}{{ " | " | append: page.title }}{% endif %}</title>
3
+ <meta charset="utf-8" />
4
+ <meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover" />
5
+ <meta name="description" content="{{ site.parameters.description }}" />
6
+
7
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}" crossorigin="anonymous" type="text/css">
8
+
9
+ <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
10
+
11
+ <script type="text/javascript" src="/assets/js/anatole-header.js" crossorigin="anonymous"></script>
12
+ </head>
@@ -0,0 +1,21 @@
1
+ <div class="page-top animated fadeInDown">
2
+ <a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
3
+ <span aria-hidden="true"></span>
4
+ <span aria-hidden="true"></span>
5
+ <span aria-hidden="true"></span>
6
+ </a>
7
+ <ul class="nav" id="navMenu">
8
+ {% for entry in site.menu %}
9
+ <li>
10
+ <a {% if page.url == entry.url %}class="current"{% endif %} href="{{ entry.url }}" title="{{ entry.title }}">
11
+ {{ entry.name }}
12
+ </a>
13
+ </li>
14
+ {% endfor %}
15
+ <li class="theme-switch-item">
16
+ <a class="theme-switch" title="Switch Theme">
17
+ <i class="fa fa-adjust fa-fw" aria-hidden="true"></i>
18
+ </a>
19
+ </li>
20
+ </ul>
21
+ </div>
@@ -0,0 +1,23 @@
1
+ <div class="sidebar animated fadeInDown">
2
+ <div class="logo-title">
3
+ <div class="title">
4
+ <img src="{{ site.parameters.profile_picture | absolute_url }}" alt="profile picture" />
5
+ <h3 title=""><a href="/">{{ site.parameters.title }}</a></h3>
6
+ <div class="description">
7
+ <p>{{ site.parameters.description }}</p>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <ul class="social-links">
12
+ {% for social_icon in site.social_icons %}
13
+ <li>
14
+ <a href="{{ social_icon.url }}" rel="me" aria-label="{{ social_icon.title }}">
15
+ <i class="fa fa-2x {{ social_icon.icon }}" aria-hidden="true"></i>
16
+ </a>
17
+ </li>
18
+ {% endfor %}
19
+ </ul>
20
+ <div class="footer">
21
+ <div class="by_farbox">&copy; {{ site.parameters.author }} {{ "now" | date: "%Y" }}</div>
22
+ </div>
23
+ </div>
@@ -0,0 +1,5 @@
1
+ <span class="separator">
2
+ {% for category in page.categories %}
3
+ <a class="category" href="{{ "/categories/" | append: category }}">{{ category }}</a>
4
+ {% endfor %}
5
+ </span>
@@ -0,0 +1,5 @@
1
+ <span class="separator">
2
+ {% for tag in page.tags %}
3
+ <a class="tag" href="{{ "/tags/" | append: tag }}">{{ tag }}</a>
4
+ {% endfor %}
5
+ </span>
@@ -0,0 +1,38 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="archive animated fadeInDown">
6
+ <ul class="list-with-title">
7
+ {% assign all_years_in_tags = '' %}
8
+
9
+ {% for category in site.categories %}
10
+ {% for post in category[1] %}
11
+ {% assign current_year = post.update | date: "%Y" %}
12
+ {% assign all_years_in_tags = all_years_in_tags | append: ' ' | append: current_year %}
13
+ {% endfor %}
14
+ {% endfor %}
15
+
16
+ {% assign years = all_years_in_tags | split: ' ' | uniq | sort %}
17
+
18
+ {% for current_year in years %}
19
+ <div class="listing-title">{{ current_year }}</div>
20
+ {% for category in site.categories %}
21
+ {% for post in category[1] %}
22
+ {% assign post_update_year = post.update | date: "%Y" %}
23
+ {% if post_update_year == current_year %}
24
+ <ul class="listing">
25
+ <div class="listing-item">
26
+ <div class="listing-post">
27
+ <a href="{{ category[0] | slugify | url_encode | prepend: '/categories/' | append: '/' | relative_url }}" title="{{ category[0] }}">{{ category[0] | capitalize }}</a>
28
+ <div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
29
+ </div>
30
+ </div>
31
+ </ul>
32
+ {% break %}
33
+ {% endif %}
34
+ {% endfor %}
35
+ {% endfor %}
36
+ {% endfor %}
37
+ </ul>
38
+ </div>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="archive animated fadeInDown">
6
+ <ul class="list-with-title">
7
+ {% assign current_year = 0 %}
8
+ {% for post in page.posts %}
9
+ {% assign post_update_year = post.update | date: "%Y" %}
10
+ {% if current_year != post_update_year %}
11
+ {% assign current_year = post.update | date: "%Y" %}
12
+ <div class="listing-title">{{ current_year }}</div>
13
+ {% endif %}
14
+ <ul class="listing">
15
+ <div class="listing-item">
16
+ <div class="listing-post">
17
+ <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
18
+ <div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
19
+ </div>
20
+ </div>
21
+ </ul>
22
+ {% endfor %}
23
+ </ul>
24
+ </div>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.language }}" data-theme="{{ site.display_mode }}">
3
+ {% include head.html %}
4
+
5
+ <body>
6
+ {% include sidebar.html %}
7
+ <div class="main">
8
+ {% include navbar.html %}
9
+ <div class="autopagerize_page_element">
10
+ <div class="content">{{ content }}</div>
11
+ </div>
12
+ </div>
13
+ </body>
14
+
15
+ {% include footer.html %}
16
+ </html>
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="archive animated fadeInDown">
6
+ <ul class="list-with-title">
7
+ {% assign current_year = 0 %}
8
+ {% for post in site.posts %}
9
+ {% assign post_update_year = post.update | date: "%Y" %}
10
+ {% if current_year != post_update_year %}
11
+ {% assign current_year = post.update | date: "%Y" %}
12
+ <div class="listing-title">{{ current_year }}</div>
13
+ {% endif %}
14
+ <ul class="listing">
15
+ <div class="listing-item">
16
+ <div class="listing-post">
17
+ <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
18
+ <div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
19
+ </div>
20
+ </div>
21
+ </ul>
22
+ {% endfor %}
23
+ </ul>
24
+ </div>
@@ -0,0 +1,28 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="post animated fadeInDown">
6
+ <div class="post-content">
7
+ <div class="post-title">
8
+ <h3>{{ page.title }}</h3>
9
+ {% if page.is_post == true %}
10
+ <div class="info">
11
+ <i class="fa fa-sun-o"></i>
12
+ <span class="date">{{ page.published | date: "%a, %b %d, %Y" }}</span>
13
+ </div>
14
+ {% endif %}
15
+ </div>
16
+ {{ content }}
17
+ </div>
18
+ <div class="post-footer">
19
+ <div class="info">
20
+ {% if page.categories %}
21
+ {% include taxonomy/categories.html %}
22
+ {% endif %}
23
+ {% if page.tags %}
24
+ {% include taxonomy/tags.html %}
25
+ {% endif %}
26
+ </div>
27
+ </div>
28
+ </div>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
data/_layouts/tag.html ADDED
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="archive animated fadeInDown">
6
+ <ul class="list-with-title">
7
+ {% assign current_year = 0 %}
8
+ {% for post in page.posts %}
9
+ {% assign post_update_year = post.update | date: "%Y" %}
10
+ {% if current_year != post_update_year %}
11
+ {% assign current_year = post.update | date: "%Y" %}
12
+ <div class="listing-title">{{ current_year }}</div>
13
+ {% endif %}
14
+ <ul class="listing">
15
+ <div class="listing-item">
16
+ <div class="listing-post">
17
+ <a href="{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a>
18
+ <div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
19
+ </div>
20
+ </div>
21
+ </ul>
22
+ {% endfor %}
23
+ </ul>
24
+ </div>
@@ -0,0 +1,38 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="archive animated fadeInDown">
6
+ <ul class="list-with-title">
7
+ {% assign all_years_in_tags = '' %}
8
+
9
+ {% for tag in site.tags %}
10
+ {% for post in tag[1] %}
11
+ {% assign current_year = post.update | date: "%Y" %}
12
+ {% assign all_years_in_tags = all_years_in_tags | append: ' ' | append: current_year %}
13
+ {% endfor %}
14
+ {% endfor %}
15
+
16
+ {% assign years = all_years_in_tags | split: ' ' | uniq | sort %}
17
+
18
+ {% for current_year in years %}
19
+ <div class="listing-title">{{ current_year }}</div>
20
+ {% for tag in site.tags %}
21
+ {% for post in tag[1] %}
22
+ {% assign post_update_year = post.update | date: "%Y" %}
23
+ {% if post_update_year == current_year %}
24
+ <ul class="listing">
25
+ <div class="listing-item">
26
+ <div class="listing-post">
27
+ <a href="{{ tag[0] | slugify | url_encode | prepend: '/tags/' | append: '/' | relative_url }}" title="{{ tag[0] }}">{{ tag[0] | capitalize }}</a>
28
+ <div class="post-time"><span class="date">{{ post.published | date: "%b %d" }}</span></div>
29
+ </div>
30
+ </div>
31
+ </ul>
32
+ {% break %}
33
+ {% endif %}
34
+ {% endfor %}
35
+ {% endfor %}
36
+ {% endfor %}
37
+ </ul>
38
+ </div>