termina-plex 0.2.0 → 0.3.0

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: 3be4ee526476e9b8d77e9e1d4b11caf399331a5ecab842d5c40a33f3e3b41734
4
- data.tar.gz: 0174fbc30640d1710663f8caeb85c41c576a64b74a343df75b39c1230b1e4241
3
+ metadata.gz: 3191be0873ad818c702c14a73f27416b07493521b34d6d4bf38cbe5f1649ee7d
4
+ data.tar.gz: 2dea759a907ff919189b21123c6215cfc2ad9311ce48aef8dca9da5f3b3b30dd
5
5
  SHA512:
6
- metadata.gz: 26949b5e1568708213297f6291c8c1c44d9494dcddeb45481ce091ad5df24b5b2986075c50c6574fe1cff45c2ddf2c825a310480ca840b7228b1d9d45789a09a
7
- data.tar.gz: cd57f7bec389e35b467e7ed5de78bdd4b102c53f3503a3ac7af1359bc52a3d2492bb5d97c055b7b813a4786ab7a1eebde6550952546d4dfc595931f1e0bba812
6
+ metadata.gz: ce516d997c7f4429acc38d33feb76ef45673879ef9bad0c1df614860a29874ac7e7b3d0be82f4489f9d5420e3fc3e87923385358093297a2cc97b35a221dfb13
7
+ data.tar.gz: 469abddfad9057fa6218e7b4cc007adaf1483a9940652d31c056202f7770a4093669d59f9694b7c94d892c7bff9bb06c4fcc040491dbf5cce2426b89e1cd7bf0
data/README.md CHANGED
@@ -50,6 +50,8 @@ The social links displayed under the site title in the main section of the landi
50
50
 
51
51
  If centered tables are preferred, the `termina-plex.centered_tables` setting can be set to `true`. By default, it uses the user agent's default alignment.
52
52
 
53
+ By default, the theme will transform post titles to be capitalized on pages that use the `home` layout. If you prefer to have post titles not be transformed, you can set `termina-plex.standard_titles` to `true`.
54
+
53
55
  ## Screenshots
54
56
 
55
57
  ![Screenshot of the Termina Plex theme for Jekyll showing the landing page in dark mode](/screenshots/termina-plex-01-landing-page-dark.png)
data/_layouts/home.html CHANGED
@@ -7,7 +7,8 @@ layout: base
7
7
  {%- assign posts = site.posts -%}
8
8
  {% endif %}
9
9
  {%- assign date_format = site.termina-plex.date_format | default: "%d %b %Y" -%}
10
- {%- assign blog_path = site.blog_path | default: "/blog" %}
10
+ {%- assign blog_path = site.blog_path | default: "/blog" -%}
11
+ {%- assign standard_titles = site.termina-plex.standard_titles -%}
11
12
 
12
13
  <article class="postWrapper">
13
14
  <header class="postHeader">
@@ -18,7 +19,11 @@ layout: base
18
19
  <div class="postsEntries">
19
20
  {%- for post in posts -%}
20
21
  <div class="postInfo">
22
+ {%- if standard_titles -%}
21
23
  <h2 class="postTitle">
24
+ {%- else -%}
25
+ <h2 class="postTitle capitalize-title">
26
+ {%- endif -%}
22
27
  <a class="postListLink" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
23
28
  </h2>
24
29
  {%- if post.date -%}
@@ -18,12 +18,15 @@
18
18
  font-family: $header-font-family;
19
19
  font-size: 1.2em;
20
20
  font-weight: 400;
21
- text-transform: capitalize;
22
21
  float: left;
23
22
  width: 75%;
24
23
  margin: 0 0 1rem 0;
25
24
  }
26
25
 
26
+ .postTitle.capitalize-title {
27
+ text-transform: capitalize;
28
+ }
29
+
27
30
  .postHeader {
28
31
  overflow: hidden;
29
32
  }
@@ -47,6 +50,16 @@
47
50
  text-decoration: none;
48
51
  color: var(--text-color);
49
52
  clear: both;
53
+
54
+ h2 {
55
+ font-size: 1.1rem !important;
56
+ font-weight: 700;
57
+ }
58
+
59
+ h3 {
60
+ font-size: 1.05rem !important;
61
+ font-weight: 500;
62
+ }
50
63
  }
51
64
 
52
65
  .headerContainer {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termina-plex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linh Pham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll