Work in progress — this is a proof-of-concept recipe used to develop and test the Quick scaffolding workflow. The API and config are not yet stable.
A drupal-recipe package that adds a minimal blog layer to a standard Drupal install.
- Adds a Keywords taxonomy vocabulary and an entity reference field (
field_keywords) to the Article content type - Creates a Writing view (
/writing) that lists articles by date, with both a page display and a block display - Sets the site front page to
/writing - Ships theme-asset templates (
theme-assets/templates/) thatdq:scaffoldinjects into the generated theme:content/node--article.html.twig— article card markupviews/views-view--writing.html.twig— the article list with right-aligned dates
- Ships a behaviour submodule (
module/, machine namedq_blog) thatdq:scaffoldassembles under the umbrella module and the recipe'sinstall:enables:src/Hook/BlogHooks.php— native OOP#[Hook]preprocessors for Article nodes and the Writing view, which prepare the template variables and build hand-rolled Schema.org JSON-LD (BlogPostingon the full article page, anItemListofBlogPostingfor the writing list). No SEO/metatag module; as a separate extension its hooks stack with the theme's own — no dispatcher.
Depends on the Article content type being present. Apply core/recipes/standard before this recipe, or any other recipe that installs Article.
This recipe is consumed automatically by Quick. Add "blog" to the recipes: list in config.dq.yml and run composer exec dq-install followed by drush dq:scaffold. See the Quick workflow for the full steps.
To apply it manually:
composer require drupal-quick/recipe-blog
drush recipe recipes/recipe-blog