From 13fee6dcdf160ac058631c2b6b4b84ec5bf7ca6d Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Thu, 31 Jan 2019 18:38:14 -0600 Subject: [PATCH] Cleanup --- CONTRIBUTING.md | 8 -- README.md | 10 ++- archetypes/print-version.md | 6 -- exampleSite/config.toml | 2 +- .../content/patterns/writing/snippets.md | 2 +- exampleSite/content/print-version.md | 8 -- layouts/404.html | 47 ------------ layouts/print-version/single.html | 74 ------------------- layouts/shortcodes/snippet.html | 4 - 9 files changed, 9 insertions(+), 152 deletions(-) delete mode 100644 CONTRIBUTING.md delete mode 100644 archetypes/print-version.md delete mode 100644 exampleSite/content/print-version.md delete mode 100644 layouts/print-version/single.html delete mode 100644 layouts/shortcodes/snippet.html diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 2fb2e9d..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,8 +0,0 @@ -# Contributing - -Thank you for considering contributing to the **Cupper** pattern library builder. The basic rules are as follows. - -* If you find a bug, a pull request is appreciated. -* If you don't know how to fix the bug, submit an issue with the "bug" label. -* Missing features are not bugs. If you think **Cupper** is missing an important feature, write an issue with the "feature" label. The more detail the better. -* It is not acceptable to personally attack or discriminate against other contributors. If you're a decent person, don't do it because you know it's not right. If you are a psychopath, don't do it because you are in a public forum where it might well damage your reputation. diff --git a/README.md b/README.md index 80049c6..1dcc48e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Hugo Themes demo, weekly-ish updates: TODO From the root of your site: ``` -git submodule add https://github.com/zwbetz-gh/cupper-hugo-theme.git themes/cupper +git submodule add https://github.com/zwbetz-gh/cupper-hugo-theme.git themes/cupper-hugo-theme ``` ## Updating @@ -30,7 +30,7 @@ git submodule update --remote --merge ## Run example site -From the root of `themes/cupper/exampleSite`: +From the root of `themes/cupper-hugo-theme/exampleSite`: ``` hugo server --themesDir ../.. @@ -38,12 +38,16 @@ hugo server --themesDir ../.. ## Configuration -Copy the `config.toml` or `config.yaml` from the `exampleSite` TODO, then edit as desired. +Copy the `config.toml` or `config.yaml` TODO from the `exampleSite` TODO, then edit as desired. ## Typography TODO +## Features supported from the original Cupper + +TODO list em + ## Favicons TODO link RealFaviconGenerator and give steps diff --git a/archetypes/print-version.md b/archetypes/print-version.md deleted file mode 100644 index d6e43ff..0000000 --- a/archetypes/print-version.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -title = "Cupper" -type = "print-version" -+++ - -You don't want to edit this file :-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 79f8467..d04c16e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1,7 +1,7 @@ baseURL = "https://example.com" languageCode = "en-us" title = "Cupper" -theme = "cupper" +theme = "cupper-hugo-theme" googleAnalytics = "UA-123456789-1" # Uncomment below to enable syntax highlighting diff --git a/exampleSite/content/patterns/writing/snippets.md b/exampleSite/content/patterns/writing/snippets.md index 6535b2b..c14c3d8 100644 --- a/exampleSite/content/patterns/writing/snippets.md +++ b/exampleSite/content/patterns/writing/snippets.md @@ -16,4 +16,4 @@ To make your snippets truly reusable, try to write them in such a way that they ## Visually hidden snippet -{{% snippet file="visually-hidden.md" %}} +{{/% snippet file="visually-hidden.md" %/}} diff --git a/exampleSite/content/print-version.md b/exampleSite/content/print-version.md deleted file mode 100644 index 9e01325..0000000 --- a/exampleSite/content/print-version.md +++ /dev/null @@ -1,8 +0,0 @@ -+++ -date = "2017-07-29T22:48:43+01:00" -title = "Print version" -type = "print-version" - -+++ - -You don't want to edit this file :-) diff --git a/layouts/404.html b/layouts/404.html index 89a3b3f..e69de29 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,47 +0,0 @@ -{{ define "main"}} -
-
- -

404

-

Oh dear. This page cannot be found.

-
-
-{{ end }} diff --git a/layouts/print-version/single.html b/layouts/print-version/single.html deleted file mode 100644 index 6c4092c..0000000 --- a/layouts/print-version/single.html +++ /dev/null @@ -1,74 +0,0 @@ -{{ define "title" }} - {{ .Site.Title }} -{{ end }} - -{{ define "nav" }} - -{{ end }} - -{{ define "main" }} -
- - {{ $current := . }} - {{ range $.Site.Home.Sections }} - {{ range .Pages.ByWeight }} -
-

- - {{ .Title }} -

- {{ .Content }} -
- {{ end }} - {{ range .Sections.ByWeight }} - {{ range .Pages.ByWeight }} -
-

- - {{ .Title }} -

- {{ .Content }} -
- {{ end }} - {{ end }} - {{ end }} -
-{{ end }} diff --git a/layouts/shortcodes/snippet.html b/layouts/shortcodes/snippet.html deleted file mode 100644 index 6cf97e1..0000000 --- a/layouts/shortcodes/snippet.html +++ /dev/null @@ -1,4 +0,0 @@ -{{$file := .Get "file"}} -{{ $contents := (printf "/snippets/%s" $file) | readFile }} -{{ $commented := add "\r\n" $contents }} -{{ $commented | markdownify }}