From 417657f138fbc5e194df3dd511e3b9c8e53920fd Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Sun, 21 Mar 2021 00:44:42 -0700 Subject: [PATCH] lots of improvements --- examples/snowpack/astro/components/Banner.hmx | 20 ++- examples/snowpack/astro/components/Hero.hmx | 23 +-- examples/snowpack/astro/components/Menu.hmx | 2 - examples/snowpack/astro/components/Nav.hmx | 113 ++++++++------- examples/snowpack/astro/components/Subnav.hmx | 26 ++-- examples/snowpack/astro/layouts/base.hmx | 52 +++---- .../astro/layouts/content-with-cover.hmx | 24 ++-- examples/snowpack/astro/layouts/content.hmx | 35 ++--- examples/snowpack/astro/layouts/main.hmx | 18 ++- examples/snowpack/astro/layouts/post.hmx | 18 +-- examples/snowpack/astro/pages/404.hmx | 13 +- examples/snowpack/astro/pages/guides.hmx | 67 +++++---- examples/snowpack/astro/pages/index.hmx | 25 ++-- examples/snowpack/astro/pages/news.hmx | 34 +++-- examples/snowpack/astro/pages/plugins.hmx | 31 ++-- .../pages/proof-of-concept-dynamic/[slug].hmx | 6 +- package-lock.json | 21 +++ package.json | 2 + snowpack-plugin.cjs | 50 +------ src/@types/astro.ts | 3 + src/codegen/index.ts | 64 ++++++--- src/compiler/interfaces.ts | 36 +---- src/compiler/parse/index.ts | 33 ++--- src/compiler/parse/read/script.ts | 13 +- src/compiler/parse/state/tag.ts | 42 +++--- src/generate.ts | 1 + src/markdown-encode.ts | 32 ----- src/micromark-collect-headers.ts | 35 +++++ src/runtime.ts | 9 +- src/transform2.ts | 132 +++++++++++------- test/fixtures/hmx-basic/astro/pages/index.hmx | 10 +- 31 files changed, 514 insertions(+), 476 deletions(-) delete mode 100644 src/markdown-encode.ts create mode 100644 src/micromark-collect-headers.ts diff --git a/examples/snowpack/astro/components/Banner.hmx b/examples/snowpack/astro/components/Banner.hmx index 233eedb3f..8879bf939 100644 --- a/examples/snowpack/astro/components/Banner.hmx +++ b/examples/snowpack/astro/components/Banner.hmx @@ -1,12 +1,10 @@ - -
-
-
- Snowpack 3.0 is out now! - - Read the announcement post → - -
+
+
+
+ Snowpack 3.0 is out now! + + Read the announcement post → +
-
- \ No newline at end of file +
+
\ No newline at end of file diff --git a/examples/snowpack/astro/components/Hero.hmx b/examples/snowpack/astro/components/Hero.hmx index e3dabe87a..d77f48573 100644 --- a/examples/snowpack/astro/components/Hero.hmx +++ b/examples/snowpack/astro/components/Hero.hmx @@ -1,5 +1,4 @@ - -
+

Snowpack

The faster frontend build tool.

@@ -7,11 +6,15 @@
Get started
- - + \ No newline at end of file diff --git a/examples/snowpack/astro/components/Subnav.hmx b/examples/snowpack/astro/components/Subnav.hmx index 49900e04b..3e2834595 100644 --- a/examples/snowpack/astro/components/Subnav.hmx +++ b/examples/snowpack/astro/components/Subnav.hmx @@ -1,19 +1,21 @@ - - -
} + +

Suggest a change

+ Edit this page on GitHub + \ No newline at end of file diff --git a/examples/snowpack/astro/layouts/base.hmx b/examples/snowpack/astro/layouts/base.hmx index 75150ad5d..c002416e7 100644 --- a/examples/snowpack/astro/layouts/base.hmx +++ b/examples/snowpack/astro/layouts/base.hmx @@ -1,56 +1,56 @@ - - + - + - {title} - - + {context.title} + + - - - - - + + + + + - - - - - + + + + + - + - + - + -