Zachary Betz 6 vuotta sitten
vanhempi
commit
13fee6dcdf

+ 0 - 8
CONTRIBUTING.md

@@ -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.

+ 7 - 3
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

+ 0 - 6
archetypes/print-version.md

@@ -1,6 +0,0 @@
-+++
-title = "Cupper"
-type = "print-version"
-+++
-
-You don't want to edit this file :-)

+ 1 - 1
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

+ 1 - 1
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" %/}}

+ 0 - 8
exampleSite/content/print-version.md

@@ -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 :-)

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 5
layouts/404.html


+ 0 - 74
layouts/print-version/single.html

@@ -1,74 +0,0 @@
-{{ define "title" }}
-  {{ .Site.Title }}
-{{ end }}
-
-{{ define "nav" }}
-<!-- silence is golden -->
-{{ end }}
-
-{{ define "main" }}
-  <main id="main">
-    <nav id="toc" class="toc patterns" aria-labelledby="toc-heading">
-      <h2 id="toc-heading">Table of contents</h2>
-      {{ $current := . }}
-      {{ range $.Site.Home.Sections }}
-        <ul id="patterns-list">
-          {{ range .Pages.ByWeight }}
-            <li class="pattern">
-              <a href="#{{ .Title | urlize }}" {{ if eq $current.Title .Title  }}aria-current="page"{{ end }}>
-                <svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
-                  <use xlink:href="#bookmark"></use>
-                </svg>
-                <span class="text">{{ .Title }}</span>
-              </a>
-            </li>
-          {{ end }}
-          {{ range .Sections.ByWeight }}
-            <li>
-              <h3>{{ .Title }}</h3>
-              <ul>
-                {{ range .Pages.ByWeight }}
-                  <li class="pattern">
-                    <a href="#{{ .Title | urlize }}" {{ if eq $current.Title .Title  }}aria-current="page"{{ end }}>
-                      <svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
-                        <use xlink:href="#bookmark"></use>
-                      </svg>
-                      <span class="text">{{ .Title }}</span>
-                    </a>
-                  </li>
-                {{ end }}
-              </ul>
-            </li>
-          {{ end }}
-        </ul>
-      {{ end }}
-    </nav>
-    {{ $current := . }}
-    {{ range $.Site.Home.Sections }}
-      {{ range .Pages.ByWeight }}
-        <div class="pattern-section">
-          <h1 id="{{ .Title | urlize }}" tabindex="-1">
-            <svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
-              <use xlink:href="#bookmark"></use>
-            </svg>
-            {{ .Title }}
-          </h1>
-          {{ .Content }}
-        </div>
-      {{ end }}
-      {{ range .Sections.ByWeight }}
-        {{ range .Pages.ByWeight }}
-          <div class="pattern-section">
-            <h1 id="{{ .Title | urlize }}" tabindex="-1">
-              <svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
-                <use xlink:href="#bookmark"></use>
-              </svg>
-              {{ .Title }}
-            </h1>
-            {{ .Content }}
-          </div>
-        {{ end }}
-      {{ end }}
-    {{ end }}
-  </main>
-{{ end }}

+ 0 - 4
layouts/shortcodes/snippet.html

@@ -1,4 +0,0 @@
-{{$file := .Get "file"}}
-{{ $contents := (printf "/snippets/%s" $file) | readFile }}
-{{ $commented := add "<!-- snippet -->\r\n" $contents }}
-{{ $commented | markdownify }}

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä