This commit is contained in:
Zachary Betz 2019-01-31 18:38:14 -06:00
parent 7802890078
commit 13fee6dcdf
9 changed files with 9 additions and 152 deletions

View File

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

View File

@ -17,7 +17,7 @@ Hugo Themes demo, weekly-ish updates: TODO
From the root of your site: 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 ## Updating
@ -30,7 +30,7 @@ git submodule update --remote --merge
## Run example site ## Run example site
From the root of `themes/cupper/exampleSite`: From the root of `themes/cupper-hugo-theme/exampleSite`:
``` ```
hugo server --themesDir ../.. hugo server --themesDir ../..
@ -38,12 +38,16 @@ hugo server --themesDir ../..
## Configuration ## 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 ## Typography
TODO TODO
## Features supported from the original Cupper
TODO list em
## Favicons ## Favicons
TODO link RealFaviconGenerator and give steps TODO link RealFaviconGenerator and give steps

View File

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

View File

@ -1,7 +1,7 @@
baseURL = "https://example.com" baseURL = "https://example.com"
languageCode = "en-us" languageCode = "en-us"
title = "Cupper" title = "Cupper"
theme = "cupper" theme = "cupper-hugo-theme"
googleAnalytics = "UA-123456789-1" googleAnalytics = "UA-123456789-1"
# Uncomment below to enable syntax highlighting # Uncomment below to enable syntax highlighting

View File

@ -16,4 +16,4 @@ To make your snippets truly reusable, try to write them in such a way that they
## Visually hidden snippet ## Visually hidden snippet
{{% snippet file="visually-hidden.md" %}} {{/% snippet file="visually-hidden.md" %/}}

View File

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

View File

@ -1,47 +0,0 @@
{{ define "main"}}
<main id="main" class="custom-404">
<div>
<svg focusable="false" aria-hidden="true" id="svg17557" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" height="300" width="300" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" viewBox="0 0 200.68132 201.9484">
<path id="path18122" style="fill:currentColor" d="m93.445 186.18c-9.3181-.95839-16.221-3.1758-22.129-7.1084-2.4158-1.6081-3.5517-2.546-5.6861-4.6949-5.3166-5.3527-9.1974-12.062-12.247-21.175-3.5356-10.564-5.565-23.163-6.2929-39.068-.18564-4.0562-.18139-5.8211.0149-6.2022.36615-.7107 1.3533-1.8483 2.1611-2.4905 5.9546-4.7339 20.506-7.3377 44.399-7.9452 10.884-.27673 24.77.31025 33.752 1.4268 8.6081 1.0701 14.103 2.4037 18.184 4.4135 1.514.74558 1.9175 1.0207 2.8462 1.9405 1.6485 1.6328 1.6776 1.7447 1.8604 7.1585.0815 2.4134.15966 4.4025.17362 4.4201.014.0176.37192-.10155.79547-.2648 1.9606-.7557 5.4856-1.8897 7.4188-2.3866 3.4803-.89461 4.6322-1.055 7.5772-1.0548 2.2812.00011 2.7738.0418 3.8219.32336 2.4593.66068 4.2879 1.8579 6.5898 4.3143 3.7398 3.991 5.7353 9.1755 5.5403 14.395-.35373 9.4692-7.7396 19.681-20.838 28.813-6.5178 4.5435-14.507 8.6528-21.442 11.029-3.6714 1.258-6.3697 1.9704-9.1721 2.4214l-1.318.21209-1.4432 1.1514c-6.937 5.5346-15.42 8.8867-25.719 10.164-3.1273.38768-6.3623.46386-8.8469.20831zm51.245-27.84c12.866-3.1338 22.611-10.731 25.885-20.178 1.3087-3.7759 1.2782-7.5513-.0817-10.134-1.2459-2.3664-3.7204-3.7774-6.6242-3.7774-2.2455 0-4.6077.65872-7.5722 2.1116-1.8817.92217-5.9349 3.4797-6.4943 4.0978-.197.21768-.35793.96062-.65668 3.0316-1.2792 8.868-3.5813 16.867-6.846 23.789l-.79064 1.6762.74092-.10105c.40751-.0556 1.5053-.28725 2.4395-.51481zm-39.881-11.38c2.0242-3.0409 3.8811-5.6978 4.1263-5.9041.85045-.71561 2.1154-.67999 2.9169.0821.26115.24832 2.151 2.9676 4.1997 6.0427l3.7249 5.5912.0359-18.318c.0198-10.075.0189-18.336-.002-18.356-.0208-.0208-1.088.11463-2.3715.30105-3.9101.56792-6.9264.78824-11.959.87353l-4.8127.0816.0337 10.561c.0444 13.893.18621 24.838.31993 24.692.059-.0646 1.7636-2.6055 3.7878-5.6464zm-8.8621-31.604c.0434-1.0974.096-1.3108.43075-1.7495.74121-.97122.6856-.96385 7.2839-.96618 8.0784-.003 10.804-.207 16.124-1.2078 2.7205-.51176 3.1672-.50492 3.8378.0588.68824.57851.89471 1.1459.89528 2.4604.00056 1.4741-.30216 1.3818 2.8769.87749 6.3714-1.0106 10.032-2.1365 11.456-3.5236.67245-.65504.69957-1.1507.10029-1.8332-.52438-.59724-1.3024-1.0575-2.6128-1.5457-6.5382-2.4358-20.852-3.9214-37.723-3.9152-16.822.006-31.408 1.5357-37.582 3.9409-1.2206.47549-2.4177 1.2925-2.743 1.872-.81334 1.4491 1.7536 2.9224 7.232 4.1508 6.5819 1.4758 17.731 2.5166 27.947 2.6088l2.4277.0219.0495-1.2499z"/>
<path id="steam1" style="stroke:currentColor;stroke-linecap:round;stroke-width:2.831;fill:none" d="m69.317 18.186c-16.697 13.051-12.991 23.992-.3056 33.933 16.392 13.012 12.685 23.953-.3056 33.933">
<animate attributeName="opacity" from="1" to="0" dur="2s" fill="freeze" repeatCount="indefinite"/>
</path>
<animate xlink:href="#steam1"
attributeName="d"
attributeType="XML"
from="m69.317 18.186c-16.697 13.051-12.991 23.992-.3056 33.933 16.392 13.012 12.685 23.953-.3056 33.933"
to="m68.63 18.53c-9.6052 7.0572-9.6052 17.155-2.0228 25.347 7.5637 6.9536 7.5637 17.051-.3056 25.347"
dur="2s"
fill="freeze"
repeatCount="indefinite" />
<path id="steam2" d="m97.479 17.843c-16.697 13.051-12.991 23.992-.3056 33.933 16.392 13.012 12.685 23.953-.3056 33.933" style="stroke:currentColor;stroke-linecap:round;stroke-width:2.831;fill:none">
<animate attributeName="opacity" from="1" to="0" dur="2s" begin="1s" fill="freeze" repeatCount="indefinite"/>
</path>
<animate xlink:href="#steam2"
attributeName="d"
attributeType="XML"
from="m97.479 17.843c-16.697 13.051-12.991 23.992-.3056 33.933 16.392 13.012 12.685 23.953-.3056 33.933"
to="m96.792 18.186c-9.6052 7.0572-9.6052 17.155-2.0228 25.347 7.5637 6.9536 7.5637 17.051-.3056 25.347"
dur="2s"
fill="freeze"
repeatCount="indefinite"
begin="1s" />
<path id="steam3" style="stroke:currentColor;stroke-linecap:round;stroke-width:2.831;fill:none" d="m125.98 18.873c-16.697 13.051-12.991 23.992-.3056 33.933 16.392 13.012 12.685 23.953-.3056 33.933">
<animate attributeName="opacity" from="1" to="0" dur="2s" begin="0.5s" fill="freeze" repeatCount="indefinite"/>
</path>
<animate xlink:href="#steam3"
attributeName="d"
attributeType="XML"
from="m125.98 18.873c-16.697 13.051-12.991 23.992-.3056 33.933 16.392 13.012 12.685 23.953-.3056 33.933"
to="m125.3 19.217c-9.6052 7.0572-9.6052 17.155-2.0228 25.347 7.5637 6.9536 7.5637 17.051-.3056 25.347"
dur="2s"
fill="freeze"
repeatCount="indefinite"
begin="0.5s" />
</svg>
<h1>404</h1>
<p>Oh dear. This page cannot be found.</p>
</div>
</main>
{{ end }}

View File

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

View File

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