termina-plex 0.3.0 → 0.5.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: 3191be0873ad818c702c14a73f27416b07493521b34d6d4bf38cbe5f1649ee7d
4
- data.tar.gz: 2dea759a907ff919189b21123c6215cfc2ad9311ce48aef8dca9da5f3b3b30dd
3
+ metadata.gz: '0382d5026093da2e77fe845f6463e84e94ca74ce70745f1b97d4db13c88fa230'
4
+ data.tar.gz: 356f6d20115f8f4627885126d115418f4c2bf58075240ca957a40b8e52a5ed7e
5
5
  SHA512:
6
- metadata.gz: ce516d997c7f4429acc38d33feb76ef45673879ef9bad0c1df614860a29874ac7e7b3d0be82f4489f9d5420e3fc3e87923385358093297a2cc97b35a221dfb13
7
- data.tar.gz: 469abddfad9057fa6218e7b4cc007adaf1483a9940652d31c056202f7770a4093669d59f9694b7c94d892c7bff9bb06c4fcc040491dbf5cce2426b89e1cd7bf0
6
+ metadata.gz: 42cd7d44baa4e1075f60f2c1d7379ff130a84bcebfd8893bd7904d06f978a3fa27ee6dbeaff0a6aab8c7edd9c5a55d2d2ec77cd8bb384e69197590234658cfa2
7
+ data.tar.gz: 2092b698f05274193c1e1e170b87907da2dc7d159a5557e7504adb1350507a837a341eadefc975a5d673ec5fd70b017ae1854686293294497930ddd56a760ec5
data/README.md CHANGED
@@ -36,9 +36,47 @@ For pagination to work with the post listing page hosted under `/blog`, the `pag
36
36
 
37
37
  If you want to change the path for the post listing page, the `blog_path` setting can be set to the preferred path. The `paginate_path` setting should also be updated to reflect the correct path.
38
38
 
39
+ ## Index Page Author Pronouns
40
+
41
+ Author pronouns set using the `site.author.pronouns` configuration setting and will be displayed below the author name on pages that use the `index` layout.
42
+
43
+ ## Google and Umami Analytics
44
+
45
+ This theme provides support for Google and Umami Analytics by setting appropriate site configuration values.
46
+
47
+ ### Google Analytics
48
+
49
+ To automatically add the necessary Google tag to the site, add the following line to the top level of `_config.yml`:
50
+
51
+ ```yaml
52
+ google_analytics: G-XXXXX
53
+ ```
54
+
55
+ Replace `G-XXXXX` with the appropriate measurement ID.
56
+
57
+ ### Umami Analytics
58
+
59
+ To automatically add the necessary Umami analytics tag to the site, add the following lines to the top level of `_config.yml`:
60
+
61
+ ```yaml
62
+ umami_analytics:
63
+ url: "https://example.org/umami.js"
64
+ data_website_id: "abc"
65
+ ```
66
+
67
+ Replace the `url` and `data_website_id` with the appropriate values for your Umami Analytics instance.
68
+
69
+ Additional parameters can be set in the tag by providing the appropriate values for the following keys under `umami_analytics`:
70
+
71
+ | Umami Tag Parameter | Site Configuration |
72
+ | --- | --- |
73
+ | data-host-url | data_host_url |
74
+ | data-auto-track | data_auto_track |
75
+ | data-domains | data_domains |
76
+
39
77
  ## Theme Configuration
40
78
 
41
- Theme specific configuration is done within the `termina-plex` section of the `_config.yaml` file.
79
+ Theme specific configuration is done within the `termina-plex` section of the `_config.yml` file.
42
80
 
43
81
  The date format used by the theme is defined by the `termina-plex.date_format` setting. The value needs to be in [valid `strftime` format](https://docs.ruby-lang.org/en/master/strftime_formatting_rdoc.html). The theme defaults to `%d %b %Y`.
44
82
 
data/_includes/head.html CHANGED
@@ -8,6 +8,9 @@
8
8
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
9
9
  {%- include google-analytics.html -%}
10
10
  {%- endif -%}
11
+ {%- if site.umami_analytics.url and site.umami_analytics.data_website_id -%}
12
+ {%- include umami-analytics.html -%}
13
+ {%- endif -%}
11
14
 
12
- {%- include custom-head.html -%}
15
+ {%- include custom-head.html %}
13
16
  </head>
@@ -0,0 +1,16 @@
1
+ {%- if site.umami_analytics.url and site.umami_analytics.data_website_id %}
2
+ <script
3
+ defer
4
+ src="{{ site.umami_analytics.url }}"
5
+ data-website-id="{{ site.umami_analytics.data_website_id }}"
6
+ {%- if site.umami_analytics.data_host_url %}
7
+ data-host-url="{{ site.umami_analytics.data_host_url }}"
8
+ {%- endif -%}
9
+ {%- if site.umami_analytics.data_auto_track %}
10
+ data-auto-track="{{ site.umami_analytics.data_auto_track }}"
11
+ {%- endif -%}
12
+ {%- if site.umami_analytics.data_domains %}
13
+ data-domains="{{ site.umami_analytics.data_domains }}"
14
+ {%- endif -%}
15
+ ></script>
16
+ {%- endif %}
data/_layouts/index.html CHANGED
@@ -10,7 +10,10 @@
10
10
  <main class="main">
11
11
  <div class="indexWrapper">
12
12
  <div>
13
- <h1 class="indexHeader">{{ site.author.name }}</h1>
13
+ <h1 class="indexHeader">
14
+ {{ site.author.name }}
15
+ {%- if site.author.pronouns -%}<div class="authorPronouns">{{ site.author.pronouns }}</div>{%- endif -%}
16
+ </h1>
14
17
  </div>
15
18
  {%- if site.termina-plex.social_links -%}
16
19
  <div class="socialNavbar">
@@ -10,3 +10,16 @@
10
10
  .indexHeader {
11
11
  font-size: 3em;
12
12
  }
13
+
14
+ .indexHeader .authorPronouns {
15
+ font-style: italic;
16
+ font-size: 50%;
17
+ }
18
+
19
+ .authorPronouns::before {
20
+ content: "("
21
+ }
22
+
23
+ .authorPronouns::after {
24
+ content: ")"
25
+ }
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.3.0
4
+ version: 0.5.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-29 00:00:00.000000000 Z
11
+ date: 2024-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -111,6 +111,7 @@ files:
111
111
  - _includes/header.html
112
112
  - _includes/tag-archive.html
113
113
  - _includes/theme-toggle.html
114
+ - _includes/umami-analytics.html
114
115
  - _layouts/base.html
115
116
  - _layouts/category.html
116
117
  - _layouts/home.html