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

github.com/davidhampgonsalves/hugo-black-and-light-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hamp-Gonsalves <davidhampgonsalves@gmail.com>2017-01-10 04:14:21 +0300
committerDavid Hamp-Gonsalves <davidhampgonsalves@gmail.com>2017-01-10 04:14:21 +0300
commit729d3b5c22780aaa424ece7721e4acfa2c2718b6 (patch)
treee085c840ea9b29d796387430e073304499a0faec
parent76b374cc8d89eda2fb6b2f41964cae6ab4d28f21 (diff)
initial
-rw-r--r--archetypes/default.md2
-rw-r--r--layouts/.DS_Storebin0 -> 8196 bytes
-rw-r--r--layouts/404.html5
-rw-r--r--layouts/_default/.DS_Storebin0 -> 6148 bytes
-rw-r--r--layouts/_default/single.html26
-rw-r--r--layouts/index.html17
-rw-r--r--layouts/partials/.DS_Storebin0 -> 6148 bytes
-rw-r--r--layouts/partials/footer.html3
-rw-r--r--layouts/partials/header.html46
-rw-r--r--layouts/partials/styles.html352
-rw-r--r--static/.DS_Storebin0 -> 8196 bytes
-rw-r--r--static/favicon.icobin0 -> 1150 bytes
-rw-r--r--theme.toml12
13 files changed, 463 insertions, 0 deletions
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/layouts/.DS_Store b/layouts/.DS_Store
new file mode 100644
index 0000000..51d61b1
--- /dev/null
+++ b/layouts/.DS_Store
Binary files differ
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..af7a02a
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,5 @@
+{{ partial "header.html" . }}
+ <section id=not-found>
+ <a href=/>404</a>
+ </section>
+{{ partial "footer.html" . }}
diff --git a/layouts/_default/.DS_Store b/layouts/_default/.DS_Store
new file mode 100644
index 0000000..5008ddf
--- /dev/null
+++ b/layouts/_default/.DS_Store
Binary files differ
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..f1163cf
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,26 @@
+{{ partial "header.html" . }}
+
+<section id=content>
+ <h1>{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}</h1>
+
+ <div id=sub-header>
+ {{ .Date.Format .Site.Params.dateform }} ยท {{ .ReadingTime }} minute read
+ </div>
+
+ <div class="entry-content">
+ {{ .Content }}
+ </div>
+
+ <div id=links>
+ {{ if .PrevInSection }}
+ <a class="basic-alignment left" href="{{.PrevInSection.Permalink}}">&laquo; {{.PrevInSection.Title}}</a>
+ {{ end }}
+ {{ if .NextInSection }}
+ <a class="basic-alignment left" href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} &raquo;</a>
+ {{ end }}
+ </div>
+</section>
+
+{{ partial "footer.html" . }}
+
+
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..6c4bbb6
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,17 @@
+{{ partial "header.html" . }}
+
+<section id=content>
+ <ul class=posts_listing>
+ {{ range .Data.Pages.ByPublishDate }}
+ <li>
+ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <div id=date>
+ <time>{{ .Date.Format .Site.Params.dateform }}</time>
+ </div>
+ </li>
+ {{ end }}
+ </ul>
+</section>
+
+{{ partial "footer.html" . }}
+
diff --git a/layouts/partials/.DS_Store b/layouts/partials/.DS_Store
new file mode 100644
index 0000000..5008ddf
--- /dev/null
+++ b/layouts/partials/.DS_Store
Binary files differ
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..f5471aa
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,3 @@
+ </div>
+</body>
+</html>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..50da753
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="referrer" content="no-referrer">
+ <base href="{{ .Site.BaseURL }}">
+ {{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
+
+ <link rel="dns-prefetch" href="//fonts.googleapis.com/">
+
+ <link href='https://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
+ <link href='https://fonts.googleapis.com/css?family=Old+Standard+TT:400' rel='stylesheet' type='text/css'>
+
+ <title>
+ {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
+ {{ if eq $url "/" }}
+ {{ .Site.Title }}
+ {{ else }}
+ {{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}
+ {{ end }}
+ </title>
+ <link rel="canonical" href="{{ .Permalink }}">
+
+ {{ partial "styles.html" . }}
+
+
+ <link rel="shortcut icon" href="/favicon.ico">
+
+ {{ if .RSSLink }}
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ {{ end }}
+ </head>
+
+ <body lang="{{ .Site.Params.lang }}">
+ <section id=nav>
+ <h1><a href="/">{{ .Site.Params.author }}</a></h1>
+ <ul>
+ <li><a href="https://github.com/davidhampgonsalves">GitHub</a>
+ <li><a href="/projects/">Projects</a>
+ <li><a href="http://www.ethicalbarcode.com">Ethical Barcode</a>
+ </ul>
+ </section>
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
new file mode 100644
index 0000000..e8ceadd
--- /dev/null
+++ b/layouts/partials/styles.html
@@ -0,0 +1,352 @@
+<style>
+ * {
+ border:0;
+ font:inherit;
+ font-size:100%;
+ vertical-align:baseline;
+ margin:0;
+ padding:0;
+ color: black;
+ }
+
+ body {
+ font-family:'Open Sans', 'Myriad Pro', Myriad, sans-serif;
+ font-size:17px;
+ line-height:160%;
+ color:#1d1313;
+ max-width:700px;
+ margin:auto;
+ }
+
+ caption {
+ text-align:left;
+ font-weight:400;
+ vertical-align:middle;
+ }
+
+ a img {
+ border:none;
+ }
+
+ img {
+ margin: 10px auto 10px auto;
+ max-width: 100%;
+ }
+
+ pre, code {
+ font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ background-color: #f7f7f7;
+ }
+
+ code {
+ font-size: 12px;
+ padding: 4px;
+ }
+
+ pre {
+ margin-top: 0;
+ margin-bottom: 16px;
+ word-wrap: normal;
+ padding: 16px;
+ overflow: auto;
+ font-size: 85%;
+ line-height: 1.45;
+ }
+
+ pre>code {
+ padding: 0;
+ margin: 0;
+ font-size: 100%;
+ word-break: normal;
+ white-space: pre;
+ background: transparent;
+ border: 0;
+ }
+
+ pre code {
+ display: inline;
+ max-width: auto;
+ padding: 0;
+ margin: 0;
+ overflow: visible;
+ line-height: inherit;
+ word-wrap: normal;
+ background-color: transparent;
+ border: 0;
+ }
+
+ pre code::before,
+ pre code::after {
+ content: normal;
+ }
+
+ em,q,em,dfn {
+ font-style:italic;
+ }
+
+ .sans,html .gist .gist-file .gist-meta {
+ font-family:"Open Sans","Myriad Pro",Myriad,sans-serif;
+ }
+
+ .mono,pre,code,tt,p code,li code {
+ font-family:Menlo,Monaco,"Andale Mono","lucida console","Courier New",monospace;
+ }
+
+ .heading,.serif,h1,h2,h3 {
+ font-family:"Old Standard TT",serif;
+ }
+
+ strong {
+ font-weight:600;
+ }
+
+ q:before {
+ content:"\201C";
+ }
+
+ q:after {
+ content:"\201D";
+ }
+
+ del,s {
+ text-decoration:line-through;
+ }
+
+ blockquote {
+ font-family:"Old Standard TT",serif;
+ text-align:center;
+ padding:50px;
+ }
+
+ blockquote p {
+ display:inline-block;
+ font-style:italic;
+ }
+
+ blockquote:before,blockquote:after {
+ font-family:"Old Standard TT",serif;
+ content:'\201C';
+ font-size:35px;
+ color:#403c3b;
+ }
+
+ blockquote:after {
+ content:'\201D';
+ }
+
+ hr {
+ width:40%;
+ height: 1px;
+ background:#403c3b;
+ margin: 25px auto;
+ }
+
+ h1 {
+ font-size:35px;
+ }
+
+ h2 {
+ font-size:28px;
+ }
+
+ h3 {
+ font-size:22px;
+ margin-top:18px;
+ }
+
+ h1 a,h2 a,h3 a {
+ text-decoration:none;
+ }
+
+ h1,h2 {
+ margin-top:28px;
+ }
+
+ #sub-header, time {
+ color:#403c3b;
+ font-size:13px;
+ }
+
+ #sub-header {
+ margin: 0 4px;
+ }
+
+ #nav h1 a {
+ font-size:35px;
+ color:#1d1313;
+ line-height:120%;
+ }
+
+ .posts_listing a,#nav a {
+ text-decoration: none;
+ }
+
+ li {
+ margin-left: 20px;
+ }
+
+ ul li {
+ margin-left: 5px;
+ }
+
+ ul li {
+ list-style-type: none;
+ }
+ ul li:before {
+ content:"\00BB \0020";
+ }
+
+ #nav ul li:before, .posts_listing li:before {
+ content:'';
+ margin-right:0;
+ }
+
+ #content {
+ text-align:left;
+ width:100%;
+ font-size:15px;
+ padding:60px 0 80px;
+ }
+
+ #content h1,#content h2 {
+ margin-bottom:5px;
+ }
+
+ #content h2 {
+ font-size:25px;
+ }
+
+ #content .entry-content {
+ margin-top:15px;
+ }
+
+ #content time {
+ margin-left:3px;
+ }
+
+ #content h1 {
+ font-size:30px;
+ }
+
+ .highlight {
+ margin: 10px 0;
+ }
+
+ .posts_listing {
+ margin:0 0 50px;
+ }
+
+ .posts_listing li {
+ margin:0 0 25px 15px;
+ }
+
+ .posts_listing li a:hover,#nav li a:hover {
+ text-decoration: underline;
+ }
+
+ #nav {
+ text-align:center;
+ position:static;
+ margin-top:60px;
+ }
+
+ #nav ul {
+ display: table;
+ margin: 8px auto 0 auto;
+ }
+
+ #nav li {
+ list-style-type:none;
+ display:table-cell;
+ font-size:15px;
+ padding: 0 20px;
+ }
+
+ #links {
+ margin: 50px 0 0 0;
+ }
+
+ #links :nth-child(2) {
+ float:right;
+ }
+
+ #not-found {
+ text-align: center;
+ }
+
+ #not-found a {
+ font-family:"Old Standard TT",serif;
+ font-size: 200px;
+ text-decoration: none;
+ display: inline-block;
+ padding-top: 225px;
+ }
+
+ @media (max-width: 750px) {
+ body {
+ padding-left:20px;
+ padding-right:20px;
+ }
+
+ #nav h1 a {
+ font-size:28px;
+ }
+
+ #nav li {
+ font-size:13px;
+ padding: 0 15px;
+ }
+
+ #content {
+ margin-top:0;
+ padding-top:50px;
+ font-size:14px;
+ }
+
+ #content h1 {
+ font-size:25px;
+ }
+
+ #content h2 {
+ font-size:22px;
+ }
+
+ .posts_listing li div {
+ font-size:12px;
+ }
+ }
+
+ @media (max-width: 400px) {
+ body {
+ padding-left:20px;
+ padding-right:20px;
+ }
+
+ #nav h1 a {
+ font-size:22px;
+ }
+
+ #nav li {
+ font-size:12px;
+ padding: 0 10px;
+ }
+
+ #content {
+ margin-top:0;
+ padding-top:20px;
+ font-size:12px;
+ }
+
+ #content h1 {
+ font-size:20px;
+ }
+
+ #content h2 {
+ font-size:18px;
+ }
+
+ .posts_listing li div{
+ font-size:12px;
+ }
+ }
+</style>
diff --git a/static/.DS_Store b/static/.DS_Store
new file mode 100644
index 0000000..f046c02
--- /dev/null
+++ b/static/.DS_Store
Binary files differ
diff --git a/static/favicon.ico b/static/favicon.ico
new file mode 100644
index 0000000..5a3d0d9
--- /dev/null
+++ b/static/favicon.ico
Binary files differ
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..8e20356
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,12 @@
+name = "Black & Light"
+license = "GNU3.0"
+licenselink = "https://github.com/davidhampgonsalves/hugo-black-and-light-theme/blob/master/LICENSE"
+description = ""
+homepage = "https://github.com/davidhampgonsalves/hugo-black-and-light-theme"
+tags = ["", ""]
+features = ["", ""]
+min_version = 0.17
+
+[author]
+ name = "David Hamp-Gonsalves"
+ homepage = "https://davidhampgonsalves.com"