forked from phase2/particle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating to use new twig namespace approach
- Loading branch information
1 parent
019c76f
commit 6914f61
Showing
13 changed files
with
158 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"listeners":["\\aleksip\\DataTransformPlugin\\PatternLabListener","\\PatternLab\\Faker\\PatternLabListener"]} | ||
{"listeners":["\\aleksip\\DataTransformPlugin\\PatternLabListener","\\PatternLab\\Faker\\PatternLabListener","\\PatternLab\\TwigNamespaces\\PatternLabListener"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,49 @@ | ||
name: Pattern Lab Starter | ||
type: theme | ||
description: 'A theme with Pattern Lab' | ||
description: A theme with Pattern Lab | ||
base theme: stable | ||
core: 8.x | ||
|
||
# Libraries | ||
libraries: | ||
- patternlab/core | ||
|
||
regions: | ||
header: Header | ||
content: Content # the content region is required | ||
sidebar_first: 'Sidebar first' | ||
content: Content | ||
sidebar_first: Sidebar first | ||
footer: Footer | ||
|
||
# MUST install `components` module: `drush dl components && drush en components -y` | ||
# For compatibility with Pattern Lab templates; this list must | ||
# always be the folders immediately under the `$sourceDir` patterns folder | ||
# `$sourceDir` = defined in `pattern-lab/config/config.yml` under `sourceDir | ||
# patterns folder = `$sourceDir` + `_patterns/` | ||
component-libraries: | ||
base: | ||
paths: | ||
- source/_patterns/00-base | ||
- source/_patterns/00-base/01-colors | ||
- source/_patterns/00-base/animations/01-transitions | ||
- source/_patterns/00-base/breakpoints | ||
- source/_patterns/00-base/grids | ||
- source/_patterns/00-base/spacing | ||
- source/_patterns/00-base/utilities/borders | ||
atoms: | ||
paths: | ||
- source/_patterns/01-atoms | ||
- source/_patterns/01-atoms/01-typography/fonts | ||
- source/_patterns/01-atoms/01-typography/headings | ||
- source/_patterns/01-atoms/01-typography/lists | ||
- source/_patterns/01-atoms/01-typography/text | ||
- source/_patterns/01-atoms/buttons | ||
- source/_patterns/01-atoms/images | ||
molecules: | ||
paths: | ||
- source/_patterns/02-molecules | ||
- source/_patterns/02-molecules/branding | ||
- source/_patterns/02-molecules/caption-block | ||
organisms: | ||
paths: | ||
- source/_patterns/03-organisms | ||
- source/_patterns/03-organisms/grids/caption-grid-block | ||
- source/_patterns/03-organisms/site/site-footer | ||
- source/_patterns/03-organisms/site/site-header | ||
templates: | ||
paths: | ||
- source/_patterns/04-templates | ||
- source/_patterns/04-templates/content-types | ||
pages: | ||
paths: | ||
- source/_patterns/05-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
source/_patterns/03-organisms/site/site-header/site-header.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<header class="site-header"> | ||
{% include "@molecules/branding/branding.twig" %} | ||
{% include "@molecules/branding.twig" %} | ||
<h2>Site Header</h2> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% include "@organisms/site/site-header/site-header.twig" %} | ||
{% include "@organisms/site-header.twig" %} | ||
<main class="site-content"> | ||
{% block content %} | ||
<h2>Site Content Here</h2> | ||
{% endblock %} | ||
</main> | ||
{% include "@organisms/site/site-footer/site-footer.twig" %} | ||
{% include "@organisms/site-footer.twig" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% extends "@templates/site-layout.twig" %} | ||
{% block content %} | ||
|
||
{% include "@organisms/grids/caption-grid-block/caption-grid-block.twig" %} | ||
{% include "@organisms/caption-grid-block.twig" %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters