diff --git a/content/patterns/code/_index.md b/content/patterns/code/_index.md deleted file mode 100644 index e369b94..0000000 --- a/content/patterns/code/_index.md +++ /dev/null @@ -1,3 +0,0 @@ -+++ -title = "Exhibiting code" -+++ diff --git a/content/patterns/coding/_index.md b/content/patterns/coding/_index.md new file mode 100644 index 0000000..1fac364 --- /dev/null +++ b/content/patterns/coding/_index.md @@ -0,0 +1,3 @@ ++++ +title = "Coding" ++++ diff --git a/content/patterns/code/code-blocks.md b/content/patterns/coding/code-blocks.md similarity index 99% rename from content/patterns/code/code-blocks.md rename to content/patterns/coding/code-blocks.md index 4f3c395..bd2464c 100644 --- a/content/patterns/code/code-blocks.md +++ b/content/patterns/coding/code-blocks.md @@ -1,5 +1,6 @@ +++ title = "Code blocks" +weight = 1 +++ Markdown already supports code samples both inline (using single backticks like \`some code here\`) and in blocks. **Infusion** will syntax highlight HTML, CSS, and JavaScript if you provide the correct language in the formulation of the block. diff --git a/content/patterns/code/codepen-embedding.md b/content/patterns/coding/codepen-embedding.md similarity index 98% rename from content/patterns/code/codepen-embedding.md rename to content/patterns/coding/codepen-embedding.md index ad7c7d2..956fd09 100644 --- a/content/patterns/code/codepen-embedding.md +++ b/content/patterns/coding/codepen-embedding.md @@ -1,5 +1,6 @@ +++ title = "CodePen embedding" +weight = 2 +++ Sometimes just pictures of the pattern you're documenting aren't enough. Interactive patterns benefit from live demos, so that readers can test their functionality. diff --git a/content/patterns/code/color-palettes.md b/content/patterns/coding/color-palettes.md similarity index 100% rename from content/patterns/code/color-palettes.md rename to content/patterns/coding/color-palettes.md diff --git a/content/patterns/code/writing-inline-demos.md b/content/patterns/coding/writing-inline-demos.md similarity index 99% rename from content/patterns/code/writing-inline-demos.md rename to content/patterns/coding/writing-inline-demos.md index 5e336b2..2818d13 100644 --- a/content/patterns/code/writing-inline-demos.md +++ b/content/patterns/coding/writing-inline-demos.md @@ -1,5 +1,6 @@ +++ title = "Writing inline demos" +weight = 3 +++ There are some issues with {{% pattern "CodePen embedding" %}}, like them not working offline. They also come with CodePen branding, which will clash with the pattern you're trying to illustrate. diff --git a/content/patterns/library-setup.md b/content/patterns/library-setup.md index d2a810a..c2bffee 100644 --- a/content/patterns/library-setup.md +++ b/content/patterns/library-setup.md @@ -1,5 +1,6 @@ +++ title = "Library setup" +tags = ["example tag", "quickstart"] +++ By now, you should have followed the {{% pattern "Installation" %}} instructions. You should have Hugo and Node installed, and a local copy of a forked version of **Infusion**. You should also have run `npm install` in the root of that codebase. diff --git a/docs/index.html b/docs/index.html index 8503478..c5c7ec1 100644 --- a/docs/index.html +++ b/docs/index.html @@ -141,34 +141,34 @@
  • -

    Exhibiting code

    +

    Coding