bridgetown-feed 3.1.1 → 3.1.2

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: 174d29cc1023c391b57f2ae836090aabfa138aea3f17e764a1044517477b941e
4
- data.tar.gz: 7be52d236312c1a5040906f16dc4c6431e7646f9f8e7cf1b5b832002917fbf22
3
+ metadata.gz: 0c2cbc81ee48ebc1f53e334674cb20530d56b247fc6a72b1a577b8ee05fae1bd
4
+ data.tar.gz: 62074e18bdbd7f012106610fd4aff9b1b2ac2498124e5523639b1c98d62492bc
5
5
  SHA512:
6
- metadata.gz: 326828ef32cf975c8d91d72c23e208af087949eefb5d287cb5c5a29328b8e47bba1b65325fc8891a5a7c83fd8f8b3b19eae2740130bd217912ee2f8cceefcfc4
7
- data.tar.gz: d9575a4901ccff9af32534b7183ba5ef90b4ded70065dbf66b0d6af65839750602c0566fa31ef4c82fc0643b274dfcc48e61279095f929a6bdec24d2cad2f907
6
+ metadata.gz: ed5633b188945f86097644e563bcd5d3717cde120fab1774af50cc051ab4074ab761a43c41f95239878147155b6fa3bb5ac31ec948885dcddfc581ae1b01ef62
7
+ data.tar.gz: 26df2d8ce71c4cc050d221f00b76cc4dfb1eb922268ec88929d6eb5cf221ac4656859aedb36333fb15ccef148e3b20d5c8e07c4b1ac1e9da80cc5c3e13b4130d
data/CHANGELOG.md CHANGED
@@ -4,7 +4,11 @@
4
4
 
5
5
  ...
6
6
 
7
- ## 3.1.1 / 2024/02-02
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
8
12
 
9
13
  * Remove duplicate variable assignment (@jbennett)
10
14
 
@@ -46,12 +46,13 @@
46
46
  {% endif %}
47
47
  {% assign post_limit = site.feed.collections[page.collection].post_limit | default: site.feed.post_limit | default: 10 %}
48
48
  {% for post in posts limit: post_limit %}
49
+ {% assign post_id = post.data.id | default: post.id %}
49
50
  <entry{% if post.lang %}{{" "}}xml:lang="{{ post.lang }}"{% endif %}>
50
51
  <title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
51
52
  <link href="{{ post.absolute_url | default: post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
52
53
  <published>{{ post.date | date_to_xmlschema }}</published>
53
54
  <updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
54
- <id>{{ post.id | absolute_url | xml_escape }}</id>
55
+ <id>{{ post_id | absolute_url | xml_escape }}</id>
55
56
  {% assign excerpt_only = post.feed.excerpt_only | default: site.feed.excerpt_only %}
56
57
  {% unless excerpt_only %}
57
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.1"
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.1
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-02 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