From 709dae1e35adaca147bcc8d1ff192f5120d6a38f Mon Sep 17 00:00:00 2001 From: kritoke Date: Sun, 22 Mar 2015 13:51:51 -0500 Subject: first commit --- LICENSE.md | 20 +++++++++++ LICENSE.txt | 22 ++++++++++++ archetypes/default.md | 4 +++ config.toml | 18 ++++++++++ layouts/404.html | 5 +++ layouts/_default/list.html | 9 +++++ layouts/_default/single.html | 8 +++++ layouts/index.html | 9 +++++ layouts/partials/disqus.html | 13 ++++++++ layouts/partials/footer.html | 11 ++++++ layouts/partials/google_analytics.html | 10 ++++++ layouts/partials/header.html | 16 +++++++++ layouts/partials/pagination.html | 18 ++++++++++ layouts/rss.xml | 21 ++++++++++++ readme.md | 61 ++++++++++++++++++++++++++++++++++ static/css/style.min.css | 1 + theme.toml | 6 ++++ 17 files changed, 252 insertions(+) create mode 100644 LICENSE.md create mode 100644 LICENSE.txt create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 layouts/404.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/disqus.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/google_analytics.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/pagination.html create mode 100644 layouts/rss.xml create mode 100644 readme.md create mode 100644 static/css/style.min.css create mode 100644 theme.toml diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..7251605 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2015 YOUR_NAME_HERE + +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/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..7c5f63a --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,22 @@ +Copyright (c) 2014 John Otander + +MIT License + +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..b67d0c2 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,4 @@ ++++ +description = "" +tags = [] ++++ diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..d78925c --- /dev/null +++ b/config.toml @@ -0,0 +1,18 @@ +contentdir = "content" +layoutdir = "layouts" +publishdir = "public" +builddrafts = false +canonifyurls = true +baseurl="" +title="Dark Simplicity" +author="administrator" +languageCode = "en-us" + +[taxonomies] + tag = "tags" + +[params] + #description = "" + #copyright="" + #google_analytics_id="" + #disqus_shortname="" diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..b0169d3 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,5 @@ +{{ partial "header.html" . }}{{ $baseurl := .Site.BaseUrl }}
 
+
+ 404 Page Not Found +
+ {{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..b967300 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,9 @@ +{{ partial "header.html" . }}{{ $baseurl := .Site.BaseUrl }}{{ range .Paginator.Pages }}{{ if eq .Type "post"}}
 
+
+ {{ .Title }} +
{{ if isset .Params "tags" }} +
tags:
+ {{ range .Params.tags }}{{ . }} {{ end }} +
+

{{.Summary}}

{{ else }} +

{{.Summary}}

{{ end }}{{ end }}{{ end }}{{ partial "pagination.html" . }}{{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..1478e0f --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,8 @@ +{{ partial "header.html" . }}{{ $baseurl := .Site.BaseUrl }}
 
+
+ {{ .Title }} +
{{ if isset .Params "tags" }} +
tags:
+ {{ range .Params.tags }}{{ . }} {{ end }} +
{{ end }} +
{{ .Content }}{{ partial "disqus.html" . }}
{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..b967300 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,9 @@ +{{ partial "header.html" . }}{{ $baseurl := .Site.BaseUrl }}{{ range .Paginator.Pages }}{{ if eq .Type "post"}}
 
+
+ {{ .Title }} +
{{ if isset .Params "tags" }} +
tags:
+ {{ range .Params.tags }}{{ . }} {{ end }} +
+

{{.Summary}}

{{ else }} +

{{.Summary}}

{{ end }}{{ end }}{{ end }}{{ partial "pagination.html" . }}{{ partial "footer.html" . }} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html new file mode 100644 index 0000000..36a144a --- /dev/null +++ b/layouts/partials/disqus.html @@ -0,0 +1,13 @@ +{{ if isset .Site.Params "disqus_shortname" }} +
+ +
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..bde6f79 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,11 @@ + + {{ partial "google_analytics.html" . }} + + + diff --git a/layouts/partials/google_analytics.html b/layouts/partials/google_analytics.html new file mode 100644 index 0000000..ef5c661 --- /dev/null +++ b/layouts/partials/google_analytics.html @@ -0,0 +1,10 @@ +{{ if isset .Site.Params "google_analytics_id" }} + +{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..cdb2275 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,16 @@ + + + + + {{ .Title }} + + + +
+ +
{{ .Site.Title }}{{ if .Site.Params.description }}  |{{ .Site.Params.description }} {{end}}
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html new file mode 100644 index 0000000..bde3966 --- /dev/null +++ b/layouts/partials/pagination.html @@ -0,0 +1,18 @@ +{{ if .Paginator.HasNext }} +
 
+ +{{ end }} diff --git a/layouts/rss.xml b/layouts/rss.xml new file mode 100644 index 0000000..fbe9ff8 --- /dev/null +++ b/layouts/rss.xml @@ -0,0 +1,21 @@ + + + {{ .Title }} on {{ .Site.Title }} + Hugo + {{ .Permalink }} + {{ with .Site.LanguageCode }}{{.}}{{end}} + {{ with .Site.Author.name }}{{.}}{{end}} + {{ with .Site.Copyright }}{{.}}{{end}} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} + {{ range first 15 .Data.Pages }} + + {{ .Title }} + {{ .Permalink }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} + {{with .Site.Author.name}}{{.}}{{end}} + {{ .Permalink }} + {{ .Content | html }} + + {{ end }} + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..09b1f12 --- /dev/null +++ b/readme.md @@ -0,0 +1,61 @@ +# Dark Simplicity + +Dark Simplicity is a minimalist oriented theme with a dark color scheme for [Hugo](http://gohugo.io/). + +## Supports the following built-in functions from Hugo: + +* Menus, either add menu = "top" in the page parameters or add the proper parameters for each menu entry in your config.toml. +* Pagination for posts type. +* Taxonomy in the form of tags. + +## Supports the following parameters: +* copyright, it supports safeHtml, so you can use HTML without problems. Defaults to © CurrentYear. All rights reserved. +* description, puts a tagline like this: |sample tag line +* google_analytics_id, put your google analytics id if you use it. +* disqus_shortname, put your shortname for your disqus account if you use it. + +## Notable Features +* Utilizes Sass and Susy for Generating the CSS and Grid. Includes the original SASS files so you can make modifications using the variables for easily changing colors used. +* Uses some Google fonts. +* Minimalist look and feel. +* Supports Google Analytics. +* Supports Disqus Comments. + +Example Configuration (config.toml): + +contentdir = "content" +layoutdir = "layouts" +publishdir = "public" +builddrafts = false +canonifyurls = true +baseurl="" +theme="darksimplicity" +title="Dark Simplicity" +author="administrator" +languageCode = "en-us" + +[taxonomies] + tag = "tags" + +[params] + description = "A Dark Minimalist Theme Built Using Sass/Susy for Hugo." + copyright="© 2015 Matt Rhone. All rights reserved." + google_analytics_id="XX-XXXXXXXX-X" + disqus_shortname="sitename" + +[[menu.top]] + name = "About" + pre = "" + weight = -110 + identifier = "about" + url = "/about/" +[[menu.top]] + name = "Twitter" + pre = "" + weight = -100 + url = "http://www.twitter.com/Username" +[[menu.top]] + name = "RSS" + pre = "" + weight = -90 + url = "index.xml" diff --git a/static/css/style.min.css b/static/css/style.min.css new file mode 100644 index 0000000..52d8cb7 --- /dev/null +++ b/static/css/style.min.css @@ -0,0 +1 @@ +/*! normalize.css v3.0.0 | MIT License | git.io/normalize *//*! normalize.css v3.0.0 | HTML5 Display Definitions | MIT License | git.io/normalize */@import url(http://fonts.googleapis.com/css?family=Lora);article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}/*! normalize.css v3.0.0 | Base | MIT License | git.io/normalize */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}/*! normalize.css v3.0.0 | Links | MIT License | git.io/normalize */a{background:transparent}a:active,a:hover{outline:0}/*! normalize.css v3.0.0 | Typography | MIT License | git.io/normalize */abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}/*! normalize.css v3.0.0 | Embedded Content | MIT License | git.io/normalize */img{border:0}svg:not(:root){overflow:hidden}/*! normalize.css v3.0.0 | Figures | MIT License | git.io/normalize */figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}/*! normalize.css v3.0.0 | Forms | MIT License | git.io/normalize */button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}/*! normalize.css v3.0.0 | Tables | MIT License | git.io/normalize */table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}body{line-height:1.6;font-weight:400;font-family:"Lora", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;background:#181818;color:#fff}p,a:hover,.post-list-pagination{color:#fff}a:hover{text-decoration:underline}.wrap{max-width:1120px;margin-left:auto;margin-right:auto}.wrap:after{content:" ";display:block;clear:both}h1,h2,h3,h4,h5,h6{color:#676767}.header,.navbar{width:100%;float:left;margin-left:0;margin-right:0}.header a{text-decoration:none;color:#fff;opacity:1;transition:opacity .55s ease-in-out;-moz-transition:opacity .55s ease-in-out;-webkit-transition:opacity .55s ease-in-out}.header a.active{color:#585858}.header a:hover{opacity:0.5}.header,.tags{color:#fff;font-weight:700}a.navbar-link,a.post-title-link{font-weight:700}.navbar-list{list-style:none;margin-bottom:0}.navbar-item{position:relative;float:left;margin-bottom:0}.navbar-link{text-transform:uppercase;font-size:14px;font-weight:900;letter-spacing:.2rem;margin-right:35px;text-decoration:none;color:#676767}.navbar-link.active{color:#585858}.navbar-link:hover{color:#aeaeae}.copyright{width:100%;float:left;margin-left:0;margin-right:0}.copyright p{font-size:small;color:#676767}.content-tags,.post-title{width:66.10169%;float:left;margin-right:1.69492%}@media (max-width: 1119px){.content-tags,.post-title{padding-left:10px}}.content-full{width:100%;float:left;margin-left:0;margin-right:0}@media (max-width: 1119px){.content-full{padding-left:10px}}.pagination{width:100%;float:left;margin-left:0;margin-right:0;text-align:center}@media (max-width: 1119px){.pagination{padding-left:10px}}.tags{width:32.20339%;float:right;margin-right:0;border-left:3px solid #808080;padding-left:8px;margin-top:4px;font-size:small}.tags a{font-size:small}.tags a,.pagination a{color:#676767;text-decoration:none}a.tag-link:hover,.pagination a:hover{color:#aeaeae;text-decoration:underline}p{margin-top:5px}.empty{width:100%;float:left;margin-left:0;margin-right:0}.post-title-link{font-weight:700;font-size:30px;color:#676767;text-decoration:none}.post-title-link:hover{color:#aeaeae} diff --git a/theme.toml b/theme.toml new file mode 100644 index 0000000..0091dd0 --- /dev/null +++ b/theme.toml @@ -0,0 +1,6 @@ +author = "Matt Rhone" +name = "darksimplicity" +description = "A Dark Minimalist Theme Built Using Sass/Susy for Hugo." +license = "MIT" +source_repo = "http://github.com/kritoke/darksimplicity" +tags = ["blog", "personal"] -- cgit v1.2.3