Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

177: view example using default frontpage view #238

Merged
merged 4 commits into from
Jun 19, 2018

Conversation

evanmwillhite
Copy link
Contributor

Addresses #177

Not sure if we want to go down this road because it's pretty prescriptive, but here's a stab at this. It makes article teasers be a card molecule and the frontpage view be a card grid.

As an alternative, we could either name these files something that has to be renamed to work (e.g., templates/content/RENAME_node--article--teaser.html.twig) or not even include these in Emulsify but link to a gist of them (or something like that) from the main README. The latter would be my personal preference, but this is a common request we get.

@ModulesUnraveled
Copy link
Contributor

Haven't had a chance to review yet, but in theory, I'm in favor of adding this kind of thing to Emulsify.

Emulsify is an example theme with code that can be copied into custom themes, and adapted as needed.

As long as these Drupal-specific files aren't copied over to the cloned theme (or at least not by default) I think they're very useful to have in Emulsify to demonstrate how to map the Drupal data to the PL templates.

@evanmwillhite
Copy link
Contributor Author

Good point - I forget that cloning is now the recommendation rather than an option. In that case, I'm OK with including this as well.

Copy link
Contributor

@ModulesUnraveled ModulesUnraveled left a comment

Choose a reason for hiding this comment

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

Finally got around to reviewing this. I would love to get more examples like this in Emulsify

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants