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

github.com/schollz/onetwothree.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Scholl <zack.scholl@gmail.com>2017-11-02 21:06:24 +0300
committerZack Scholl <zack.scholl@gmail.com>2017-11-02 21:06:24 +0300
commit8fea40c5eaa6bf971f02935d1c3aa98af0785dde (patch)
tree7cc46c46c11c294a46d7fa55400de34f27add1af
first commit
-rwxr-xr-xLICENSE.md20
-rwxr-xr-xarchetypes/default.md2
-rwxr-xr-xlayouts/404.html0
-rwxr-xr-xlayouts/_default/list.html5
-rwxr-xr-xlayouts/_default/single.html32
-rwxr-xr-xlayouts/index.html5
-rwxr-xr-xlayouts/partials/footer.html3
-rwxr-xr-xlayouts/partials/header.html44
-rw-r--r--layouts/partials/middle.html16
-rwxr-xr-xstatic/css/style.css317
-rw-r--r--static/js/caption.js23
-rwxr-xr-xtheme.toml21
12 files changed, 488 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100755
index 0000000..6946a97
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2017 Zack
+
+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 100755
index 0000000..ac36e06
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,2 @@
++++
++++
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/layouts/404.html
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100755
index 0000000..41f4d47
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,5 @@
+{{ partial "header.html" . }}
+
+{{ partial "middle.html" . }}
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100755
index 0000000..631cad1
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,32 @@
+{{ partial "header.html" . }}
+
+
+<div class="content">
+ <h1>{{ .Title }} <aside>{{ range .Params.tags }}<a href="/tags/{{.}}/" class="w3-tag">/{{.}}</a>&nbsp;{{end}} </aside></h1>
+ {{ .Content }}
+</div>
+
+
+{{ if (eq .Type "post") }}
+<footer>
+ <p><small><em>Written {{ .Date.Format "January 2, 2006"}}. </em>
+ {{ if $.Site.Params.twitter }}
+ Leave a comment for me on Twitter <a href="https://twitter.com/intent/tweet?text=%40{{ $.Site.Params.twitter }}%20%23{{ replace (.URL) "/" "" }}%20">@{{ $.Site.Params.twitter }}</a>.
+ {{ end }}
+ </small></p>
+
+ <p>
+ {{ if .PrevInSection }}<a href="{{ .PrevInSection.URL }}">← {{ .PrevInSection.Title }}</a>&nbsp;{{end}}{{ if .NextInSection }}<a href="{{ .NextInSection.URL }}" style="float:right;">{{ .NextInSection.Title }} →</a>{{ end }}
+ </p>
+
+</span>
+
+</footer>
+{{ end }}
+
+
+
+
+
+
+{{ partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100755
index 0000000..6427f54
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,5 @@
+{{ partial "header.html" . }}
+
+{{ partial "middle.html" . }}
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100755
index 0000000..c077d89
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,3 @@
+
+</body>
+</html> \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100755
index 0000000..e75165e
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>{{ .Title }}</title>
+ <!-- Search Engine -->
+ <meta name="description" content="{{ .Description }}">
+ <!-- Schema.org for Google -->
+ <meta itemprop="name" content="{{ .Title }}">
+ <meta itemprop="description" content="{{ .Description }}">
+ <!-- Twitter -->
+ <meta name="twitter:card" content="summary">
+ <meta name="twitter:title" content="{{ .Title }}">
+ <meta name="twitter:description" content="{{ .Description }}">
+ <meta name="twitter:site" content="@yakczar">
+ <meta name="twitter:creator" content="@yakczar">
+ <!-- Open Graph general (Facebook, Pinterest & Google+) -->
+ <meta name="og:title" content="{{ .Title }}">
+ <meta name="og:description" content="{{ .Description }}">
+ <meta name="og:type" content="website">
+ <link rel="stylesheet" type="text/css" href="/css/style.css">
+ <script src="/js/caption.js"></script>
+
+<style>
+
+</style>
+
+</head>
+<body>
+
+<img src="https://analytics.schollz.com/1.png?page={{ .Permalink }}" width=1px height=1px style="float:right;">
+<header>
+ <a href="/">/posts</a>
+{{ range .Site.RegularPages }}
+ {{ if or (eq .Type "page") (eq .Type "about") }}
+ &nbsp;&nbsp;·&nbsp;<a href="{{ .RelPermalink }}" style="color:black;">/{{ .Title | lower }}</a>
+ {{ end }}
+{{ end }}
+
+{{ if .Draft }}
+DRAFT
+{{ end }}
+</header>
diff --git a/layouts/partials/middle.html b/layouts/partials/middle.html
new file mode 100644
index 0000000..fb9ad34
--- /dev/null
+++ b/layouts/partials/middle.html
@@ -0,0 +1,16 @@
+<div class="content">
+ {{ range first 100000 .Pages }}
+ {{ if eq .Type "post"}}
+ <p>
+ <aside>{{ .Date.Format "January 2, 2006"}}
+ {{ if .Params.tags }}
+ /// <em>{{ range .Params.tags }}<a href="/tags/{{.}}/">{{.}}</a>&nbsp;{{end}}</em>
+ {{ end }}
+ </aside>
+ <a href="{{ if .Slug }}/{{ .Slug }}{{ else }}{{ .URL}}{{end}}">{{ .Title }}</a>
+ </p>
+ {{ end }}
+ {{ end }}
+</div>
+
+
diff --git a/static/css/style.css b/static/css/style.css
new file mode 100755
index 0000000..ddffe73
--- /dev/null
+++ b/static/css/style.css
@@ -0,0 +1,317 @@
+@import url('https://fonts.googleapis.com/css?family=Merriweather');
+@import url('https://fonts.googleapis.com/css?family=Alegreya+Sans+SC');
+body, li p {
+ font-family: 'Merriweather', serif;
+}
+
+h1,h2,h3,h4,h5,h6,header,header.a {
+ text-transform: lowercase;
+ font-family: 'Alegreya Sans SC', sans-serif;
+}
+
+header,header.a {
+ font-weight: bold;
+}
+
+@media all {
+ html {
+ font-size: 18px;
+ }
+ body > * {
+ font-size: 100%;
+ margin-left: 7.5rem;
+ margin-right: 7.5rem;
+ }
+}
+@media all and (max-width:840px){
+ html {
+ font-size: 17px;
+ }
+ body > * {
+ margin-left: 5.5rem;
+ margin-right: 5.5rem;
+ }
+}
+@media all and (max-width:760px){
+ body > * {
+ margin-left: 2.5rem;
+ margin-right: 2.5rem;
+ }
+}
+@media all and (max-width:580px){
+ html {
+ font-size: 16px;
+ }
+ body > * {
+ margin: 0.7rem 1.5rem 0 1.5rem;
+ }
+}
+
+/* reset */
+* {
+margin: 0;
+padding: 0;
+}
+
+html {
+ height: 100%;
+}
+
+body {
+ padding: 0rem 0em 0rem 0em;
+ margin-left:auto;
+ margin-right:auto;
+ width:100%;
+ max-width:1000px;
+ min-height: 100%;
+ text-rendering: optimizeLegibility;
+ -moz-font-feature-settings: 'kern=1';
+ -moz-font-feature-settings: 'kern' 1;
+ -webkit-font-feature-settings: 'kern' 1;
+ -o-font-feature-settings: 'kern' 1;
+ -ms-font-feature-settings: 'kern' 1;
+ font-feature-settings: 'kern' 1;
+
+ text-rendering: optimizeLegibility;
+ -moz-font-feature-settings: 'liga=1';
+ -moz-font-feature-settings: 'liga' 1;
+ -webkit-font-feature-settings: 'liga' 1;
+ -o-font-feature-settings: 'liga' 1;
+ -ms-font-feature-settings: 'liga' 1;
+ font-feature-settings: 'liga' 1;
+}
+
+div.content {
+ display: block;
+ padding: 1rem 0rem 5rem 0;
+}
+
+header {
+ display:block;
+ padding: 0.5rem 0 0.5rem 0;
+ border-bottom: 0.10em solid black;
+}
+
+@media all and (max-width:520px) {
+ div.content {
+ padding: 0;
+ }
+}
+
+h1 {
+ display: block;
+ font-size: 170%;
+ line-height: 1.1;
+ margin-top: 1rem;
+ margin-bottom: 1.5rem;
+ padding-top: 0.02em;
+ -moz-hyphens: none;
+ -webkit-hyphens: none;
+ -o-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+aside {
+ font-size: 0.84rem;
+ line-height: 1.40;
+ color: #667;
+}
+
+aside em {
+ font-size: 0.7rem;
+}
+
+
+p {
+ margin-bottom: 1em;
+ line-height: 1.45;
+}
+
+ul,ol {
+ margin-bottom: 1em;
+ padding-left: 1em;
+}
+
+li {
+ line-height: 1.75;
+}
+
+
+table {
+ margin-bottom: 1.5em;
+ border-collapse: collapse;
+ width: 95%;
+}
+
+table tr + tr {
+ border-top: 1px solid #ccc;
+}
+table td + td {
+ border-left: 1px solid #ccc;
+}
+
+table td {
+ padding: 0.4em;
+ text-align: center;
+ -moz-hyphens: none;
+ -webkit-hyphens: none;
+ -o-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+table th {
+ font-weight: normal;
+ text-transform: uppercase;
+ font-size: 95%;
+ padding: 0.3rem 0.5rem 0.3rem 0.5rem;
+ line-height: 1.05;
+}
+
+img {
+ width: 100%;
+}
+
+
+
+
+a {
+ text-decoration: none;
+ color: inherit;
+ -moz-transition-property: background;
+ -webkit-transition-property: background;
+ transition-property: background;
+ -moz-transition-duration: 0.2s;
+ -webkit-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+}
+
+
+div.nav a:active div {
+ background: #cacaca;
+}
+
+a:active {
+ color: #777;
+}
+
+a:hover {
+ background: #fbf3f3;
+ -moz-transition-property: background;
+ -webkit-transition-property: background;
+ transition-property: background;
+ -moz-transition-duration: 0.2s;
+ -webkit-transition-duration: 0.2s;
+ transition-duration: 0.2s;
+ border-radius: 10px;
+}
+
+
+a:after {
+ position: relative;
+ content: "\FEFF°";
+ margin-left: 0.10em;
+ font-size: 80%;
+ top: -0.30em;
+ left: -0.1em;
+ color: #d21c1c;
+}
+
+
+code {
+ font-size: 95%;
+ -moz-hyphens: none;
+ -webkit-hyphens: none;
+ -o-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+
+pre {
+ font-size:0.8rem;
+ background: #f5f7f9;
+ padding: 1em;
+ margin-bottom:20px;
+ vertical-align: text-bottom;
+ white-space: pre-wrap; /* css-3 */
+ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
+ white-space: -pre-wrap; /* Opera 4-6 */
+ white-space: -o-pre-wrap; /* Opera 7 */
+ word-wrap: break-word; /* Internet Explorer 5.5+ */
+}
+
+figcaption {
+ font-weight: 400;
+ font-style: italic;
+ font-size: 0.7em/1.52;
+ line-height: 1.3;
+ color: #666665;
+ outline: 0;
+ z-index: 300;
+ text-align: center;
+}
+blockquote {
+ font-style: italic;
+ font-size: 1.1em;
+ margin: 0.7em 10px;
+ padding: 1.2em 20px;
+ margin-bottom: 0px;
+ quotes: "\201C""\201D""\2018""\2019";
+}
+blockquote:before {
+ color: #ccc;
+ content: open-quote;
+ font-size: 3em;
+ line-height: 0.1em;
+ margin-right: 0.25em;
+ vertical-align: -0.4em;
+}
+
+blockquote:after {
+ color: #ccc;
+ content: close-quote;
+ font-size: 3em;
+ line-height: 0.1em;
+ margin-right: 0.25em;
+ vertical-align: -0.4em;
+}
+blockquote p {
+ display: inline;
+}
+
+
+.twitter-tweet {
+ display: inline-block;
+ font-family: "Helvetica Neue", Roboto, "Segoe UI", Calibri, sans-serif;
+ font-size: 12px;
+ font-weight: bold;
+ line-height: 16px;
+ border-color: #eee #ddd #bbb;
+ border-radius: 5px;
+ border-style: solid;
+ border-width: 1px;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
+ margin: 10px 5px;
+ padding: 0 16px 16px 16px;
+ max-width: 468px;
+}
+
+.twitter-tweet p {
+ font-size: 16px;
+ font-weight: normal;
+ line-height: 20px;
+}
+
+.twitter-tweet a {
+ color: inherit;
+ font-weight: normal;
+ text-decoration: none;
+ outline: 0 none;
+}
+
+.twitter-tweet a:hover,
+.twitter-tweet a:focus {
+ text-decoration: underline;
+}
diff --git a/static/js/caption.js b/static/js/caption.js
new file mode 100644
index 0000000..95bcfdc
--- /dev/null
+++ b/static/js/caption.js
@@ -0,0 +1,23 @@
+function ready(fn) {
+ if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") {
+ var elements = document.querySelectorAll("img");
+ Array.prototype.forEach.call(elements, function(el, i) {
+ if (el.getAttribute("alt")) {
+ const caption = document.createElement('figcaption');
+ var node = document.createTextNode(el.getAttribute("alt"));
+ caption.appendChild(node);
+ const wrapper = document.createElement('figure');
+ wrapper.className = 'image';
+ el.parentNode.insertBefore(wrapper, el);
+ el.parentNode.removeChild(el);
+ wrapper.appendChild(el);
+ wrapper.appendChild(caption);
+ console.log(el);
+ console.log(el.outerHTML)
+ }
+ });
+ } else {
+ document.addEventListener('DOMContentLoaded', fn);
+ }
+}
+window.onload = ready;
diff --git a/theme.toml b/theme.toml
new file mode 100755
index 0000000..8397f28
--- /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 = "Best"
+license = "MIT"
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE.md"
+description = ""
+homepage = "http://example.com/"
+tags = []
+features = []
+min_version = "0.27.1"
+
+[author]
+ name = ""
+ homepage = ""
+
+# If porting an existing theme
+[original]
+ name = ""
+ homepage = ""
+ repo = ""