Skip to content

PostSources (in theme settings.yml) seems to imply it's a list, but a list doesn't work #87

Answered by daveaglick
godefroi asked this question in Q&A
Discussion options

You must be logged in to vote

I'm pretty sure it's just a single globbing pattern. Without looking too deep at the theme, the readme says:

PostSources: A globbing pattern where to find blog posts (defaults to posts/*).

And the default settings.yml has it as a scalar:

PostSources: posts/*

Likewise I see in the places where that setting is used to drive archives and feeds, it's fetched with GetString() which treats it as a single value (Statiq is smart enough to grab the first value in a collection when asking for a string representation). I.e., in the feed.yml file I see:

FeedSources: => GetString("PostSources")

I think the confusion might be over the pluralization of the setting name PostSources (as opposed to som…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@godefroi
Comment options

Answer selected by godefroi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #86 on July 22, 2021 18:26.