From 5c1cd5b1da446f51e535030072756126f7b038d7 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 24 Mar 2021 08:27:01 -0400 Subject: [PATCH] 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. --- examples/snowpack/astro/pages/plugins.hmx | 36 +++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/snowpack/astro/pages/plugins.hmx b/examples/snowpack/astro/pages/plugins.hmx index e016e0504..4062904e4 100644 --- a/examples/snowpack/astro/pages/plugins.hmx +++ b/examples/snowpack/astro/pages/plugins.hmx @@ -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.', + }, + }; + } +--- + ---- - 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.', - }, - }; - } ---- -

{ context.title }