bridgetown-feed 3.1.0 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0022d28402f7e79f811a1df43bf7f4c567781e9508d239046e0ae7e80fd9579c
4
- data.tar.gz: 4aa6a196a889b0481c62341643dab88ae65d269dba1fa24a0f76562b4ab81a13
3
+ metadata.gz: 0c2cbc81ee48ebc1f53e334674cb20530d56b247fc6a72b1a577b8ee05fae1bd
4
+ data.tar.gz: 62074e18bdbd7f012106610fd4aff9b1b2ac2498124e5523639b1c98d62492bc
5
5
  SHA512:
6
- metadata.gz: 76df5d22dc22e825d6a6acfd8381c0ea83ca8c7e43f05767720b0334a759f6a367b25838fbb3803a13f3002f909f19801048d11f8b11147577e024c4df1f7436
7
- data.tar.gz: 034f66ff0399a8ad53035f404734e475760d287deb624203b16386f84a527ea99c798750d57f3b0216a278e574100d04879fda2c46a2fffbe80efd14d09c30ff
6
+ metadata.gz: ed5633b188945f86097644e563bcd5d3717cde120fab1774af50cc051ab4074ab761a43c41f95239878147155b6fa3bb5ac31ec948885dcddfc581ae1b01ef62
7
+ data.tar.gz: 26df2d8ce71c4cc050d221f00b76cc4dfb1eb922268ec88929d6eb5cf221ac4656859aedb36333fb15ccef148e3b20d5c8e07c4b1ac1e9da80cc5c3e13b4130d
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  ...
6
6
 
7
+ ## 3.1.2 / 2024-03-02
8
+
9
+ * Fix: as readme promises, use `id` from a post's front matter if present
10
+
11
+ ## 3.1.1 / 2024-02-02
12
+
13
+ * Remove duplicate variable assignment (@jbennett)
14
+
7
15
  ## 3.1.0 / 2024-02-01
8
16
 
9
17
  * Add an option to set the post_limit (@jbennett)
@@ -45,14 +45,14 @@
45
45
  {% assign posts = posts | where: "category",page.category %}
46
46
  {% endif %}
47
47
  {% assign post_limit = site.feed.collections[page.collection].post_limit | default: site.feed.post_limit | default: 10 %}
48
- {% assign post_limit = site.feed.collections[page.collection].post_limit | default: site.feed.post_limit %}
49
48
  {% for post in posts limit: post_limit %}
49
+ {% assign post_id = post.data.id | default: post.id %}
50
50
  <entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
51
51
  <title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
52
52
  <link href="{{ post.absolute_url | default: post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
53
53
  <published>{{ post.date | date_to_xmlschema }}</published>
54
54
  <updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
55
- <id>{{ post.id | absolute_url | xml_escape }}</id>
55
+ <id>{{ post_id | absolute_url | xml_escape }}</id>
56
56
  {% assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only %}
57
57
  {% unless excerpt_only %}
58
58
  <content type="html" xml:base="{{ post.absolute_url | default: post.url | absolute_url | xml_escape }}">{{ post.content | strip | xml_escape }}</content>
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bridgetown
4
4
  module Feed
5
- VERSION = "3.1.0"
5
+ VERSION = "3.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-01 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bridgetown