blue-jekyll-theme 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b233c66e3492dd07026483ac53b721eb0a41dfc751627cd34fd8c1c771007cfd
4
- data.tar.gz: c60347e6eecd36d34c719549d950f81417884f21198dd31a0bddf508213476a8
3
+ metadata.gz: 1aa0f6683140f40bd8856e22253740bfaba682a34dca87cc22694588dd834245
4
+ data.tar.gz: 721f322da722e5e423305ccdb66c8f3db970ed359832e4bba09f329e8a58f274
5
5
  SHA512:
6
- metadata.gz: d2c622f57a320fc19af567b032048f3d6850637abe1d34b882a122454115c9adbfc2c0113913d945fb70641466a26c3a8496644128a2492edd667c27a987ef2b
7
- data.tar.gz: a862abf9d56984c44e3b7bbb23c144ff14cf6000b49010d26ecc04ab9fc5c4df7954b3fa2ff051c79fdb27614c1b2d900cb59e525486c06ac752271bd25eaf3d
6
+ metadata.gz: 2cfef553734a5941f1f259754386ca7a3887ab2f632e74e91e357e03354c9712bfb01e27e15cfd0ffe9f75eaf44346c8d2c2facb0600ae8c6843d101732e4467
7
+ data.tar.gz: dac6ef892695e80f9c8e5a705fd6cc99703a08ff5a3378732de8def2133a061f8540fade4821e23039d47334e30c1ebe487a5902f662048d5a1402caf5a0c4bd
data/README.md CHANGED
@@ -1,8 +1,8 @@
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.
6
6
 
7
7
  [DEMO](https://jsalvador.me/blue)
8
8
 
@@ -33,4 +33,4 @@ Available colors are the same for Bulma (default ones). You can choose between `
33
33
 
34
34
  ## Licencse
35
35
 
36
- MIT License
36
+ MIT License
@@ -1,7 +1,28 @@
1
1
  <footer class="footer">
2
2
  <div class="content has-text-centered">
3
3
  <p>
4
- Made with <span style="color: #e25555;">&hearts;</span> by Juanjo Salvador
4
+ Theme <a href="https://github.com/JuanjoSalvador/blue">Blue</a>. Made with <span style="color: #e25555;">❤️</span> by Juanjo Salvador
5
5
  </p>
6
6
  </div>
7
+ <div class="columns">
8
+ <div class="column"></div>
9
+ <div class="column is-centered">
10
+ {% if site.author.github %}
11
+ <a href="https://github.com/{{ site.author.github }}" class="social-link"><i class="fab fa-github-alt fa-2x"></i></a>
12
+ {% endif %}
13
+
14
+ {% if site.author.twitter %}
15
+ <a href="https://twitter.com/{{ site.author.twitter }}" class="social-link"><i class="fab fa-twitter fa-2x"></i></a>
16
+ {% endif %}
17
+
18
+ {% if site.author.mastodon %}
19
+ <a href="{{ site.author.mastodon }}" rel="me" class="social-link"><i class="fab fa-mastodon fa-2x"></i></a>
20
+ {% endif %}
21
+
22
+ {% if site.author.email %}
23
+ <a href="mailto:{{ site.author.email }}" class="social-link"><i class="fas fa-envelope fa-2x"></i></a>
24
+ {% endif %}
25
+ </div>
26
+ <div class="column"></div>
27
+ </div>
7
28
  </footer>
data/_includes/head.html CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  <!-- CSS -->
15
15
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
16
- <link rel="stylesheet" href="{{ site.baseurl }}/styles.css">
16
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/styles.css">
17
17
 
18
18
  <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
19
19
 
@@ -8,10 +8,12 @@
8
8
  <div class="hero-body">
9
9
  <div class="container main">
10
10
  <div class="columns is-mobile">
11
- <div class="column">
11
+ <div class="column"></div>
12
+ <div class="column is-two-thirds">
12
13
  <h1 class="title is-1"><a href="/">{{ site.title }}</a></h1>
13
14
  <h2 class="subtitle is-3">{{ site.subtitle }}</h2>
14
15
  </div>
16
+ <div class="column"></div>
15
17
  </div>
16
18
  </div>
17
19
  </div>
@@ -20,9 +22,11 @@
20
22
  <section class="section">
21
23
  <div class="container">
22
24
  <div class="columns is-mobile">
23
- <div class="column">
25
+ <div class="column"></div>
26
+ <div class="column is-two-thirds">
24
27
  {{ content }}
25
28
  </div>
29
+ <div class="column"></div>
26
30
  </div>
27
31
  </div>
28
32
  </section>
@@ -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: 60 | 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>
data/_layouts/post.html CHANGED
@@ -5,8 +5,9 @@ layout: default
5
5
  <div class="post">
6
6
 
7
7
  <h2 class="title is-2 post-title">{{ page.title }}</h2>
8
- <div class="post-info">
9
- <time datetime="{{ post.date }}" class="frontpage-time has-text-grey-light">{{ page.date | date: "%B %d, %Y" }}</time>
8
+ <div class="post-info has-text-grey-light">
9
+ Written by {{ site.author.name }}<br/>
10
+ <time datetime="{{ post.date }}" class="frontpage-time">{{ page.date | date: "%B %d, %Y" }}</time>
10
11
  </div>
11
12
 
12
13
  {{ content }}
data/_sass/default.sass CHANGED
@@ -3,6 +3,7 @@ $lightgray: #f8f8f8
3
3
 
4
4
  body
5
5
  font-size: 1.3rem
6
+ text-align: justify
6
7
 
7
8
  ol, ul
8
9
  margin-top: 1em
@@ -30,8 +31,8 @@ body
30
31
  margin-top: 1em
31
32
  margin-bottom: 1em
32
33
 
33
- .container
34
- max-width: 40rem
34
+ .is-centered
35
+ text-align: center
35
36
 
36
37
  .left-arrow
37
38
  font-size: 2em
@@ -44,5 +45,4 @@ body
44
45
  right: 0
45
46
 
46
47
  .page-number
47
- font-size: 1.25em
48
48
  margin: 0 auto
data/_sass/frontpage.sass CHANGED
@@ -12,4 +12,8 @@
12
12
 
13
13
  .paginator
14
14
  position: relative
15
- margin: 0 auto
15
+ margin: 0 auto
16
+
17
+ @media only screen and (max-width: 600px)
18
+ .show-if-mobile
19
+ display: none
@@ -0,0 +1,10 @@
1
+ ---
2
+ # Use a comment to ensure Jekyll reads the file to be transformed into CSS later
3
+ # only main files contain this front matter, not partials.
4
+ ---
5
+
6
+ @import 'default'
7
+ @import 'frontpage'
8
+ @import 'code'
9
+ @import 'post'
10
+ @import 'native'
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.2
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-14 00:00:00.000000000 Z
11
+ date: 2022-01-15 00:00:00.000000000 Z
12
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: '3.8'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '3.8'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: jekyll-seo-tag
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +79,7 @@ files:
93
79
  - _includes/footer.html
94
80
  - _includes/head.html
95
81
  - _layouts/default.html
82
+ - _layouts/home.html
96
83
  - _layouts/page.html
97
84
  - _layouts/post.html
98
85
  - _sass/code.sass
@@ -101,6 +88,7 @@ files:
101
88
  - _sass/native.scss
102
89
  - _sass/post.sass
103
90
  - _sass/rouge.scss
91
+ - assets/styles.sass
104
92
  homepage: https://jsalvador.me/blog/
105
93
  licenses:
106
94
  - MIT