blue-jekyll-theme 0.3.1 → 0.4.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: c1d100e2adda501e1d71aae9f28605876a9971630eb6006c699f0c41407e328f
4
- data.tar.gz: 64e6aa88d56f36f84eeac68aa05dfba69970a53d9d9c7c46519a48582d31f3d2
3
+ metadata.gz: 986e623cf9724122a6ece98f45aab7e4a03484ad404ac732838686c96027e459
4
+ data.tar.gz: 9a65ec1ed8889174dde891f1e2b31412f3629c797182917fd86b56f2c36f385a
5
5
  SHA512:
6
- metadata.gz: 8d98645b2b4d3bcf9e005dac27c55675f2fa834cbda4a46ee1b0994a96b64f7e4aef88dbdd3b0af8c8ca68a0c4d551add7f3a79c54f69f4036c5b55ee7ad5b93
7
- data.tar.gz: c221330257d939cac37b19d641df5e69533ed0a992246f0c279e558e827a25980ea43c7ea8bb562c488fd13769b43d95a96075c18ee827f5190daf0bbd6b3eb6
6
+ metadata.gz: cf6280d04f15f7f87c3bdf590e89275e79cf410cc6aee28d1a8edaee937ebb17d1e12296bbf1abb719cef4db5171a89bcb31428bbdfc66498a6a9b69e535dbea
7
+ data.tar.gz: 753f766a2e8d60f3b5da70c59269c472c803d1bc019d33b53d36796109bbfb3f836ffa76f288c839def632992e896e102ac900bd0d3e0ccce65bd2f223f1bbc2
data/README.md CHANGED
@@ -1,12 +1,24 @@
1
1
  # Blue
2
2
 
3
- > Minimalist Jekyll theme (based on Bulma)
3
+ Minimalist Jekyll theme based on Bulma.
4
4
 
5
- Work in progress!
5
+ This work is on active development, but currently suitable for use on production and GitHub pages.
6
6
 
7
7
  [DEMO](https://jsalvador.me/blue)
8
8
 
9
- ## How to install
9
+ ## What does comes with Blue?
10
+
11
+ Blue comes with the following features:
12
+
13
+ * Bulma CSS library.
14
+ * Kramdown as Markdown engine.
15
+ * MathJax for LaTeX-math support.
16
+ * Syntax highlight built-in.
17
+ * Pagination (via `jekyll-paginate` rubygem).
18
+ * Search engine optimization (via `jekyll-seo-tag` rubygem).
19
+ * RSS support by default (via `jekyll-feed` rubygem).
20
+
21
+ ## Installation (GitHub Pages)
10
22
 
11
23
  1. Fork this repository.
12
24
  2. Rename your fork as `your-username*.github.io`
@@ -15,22 +27,63 @@ Work in progress!
15
27
  5. Enjoy and submit me any issue or improvement!
16
28
 
17
29
 
30
+ ## Installation (using RubyGems)
31
+
32
+ 1. Add `blue-jekyll-theme` to your `Gemfile`.
33
+ 2. Update your gems.
34
+ ```
35
+ $ bundle update
36
+ ```
37
+ 3. Update your `_config.yml` file, replace your current theme by `blue-jekyll-theme` and add the needed plugins:
38
+
39
+ * `jekyll-paginate`
40
+ * `jekyll-seo-tag`
41
+
18
42
  ## Config variables
19
43
 
44
+ Add or remove variables from the sample config file.
45
+
46
+ Available colors are the same for Bulma (default ones). You can choose between `primary` (light turquoise), `info` (blue), `warning` (yellow), `danger`(red), `dark` (black) and `light` (default). It will switch the header color.
47
+
20
48
  ```
21
- title: My Awesome Blog
22
- subtitle: My Awesome Blog Subtitle
23
- url: "https://foobar.dev"
24
- color: primary
49
+ # Permalinks
50
+ permalink: pretty
51
+
52
+ # Setup
53
+ title: My Site
54
+ subtitle: My fancy site.
55
+ baseurl:
56
+ url: "https://example.dev"
57
+
58
+ color: danger
25
59
 
26
60
  author:
27
- name: Juanjo Salvador
28
- url: http://jsalvador.me
29
- email: juanjosalvador@netc.eu
30
- ```
61
+ name: Jhon Doe
62
+ url: http://example.dev
63
+ email: # Place your email here
64
+ github: JohnDoe # Place your GitHub username here
65
+ twitter: JohnDoe # Place your twitter username here
66
+ mastodon: https://instance.dev/@johndoe # Place your profile URL here
67
+
68
+ # Assets
69
+ sass:
70
+ style: compressed
31
71
 
32
- Available colors are the same for Bulma (default ones). You can choose between `primary` (light turquoise), `info` (blue), `warning` (yellow), `danger`(red) and `dark` (black). It will switch the header color.
72
+ markdown: kramdown
73
+ highlighter: rouge
74
+ kramdown:
75
+ input: GFM
76
+
77
+ # Custom vars
78
+ version: 3.8.5
79
+ paginate: 5 # Default pagination is 5 post per page
80
+ paginate_path: "/page:num/" # Default route for pages
81
+
82
+ plugins:
83
+ - jekyll-paginate
84
+ - jekyll-seo-tag
85
+ ```
33
86
 
34
87
  ## Licencse
35
88
 
36
- MIT License
89
+ MIT License
@@ -1,12 +1,17 @@
1
1
  <footer class="footer">
2
2
  <div class="content has-text-centered">
3
3
  <p>
4
- Theme <a href="https://github.com/JuanjoSalvador/blue">Blue</a>. Made with <span style="color: #e25555;">❤️</span> by Juanjo Salvador
4
+ Made with <span style="color: #e25555;">❤️</span> by Juanjo Salvador
5
+ </p>
6
+ <p>
7
+ Theme <a href="https://github.com/JuanjoSalvador/blue">Blue</a> by <a href="https://jsalvador.me/">Juanjo Salvador</a>.
5
8
  </p>
6
9
  </div>
7
10
  <div class="columns">
8
11
  <div class="column"></div>
9
12
  <div class="column is-centered">
13
+ <a href="{{ site.baseurl }}/feed.xml" class="social-link"><i class="fas fa-rss fa-2x"></i></a>
14
+
10
15
  {% if site.author.github %}
11
16
  <a href="https://github.com/{{ site.author.github }}" class="social-link"><i class="fab fa-github-alt fa-2x"></i></a>
12
17
  {% endif %}
data/_includes/head.html CHANGED
@@ -1,21 +1,19 @@
1
1
  <head>
2
2
  <meta charset="UTF-8">
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
- <meta name="description" content="Juanjo Salvador's personal webpage">
4
+ <meta name="description" content="{{ site. description }}">
5
5
 
6
- <title>
7
- {% if page.title == "Home" %}
8
- {{ site.title }}
9
- {% else %}
10
- {{ page.title }} &middot; {{ site.title }}
11
- {% endif %}
12
- </title>
6
+ {% seo %}
13
7
 
14
8
  <!-- CSS -->
15
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
9
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
16
10
  <link rel="stylesheet" href="{{ site.baseurl }}/assets/styles.css">
17
11
 
18
- <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
12
+ <!-- FontAwesome -->
13
+ <script defer src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"></script>
14
+
15
+ <!-- MathJax support -->
16
+ <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
17
+ <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
19
18
 
20
- {% seo %}
21
19
  </head>
@@ -7,11 +7,11 @@
7
7
  <section class="hero is-{{ site.color }}">
8
8
  <div class="hero-body">
9
9
  <div class="container main">
10
- <div class="columns is-mobile">
10
+ <div class="columns">
11
11
  <div class="column"></div>
12
12
  <div class="column is-two-thirds">
13
- <h1 class="title is-1"><a href="/">{{ site.title }}</a></h1>
14
- <h2 class="subtitle is-3">{{ site.subtitle }}</h2>
13
+ <h1 class="title is-1"><a href="{{ site.baseurl }}">{{ site.title }}</a></h1>
14
+ <h2 class="subtitle is-3">{{ site.description }}</h2>
15
15
  </div>
16
16
  <div class="column"></div>
17
17
  </div>
@@ -21,7 +21,7 @@
21
21
 
22
22
  <section class="section">
23
23
  <div class="container">
24
- <div class="columns is-mobile">
24
+ <div class="columns">
25
25
  <div class="column"></div>
26
26
  <div class="column is-two-thirds">
27
27
  {{ content }}
@@ -0,0 +1,38 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="frontpage">
6
+ {% for post in paginator.posts %}
7
+ <div class="frontpage-item">
8
+ <a href="{{ post.url | prepend: site.baseurl }}">
9
+ <h3 class="title is-3">{{ post.title }}</h3>
10
+ </a>
11
+ <time datetime="{{ post.date }}" class="frontpage-time has-text-grey-light">{{ post.date | date: "%B %d, %Y" }}</time>
12
+
13
+ <p class="show-if-mobile">
14
+ {{ post.content | truncatewords: 18 | strip_html }}
15
+ </p>
16
+
17
+ <p class="frontpage-item-readmore">
18
+ <a href="{{ post.url | prepend: site.baseurl }}" class="button is-{{ site.color }}">
19
+ <strong>Read more</strong>
20
+ </a>
21
+ </p>
22
+ <br><br>
23
+ </div>
24
+ {% endfor %}
25
+ </div>
26
+
27
+ <div class="pagination">
28
+ {% if paginator.previous_page %}
29
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left-arrow">&#8592;</a>
30
+ {% endif %}
31
+
32
+ {% if paginator.next_page %}
33
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right-arrow">&#8594;</a>
34
+ {% endif %}
35
+
36
+ <span class="page-number">{{ paginator.page }}</span>
37
+
38
+ </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanjo Salvador
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-15 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-seo-tag
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: jekyll-feed
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.17.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.17.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -79,6 +93,7 @@ files:
79
93
  - _includes/footer.html
80
94
  - _includes/head.html
81
95
  - _layouts/default.html
96
+ - _layouts/home.html
82
97
  - _layouts/page.html
83
98
  - _layouts/post.html
84
99
  - _sass/code.sass
@@ -88,10 +103,11 @@ files:
88
103
  - _sass/post.sass
89
104
  - _sass/rouge.scss
90
105
  - assets/styles.sass
91
- homepage: https://jsalvador.me/blog/
106
+ homepage: https://github.com/JuanjoSalvador/blue
92
107
  licenses:
93
108
  - MIT
94
- metadata: {}
109
+ metadata:
110
+ github_repo: ssh://github.com/JuanjoSalvador/blue
95
111
  post_install_message:
96
112
  rdoc_options: []
97
113
  require_paths:
@@ -107,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
123
  - !ruby/object:Gem::Version
108
124
  version: '0'
109
125
  requirements: []
110
- rubygems_version: 3.2.27
126
+ rubygems_version: 3.4.10
111
127
  signing_key:
112
128
  specification_version: 4
113
129
  summary: Minimalist Jekyll theme based on Bulma