diff options
author | edavidaja <enyinnaya.aja@gmail.com> | 2019-05-08 19:01:00 +0300 |
---|---|---|
committer | edavidaja <enyinnaya.aja@gmail.com> | 2019-05-08 19:01:00 +0300 |
commit | 386501b4ed76b8c3f05d29ddd40b514bfcbf123d (patch) | |
tree | c7458655f4d56235685fbaaa854a96fd126a0326 |
copying docter assets
-rw-r--r-- | LICENSE | 20 | ||||
-rw-r--r-- | archetypes/default.md | 2 | ||||
-rw-r--r-- | exampleSite/config.toml | 0 | ||||
-rw-r--r-- | layouts/404.html | 0 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 11 | ||||
-rw-r--r-- | layouts/_default/list.html | 0 | ||||
-rw-r--r-- | layouts/_default/single.html | 6 | ||||
-rw-r--r-- | layouts/index.html | 0 | ||||
-rw-r--r-- | layouts/partials/footer.html | 7 | ||||
-rw-r--r-- | layouts/partials/head.html | 20 | ||||
-rw-r--r-- | layouts/partials/header.html | 8 | ||||
-rw-r--r-- | layouts/post/single.html | 10 | ||||
-rw-r--r-- | theme.toml | 21 |
13 files changed, 105 insertions, 0 deletions
@@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2019 E. David Aja + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/exampleSite/config.toml b/exampleSite/config.toml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/exampleSite/config.toml diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/404.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html> + {{- partial "head.html" . -}} + <body> + {{- partial "header.html" . -}} + <div id="content"> + {{- block "main" . }}{{- end }} + </div> + {{- partial "footer.html" . -}} + </body> +</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/_default/list.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..d21e435 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,6 @@ +{{ define "main" }} +<h2 class="page-title">{{ page.title }}</h2> + +{{ content }} + +{{ end }}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/layouts/index.html diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..4b19c43 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +<footer role="contentinfo"> + <div class="wrap"> + <p>This project is maintained by <a href="{{ site.author.url }}">{{ .Site.Params.name }}</a>.</p> + + <p>Hosted on <a href="http://pages.github.com/">GitHub Pages</a>.</p> + </div><!--/.wrap --> +</footer>
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..2d1c66f --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,20 @@ +<head> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta charset="utf-8"> + <title> + {{ if page.title == null }} + {{ site.name }} + {{ else }} + {{ page.title }} - {{ site.name }} + {{ end }} + </title> + <meta name="viewport" content="width=device-width"> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/normalize.css"> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/main.css"> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/css/syntax.css"> + <!--[if lt IE 9]> + <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> + <script src="{{ site.baseurl }}/assets/js/respond.min.js"></script> + <![endif]--> + +</head> diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..2c8df9e --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,8 @@ +<header role="banner"> + <div class="wrap"> + {{ if isset .Site.Params "logourl" }} + <img class="logo" src="{{ site.logourl }}" alt="{{ site.logoalt }}"> + {{ end }} + <h1 class="site-title"><a class="title-link" href="{{ site.baseurl }}/">{{ site.name }}</a></h1> + </div> +</header>
\ No newline at end of file diff --git a/layouts/post/single.html b/layouts/post/single.html new file mode 100644 index 0000000..9bf4856 --- /dev/null +++ b/layouts/post/single.html @@ -0,0 +1,10 @@ +{{ define "main" }} +<article> + <h2 class="page-title">{{ page.title }}</h2> + <p class="meta">{{ page.date | date_to_string }}</p> + + <div class="post"> + {{ content }} + </div> +</article> +{{ end }}
\ No newline at end of file diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..eedcafe --- /dev/null +++ b/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "docter" +license = "MIT" +licenselink = "https://github.com/edavidaja/hugo-docter/blob/master/LICENSE" +description = "cfpb docter for hugo" +homepage = "http://example.com/" +tags = ["documentation"] +features = [] +min_version = "0.41" + +[author] + name = "edavidaja" + homepage = "edavidaja.com" + +# If porting an existing theme +[original] + name = "docter" + homepage = "http://cfpb.github.io/DOCter" + repo = "https://github.com/cfpb/DOCter" |