Fix snowpack test (#21)

Using the new `---` syntax, it must be at the top of the file. If it's not it will loop indefinitely.
This commit is contained in:
Matthew Phillips 2021-03-24 08:27:01 -04:00 committed by GitHub
parent 222e8e19c9
commit 5c1cd5b1da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,21 @@
---
import news from '../data/news.json';
import users from '../data/users.json';
import PluginSearchPage from '../components/PluginSearchPage.jsx';
export const layout = 'layouts/main.hmx';
export function setup({ context }) {
return {
context: {
title: 'The Snowpack Plugin Catalog',
description:
'Snowpack plugins allow for configuration-minimal tooling integration.',
},
};
}
---
<style lang="scss"> <style lang="scss">
.intro { .intro {
margin-top: 1rem; margin-top: 1rem;
@ -38,24 +56,6 @@
} }
</style> </style>
---
import news from '../data/news.json';
import users from '../data/users.json';
import PluginSearchPage from '../components/PluginSearchPage.jsx';
export const layout = 'layouts/main.hmx';
export function setup({ context }) {
return {
context: {
title: 'The Snowpack Plugin Catalog',
description:
'Snowpack plugins allow for configuration-minimal tooling integration.',
},
};
}
---
<h2 class="content-title">{ context.title }</h2> <h2 class="content-title">{ context.title }</h2>
<h3 class="pluginPage-subheading"> <h3 class="pluginPage-subheading">