Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikL committed Dec 27, 2024
1 parent cd45654 commit 76e3a01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ops/deploy/deploy-documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ let processDocuments = async function (language, resourceType, resourceGlob) {
.sync();

for (let segment of segments) {
let segmentInfo = await getSegmentInfo(`${SOURCE_DIR}/${document.replace(/info.yml/g, '')}${segment}`, true, /^_teacher-comments\.md/.test(segment) ? "" : append)
let segmentInfo = await getSegmentInfo(`${SOURCE_DIR}/${document.replace(/info.yml/g, '')}${segment}`, true, /^teacher-comments\.md/.test(segment) ? "" : append)
let segmentPathInfo = parseResourcePath(`${SOURCE_DIR}/${document.replace(/info.yml/g, '')}${segment}`)

// skipping hidden segments
Expand Down
5 changes: 3 additions & 2 deletions ops/deploy/deploy-resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ let processResources = async function (languageGlob, resourceType, resourceGlob)
title: g.group || null,
author: g.author || null,
scope: g.scope || null,
showTitle: g.hasOwnProperty('showTitle') ? g.showTitle : null,
resources: [],
authors: [],
categories: [],
Expand Down Expand Up @@ -358,7 +359,7 @@ let processResources = async function (languageGlob, resourceType, resourceGlob)
}

if (
resourceFeedConfigs[language] &&
resourceFeedConfigs[language] && resourceFeedConfigs[language][resourceType] &&
resourceFeedConfigs[language][resourceType].groups.find((g) => g.scope === FEED_SCOPES.AUTHOR)
) {
let authors = new fdir()
Expand Down Expand Up @@ -388,7 +389,7 @@ let processResources = async function (languageGlob, resourceType, resourceGlob)
}

if (
resourceFeedConfigs[language] &&
resourceFeedConfigs[language] && resourceFeedConfigs[language][resourceType] &&
resourceFeedConfigs[language][resourceType].groups.find((g) => g.scope === FEED_SCOPES.CATEGORY)
) {
let categories = new fdir()
Expand Down
2 changes: 1 addition & 1 deletion src/en/devo/feed.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Devotional
groups:
- group: Correlated Bible & EGW
- group: "Discipleship Handbook: Correlated Bible & EGW"
reverse: true
view: square
resources:
Expand Down
1 change: 1 addition & 0 deletions src/en/explore/feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
- group: Categories
view: tile
scope: category
showTitle: false
categories:
- prayer

0 comments on commit 76e3a01

Please sign in to comment.