Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kritoke/darksimplicity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkritoke <kritoke@gmail.com>2015-03-22 21:51:51 +0300
committerkritoke <kritoke@gmail.com>2015-03-22 21:51:51 +0300
commit709dae1e35adaca147bcc8d1ff192f5120d6a38f (patch)
treec52d6aabb3c85ed3ac6492f52889921d9b15dc67
first commit
-rw-r--r--LICENSE.md20
-rw-r--r--LICENSE.txt22
-rw-r--r--archetypes/default.md4
-rw-r--r--config.toml18
-rw-r--r--layouts/404.html5
-rw-r--r--layouts/_default/list.html9
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/index.html9
-rw-r--r--layouts/partials/disqus.html13
-rw-r--r--layouts/partials/footer.html11
-rw-r--r--layouts/partials/google_analytics.html10
-rw-r--r--layouts/partials/header.html16
-rw-r--r--layouts/partials/pagination.html18
-rw-r--r--layouts/rss.xml21
-rw-r--r--readme.md61
-rw-r--r--static/css/style.min.css1
-rw-r--r--theme.toml6
17 files changed, 252 insertions, 0 deletions
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 }}<div class="empty">&nbsp;</div>
+ <div class="post-title">
+ 404 Page Not Found
+ </div>
+ {{ 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"}}<div class="empty">&nbsp;</div>
+ <div class="post-title">
+ <a class="post-title-link" href="{{ .Permalink }}">{{ .Title }}</a>
+ </div>{{ if isset .Params "tags" }}
+ <div class="tags">tags:</br>
+ {{ range .Params.tags }}<a class="tag-link" href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }} </a>{{ end }}
+ </div>
+ <div class="content-tags"><p>{{.Summary}}</p></div>{{ else }}
+ <div class="content-full"><p>{{.Summary}}</p></div> {{ 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 }}<div class="empty">&nbsp;</div>
+ <div class="post-title">
+ <a class="post-title-link" href="{{ .Permalink }}">{{ .Title }}</a>
+ </div>{{ if isset .Params "tags" }}
+ <div class="tags">tags:</br>
+ {{ range .Params.tags }}<a class="tag-link" href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }} </a>{{ end }}
+ </div>{{ end }}
+ <div class="content-full">{{ .Content }}{{ partial "disqus.html" . }}</div>{{ 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"}}<div class="empty">&nbsp;</div>
+ <div class="post-title">
+ <a class="post-title-link" href="{{ .Permalink }}">{{ .Title }}</a>
+ </div>{{ if isset .Params "tags" }}
+ <div class="tags">tags:</br>
+ {{ range .Params.tags }}<a class="tag-link" href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }} </a>{{ end }}
+ </div>
+ <div class="content-tags"><p>{{.Summary}}</p></div>{{ else }}
+ <div class="content-full"><p>{{.Summary}}</p></div> {{ 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" }}
+<div id="disqus_thread">
+ <script type="text/javascript">
+ var disqus_shortname = "{{ .Site.Params.disqus_shortname }}";
+ var disqus_identifier = "{{ .RelPermalink }}";
+ (function() {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ })();
+ </script>
+</div>
+{{ 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 @@
+ <div class="navbar">
+ <ul class="navbar-list" style="float:right">{{ $currentNode := . }}{{ range .Site.Menus.main }}
+ <li class="navbar-item"><a class="navbar-link" href="{{.Url}}">{{.Name}}</a></li>{{ end }}
+ </ul>
+ </div>
+ <div class="copyright"><p>{{ with .Site.Params.copyright | safeHtml }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}
+ </p>
+ </div> {{ partial "google_analytics.html" . }}
+</div>
+</body>
+</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" }}
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ ga('create', '{{ .Site.Params.google_analytics_id }}', 'auto');
+ ga('send', 'pageview');
+</script>
+{{ 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 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>{{ .Title }}</title>
+ <link rel="stylesheet" type="text/css" href="{{ .Site.BaseUrl }}/css/style.min.css">
+</head>
+<body>
+ <div class="wrap">
+ <div class="navbar">
+ <ul class="navbar-list" style="float:right">
+ {{ range .Site.Menus.top }}
+ <li class="navbar-item"><a class="navbar-link" href="{{.Url}}">{{.Name}}</a></li>{{ end }}
+ </ul>
+ </div>
+ <div class="header"><span style="font-size: 34px;"><a href="{{ .Site.BaseUrl }}">{{ .Site.Title }}</a></span>{{ if .Site.Params.description }}<span style="font-size:12px;">&nbsp;&nbsp;|<i>{{ .Site.Params.description }}</i> </span>{{end}}</div>
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 }}
+<div class="empty">&nbsp;</div>
+<div class="pagination">
+ <nav role="pagination" class="post-list-pagination">
+ {{ if .Paginator.HasPrev }}
+ <a href="{{.Paginator.Prev.Url}}" class="post-list-pagination-item post-list-pagination-item-prev">
+ &nbsp;&laquo;
+ </a>
+ {{ end }}
+ <span class="post-list-pagination-item post-list-pagination-item-current">Page {{.Paginator.PageNumber}} of {{.Paginator.TotalPages}}</span>
+ {{ if .Paginator.HasNext }}
+ <a href="{{.Paginator.Next.Url}}" class="post-list-pagination-item post-list-pagination-item-next">
+ &raquo;&nbsp;
+ </a>
+ {{ end }}
+ </nav>
+</div>
+{{ 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 @@
+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
+ <channel>
+ <title>{{ .Title }} on {{ .Site.Title }} </title>
+ <generator uri="https://gohugo.io">Hugo</generator>
+ <link>{{ .Permalink }}</link>
+ {{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
+ {{ with .Site.Author.name }}<author>{{.}}</author>{{end}}
+ {{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
+ <updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated>
+ {{ range first 15 .Data.Pages }}
+ <item>
+ <title>{{ .Title }}</title>
+ <link>{{ .Permalink }}</link>
+ <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
+ {{with .Site.Author.name}}<author>{{.}}</author>{{end}}
+ <guid>{{ .Permalink }}</guid>
+ <description>{{ .Content | html }}</description>
+ </item>
+ {{ end }}
+ </channel>
+</rss>
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 &copy; 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="&copy; 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"]