File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <div class =" l-container" >
44
55 {% include " components/footer-nav.njk" %}
6+ <p class =' c-footer__note' ><a href =' https://www.netlify.com/' >This site is powered by Netlify</a ></p >
67
78 </div ><!-- end l-container-->
89
Original file line number Diff line number Diff line change 66 * The nav inside the footer
77 */
88.c-footer-nav {
9- font-size : $font-size-sm-2 ;
9+ font-size : $font-size-sm-2 ;
10+ margin-bottom : $spacing ;
1011
1112 @media all and (min-width : $bp-med ) {
1213 display : flex ;
Original file line number Diff line number Diff line change 88.c-footer {
99 padding : $spacing-large 0 ;
1010}
11+
12+ /* *
13+ * Footer note
14+ * 1) Small paragraph of text in the footer
15+ */
16+ .c-footer__note {
17+ font-size : $font-size-sm ;
18+
19+ a {
20+ text-decoration : underline ;
21+ }
22+ }
Original file line number Diff line number Diff line change 1717const TwigRenderer = require ( '@basalt/twig-renderer' ) ;
1818const fs = require ( 'fs-extra' ) ;
1919const path = require ( 'path' ) ;
20+ const chalk = require ( 'chalk' ) ;
2021
2122let twigRenderer ;
2223let patternLabConfig = { } ;
@@ -90,7 +91,16 @@ const engine_twig_php = {
9091 if ( results . ok ) {
9192 resolve ( results . html + details ) ;
9293 } else {
93- reject ( results . message ) ;
94+ // make Twig rendering errors more noticeable + exit when not in dev mode (or running the `patternlab serve` command)
95+ if (
96+ process . argv . slice ( 1 ) . includes ( 'serve' ) ||
97+ process . env . NODE_ENV === 'development'
98+ ) {
99+ reject ( chalk . red ( results . message ) ) ;
100+ } else {
101+ console . log ( chalk . red ( results . message ) ) ;
102+ process . exit ( 1 ) ;
103+ }
94104 }
95105 } )
96106 . catch ( error => {
Original file line number Diff line number Diff line change 66 "dependencies" : {
77 "@basalt/twig-renderer" : " 0.13.1" ,
88 "@pattern-lab/core" : " ^5.7.0" ,
9+ "chalk" : " ^4.0.0" ,
910 "fs-extra" : " 0.30.0"
1011 },
1112 "keywords" : [
You can’t perform that action at this time.
0 commit comments