File tree Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 3
3
<div class =" l-container" >
4
4
5
5
{% 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 >
6
7
7
8
</div ><!-- end l-container-->
8
9
Original file line number Diff line number Diff line change 6
6
* The nav inside the footer
7
7
*/
8
8
.c-footer-nav {
9
- font-size : $font-size-sm-2 ;
9
+ font-size : $font-size-sm-2 ;
10
+ margin-bottom : $spacing ;
10
11
11
12
@media all and (min-width : $bp-med ) {
12
13
display : flex ;
Original file line number Diff line number Diff line change 8
8
.c-footer {
9
9
padding : $spacing-large 0 ;
10
10
}
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 17
17
const TwigRenderer = require ( '@basalt/twig-renderer' ) ;
18
18
const fs = require ( 'fs-extra' ) ;
19
19
const path = require ( 'path' ) ;
20
+ const chalk = require ( 'chalk' ) ;
20
21
21
22
let twigRenderer ;
22
23
let patternLabConfig = { } ;
@@ -90,7 +91,16 @@ const engine_twig_php = {
90
91
if ( results . ok ) {
91
92
resolve ( results . html + details ) ;
92
93
} 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
+ }
94
104
}
95
105
} )
96
106
. catch ( error => {
Original file line number Diff line number Diff line change 6
6
"dependencies" : {
7
7
"@basalt/twig-renderer" : " 0.13.1" ,
8
8
"@pattern-lab/core" : " ^5.7.0" ,
9
+ "chalk" : " ^4.0.0" ,
9
10
"fs-extra" : " 0.30.0"
10
11
},
11
12
"keywords" : [
You can’t perform that action at this time.
0 commit comments