Skip to content

Commit

Permalink
Merge pull request #4019 from shaedrich/fix-explore-feed
Browse files Browse the repository at this point in the history
Fix explore feed
  • Loading branch information
kenyonj authored Nov 6, 2023
2 parents 09e8708 + a273656 commit 75bfdbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feed.json.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ permalink: feed.json
],
"topics": [
{% for topic in topics %}
{% assign related = topic.related | split: ', ' %}
{% assign aliases = topic.aliases | split: ', ' %}
{
"topic_name": {{ topic.topic | jsonify }},
"created_by": {{ topic.created_by | jsonify }},
Expand All @@ -47,12 +49,12 @@ permalink: feed.json
"url": "{{ site.url }}{{ topic.url | remove_first: "/index.html" }}",
"wikipedia_url": {{ topic.wikipedia_url | jsonify }},
"related": [
{% for related_topic in topic.related %}
{% for related_topic in related %}
"{{ related_topic }}"{% unless forloop.last == true %},{% endunless %}
{% endfor %}
],
"aliases": [
{% for alias in topic.aliases %}
{% for alias in aliases %}
"{{ alias }}"{% unless forloop.last == true %},{% endunless %}
{% endfor %}
],
Expand Down

0 comments on commit 75bfdbc

Please sign in to comment.