jekyll-theme-endless 0.23.0 → 0.23.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 899fba7a3e3108f8ae017c526ce0c449ec9c1ee466e85cf5d911791cb06fa4a9
|
|
4
|
+
data.tar.gz: e6459c97cbdb040bedc1a25b6ff097bfa03a4b772da4a64c66037a2de24053aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26617d0d3358145dbe1136412302564e68e8515a9c77436388b422ba8aaac24539851f3af095dfa574368ad39ccac2e41229bc918433a26cf06cc5fecfb75604
|
|
7
|
+
data.tar.gz: 1fd122fa9c9c9746193c696ad9faba838cc59e748b7009bd6e4d37fce089ae80249abc109b8a565afc4ac4f64a7e90e282128e3bf6b44783ff41c8804a82abce
|
data/README.adoc
CHANGED
|
@@ -759,6 +759,23 @@ tag_dir: post-for-tag
|
|
|
759
759
|
# default: `Tag: `
|
|
760
760
|
tag_title_prefix: "Posts tagged with: "
|
|
761
761
|
----
|
|
762
|
+
|
|
763
|
+
Using some tags can cause problems.
|
|
764
|
+
For example, if you use the tag `.htaccess` on an Apache server, a folder with the name `.htaccess` will be created.
|
|
765
|
+
This can prevent tag pages from being displayed.
|
|
766
|
+
In such cases, you can configure a prefix so that your tag folders are not stored under `tags/<tagname>/index.html`, but under `tags/<prefix><tagname>/index.html` instead.
|
|
767
|
+
|
|
768
|
+
[source, yaml]
|
|
769
|
+
----
|
|
770
|
+
# For each tag, a folder with the tag's name is created.
|
|
771
|
+
# Names that start with a dot, for example `.htaccess`, can cause problems.
|
|
772
|
+
# Therefore, a prefix can be added in the site configuration.
|
|
773
|
+
# default: ``
|
|
774
|
+
dir_for_tag_prefix: "tag_"
|
|
775
|
+
----
|
|
776
|
+
|
|
777
|
+
With the configuration above, the folder name for the tag `.htaccess` would be `tag_.htaccess`.
|
|
778
|
+
|
|
762
779
|
--
|
|
763
780
|
|
|
764
781
|
|
|
@@ -12,6 +12,7 @@ In the href 'tag' Is NOT escaped, since the plugin generates
|
|
|
12
12
|
files for tag-pages using filenames with the unescaped tag.
|
|
13
13
|
{% endcomment %}
|
|
14
14
|
{% assign tag_dir = site.tag_dir | default: 'tags' %}
|
|
15
|
+
{% assign dir_for_tag_prefix = site.dir_for_tag_prefix | default: '' %}
|
|
15
16
|
|
|
16
17
|
{% if include.description.long %}
|
|
17
18
|
<dt>{{ include.term | escape }}</dt>
|
|
@@ -19,7 +20,7 @@ files for tag-pages using filenames with the unescaped tag.
|
|
|
19
20
|
{{ include.description.long | asciidocify }}
|
|
20
21
|
<p>
|
|
21
22
|
{% if number > 0 %}
|
|
22
|
-
Number of <a href="{{ '/' | append: tag_dir | append: '/' | append: include.term | relative_url }}">posts tagged with "{{ include.term | escape }}"</a>:
|
|
23
|
+
Number of <a href="{{ '/' | append: tag_dir | append: '/' | append: dir_for_tag_prefix | append: include.term | relative_url }}">posts tagged with "{{ include.term | escape }}"</a>:
|
|
23
24
|
{% else %}
|
|
24
25
|
Number of posts tagged with "{{ include.term | escape }}":
|
|
25
26
|
{% endif %}
|
|
@@ -32,7 +33,7 @@ files for tag-pages using filenames with the unescaped tag.
|
|
|
32
33
|
{{ include.description.short | asciidocify }}
|
|
33
34
|
<p>
|
|
34
35
|
{% if number > 0 %}
|
|
35
|
-
Number of <a href="{{ '/' | append: tag_dir | append: '/' | append: include.term | relative_url }}">posts tagged with "{{ include.term | escape }}"</a>:
|
|
36
|
+
Number of <a href="{{ '/' | append: tag_dir | append: '/' | append: dir_for_tag_prefix | append: include.term | relative_url }}">posts tagged with "{{ include.term | escape }}"</a>:
|
|
36
37
|
{% else %}
|
|
37
38
|
Number of posts tagged with "{{ include.term | escape }}":
|
|
38
39
|
{% endif %}
|
|
@@ -81,7 +81,8 @@ Assumption: Non of the tags occurs more than one million times.
|
|
|
81
81
|
files for tag-pages using filenames with the unescaped tag.
|
|
82
82
|
{% endcomment %}
|
|
83
83
|
{% assign tag_dir = site.tag_dir | default: 'tags' %}
|
|
84
|
-
|
|
84
|
+
{% assign dir_for_tag_prefix = site.dir_for_tag_prefix | default: '' %}
|
|
85
|
+
href="{{ '/' | append: tag_dir | append: '/' | append: dir_for_tag_prefix | append: tag | relative_url }}"
|
|
85
86
|
style = "font-size: {{ percent }}%"
|
|
86
87
|
|
|
87
88
|
{% if site.data.tag-description[tag].short %}
|
data/_includes/function_tag.html
CHANGED
|
@@ -19,7 +19,8 @@ Call via:
|
|
|
19
19
|
files for tag-pages with filenames using the unescaped tag.
|
|
20
20
|
{% endcomment %}
|
|
21
21
|
{% assign tag_dir = site.tag_dir | default: 'tags' %}
|
|
22
|
-
|
|
22
|
+
{% assign dir_for_tag_prefix = site.dir_for_tag_prefix | default: '' %}
|
|
23
|
+
href="{{ '/' | append: tag_dir | append: '/' | append: dir_for_tag_prefix | append: include.tag | relative_url }}"
|
|
23
24
|
>{{ include.tag | escape }}</a>
|
|
24
25
|
{% else %}
|
|
25
26
|
<span class="badge badge-pill badge-secondary">{{ include.tag | escape }}</span>
|
|
@@ -47,8 +47,17 @@ module Jekyll
|
|
|
47
47
|
|
|
48
48
|
# For each tag in the tag-list:
|
|
49
49
|
site.tags.each_key do |tag|
|
|
50
|
+
# For each tag, a folder with the tag's name is created.
|
|
51
|
+
# Names that start with a dot, for example, can cause problems.
|
|
52
|
+
# Therefore, a prefix can be added in the _config.yml.
|
|
53
|
+
# I set the default value to an empty string.
|
|
54
|
+
# Reason: If the default value is not empty, I cannot override it with an empty string
|
|
55
|
+
# from the _config.yml when creating links in Liquid.
|
|
56
|
+
# Therefore, it would not be possible to avoid using a prefix.
|
|
57
|
+
prefix = site.config['dir_for_tag_prefix'] || ''
|
|
58
|
+
dir_for_tag = prefix + tag
|
|
50
59
|
# Create a page-object using TagPage and add it to the `site.pages` array
|
|
51
|
-
site.pages << TagPage.new(site, site.source, File.join(dir,
|
|
60
|
+
site.pages << TagPage.new(site, site.source, File.join(dir, dir_for_tag), tag)
|
|
52
61
|
Jekyll.logger.debug("TagPageGenerator", "[DEBUG] TagPage created for tag: #{tag}")
|
|
53
62
|
end
|
|
54
63
|
|