Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Update permalinks structure #20

Merged
merged 5 commits into from Apr 11, 2017
Merged

Conversation

query-string
Copy link
Contributor

This PR tweaks Middleman URL structure so built directories structure matches current content platform URs.

Belongs to #2194

@@ -1,6 +1,7 @@
- if articles && articles.any?

- articles.each_with_index do |article, index|
- article_category = defined?(category) ? category : nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Articles not have a category?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FanaHOVA I don't think such a case would be possible as long as at leas one category is required by Contentful validator.

I understand your confusion, but this statement has nothing about the inexistent category for article ¯_(ツ)_/¯ The main point of having it here is permalinks structure in the current Content Platform implementation, where each article could have several URLs according to selected category (see the issue #22).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@query-string 👍 sounds good, thank you!

@query-string query-string merged commit ee90764 into master Apr 11, 2017
@query-string query-string deleted the update-permalinks-structure branch July 27, 2017 04:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants