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 +4 -4
- data/README.md +39 -1
- data/_includes/head.html +4 -1
- data/_includes/umami-analytics.html +16 -0
- data/_layouts/index.html +4 -1
- data/_sass/termina-plex/pages/index.scss +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0382d5026093da2e77fe845f6463e84e94ca74ce70745f1b97d4db13c88fa230'
|
4
|
+
data.tar.gz: 356f6d20115f8f4627885126d115418f4c2bf58075240ca957a40b8e52a5ed7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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">
|
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">
|
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.
|
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-
|
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
|