Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function pages() {
return gulp.src(['src/pages/**/*.html', '!src/pages/archive/**/*.html'])
.pipe(panini({
root: 'src/pages',
data: 'src/data',
layouts: 'src/layouts',
partials: 'src/partials',
helpers: 'src/helpers'
Expand Down Expand Up @@ -108,7 +109,7 @@ function server(done) {
// Watch for file changes
function watch() {
gulp.watch('src/pages/**/*.html').on('all', gulp.series(pages, inline, browser.reload));
gulp.watch(['src/layouts/**/*', 'src/partials/**/*']).on('all', gulp.series(resetPages, pages, inline, browser.reload));
gulp.watch(['src/data/**/*', 'src/layouts/**/*', 'src/partials/**/*']).on('all', gulp.series(resetPages, pages, inline, browser.reload));
gulp.watch(['../scss/**/*.scss', 'src/assets/scss/**/*.scss']).on('all', gulp.series(resetPages, sass, pages, inline, browser.reload));
gulp.watch('src/assets/img/**/*').on('all', gulp.series(images, browser.reload));
}
Expand Down
22 changes: 22 additions & 0 deletions src/data/templates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
- html: basic.html
name: Basic Template
- html: drip.html
name: Drip Template
- html: hero.html
name: Hero Template
- html: marketing.html
name: Marketing Template
- html: newsletter.html
name: Newsletter Template
- html: newsletter-2.html
name: Newsletter 2 Template
- html: order.html
name: Order Template Template
- html: password.html
name: Password Template
- html: sidebar.html
name: Sidebar Template
- html: sidebar-hero.html
name: Sidebar Hero Template
- html: welcome.html
name: Welcome Template
17 changes: 4 additions & 13 deletions src/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<container>

<spacer size="24"></spacer>

<row>
<columns small="12">

Expand All @@ -19,17 +19,9 @@

<center>
<menu class="vertical">
<item href="{{root}}basic.html" target="_blank">Basic Template</item>
<item href="{{root}}drip.html" target="_blank">Drip Template</item>
<item href="{{root}}hero.html" target="_blank">Hero Template</item>
<item href="{{root}}marketing.html" target="_blank">Marketing Template</item>
<item href="{{root}}newsletter.html" target="_blank">Newsletter Template</item>
<item href="{{root}}newsletter-2.html" target="_blank">Newsletter 2 Template</item>
<item href="{{root}}order.html" target="_blank">Order Template</item>
<item href="{{root}}password.html" target="_blank">Password Template</item>
<item href="{{root}}sidebar.html" target="_blank">Sidebar Template</item>
<item href="{{root}}sidebar-hero.html" target="_blank">Sidebar Hero Template</item>
<item href="{{root}}welcome.html" target="_blank">Welcome Template</item>
{{#each templates}}
<item href="{{root}}{{this.html}}" target="_blank">{{this.name}}</item>
{{/each}}
</menu>
</center>

Expand All @@ -52,4 +44,3 @@
</center>

<spacer size="16"></spacer>