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

github.com/siegerts/hugo-theme-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsiegerts <stephen.siegert@gmail.com>2019-02-02 04:30:03 +0300
committersiegerts <stephen.siegert@gmail.com>2019-02-02 04:30:03 +0300
commit39cad3e7b447e774b135dc135f9a6810442f9b51 (patch)
tree6208a0fc3cf7a1776b2abbcb77b2e133b91dc898
parent5ec36d6bb2bf402ac63a862e43fce69331c7fbf0 (diff)
continue to modify
-rw-r--r--archetypes/default.md11
-rw-r--r--archetypes/post.md13
-rw-r--r--archetypes/project.md13
-rw-r--r--config.toml22
-rw-r--r--layouts/_default/list.html22
-rw-r--r--layouts/_default/single.html21
-rw-r--r--layouts/index.html39
-rw-r--r--layouts/partials/footer.html11
-rw-r--r--layouts/partials/head_includes.html11
-rw-r--r--layouts/partials/header.html27
-rw-r--r--layouts/partials/meta.html43
-rw-r--r--layouts/partials/scripts.html7
-rw-r--r--static/css/style.css29
13 files changed, 269 insertions, 0 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
index ac36e06..65f7e2c 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -1,2 +1,13 @@
+++
+title = ""
+description = ""
+tags = [
+
+ "development",
+]
+topics = [
+ "Development",
+
+]
+date = {{ .Date }}
+++
diff --git a/archetypes/post.md b/archetypes/post.md
new file mode 100644
index 0000000..65f7e2c
--- /dev/null
+++ b/archetypes/post.md
@@ -0,0 +1,13 @@
++++
+title = ""
+description = ""
+tags = [
+
+ "development",
+]
+topics = [
+ "Development",
+
+]
+date = {{ .Date }}
++++
diff --git a/archetypes/project.md b/archetypes/project.md
new file mode 100644
index 0000000..cb745f7
--- /dev/null
+++ b/archetypes/project.md
@@ -0,0 +1,13 @@
++++
+Title = ""
+Date = "2019-01-07"
+Description = ""
+Tags = ["Development", ""]
+Topics = ["Development", ""]
+download_url = "http://github.com/siegerts/PROJECTNAME"
+project_description = "DESC"
+project_name = "PROJECTNAME"
+project_url = "URL"
+release_date = "DATE"
+version = "0.0"
++++
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..71c32d2
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,22 @@
+baseurl = ""
+title = ""
+theme ="hugo-theme-basic"
+languageCode = "en-us"
+googleAnalytics = ""
+copyright = ""
+
+[params]
+ twitter = ""
+
+[Permalinks]
+ post = "post/:slug"
+
+[privacy]
+ [privacy.googleAnalytics]
+ anonymizeIP = true
+ respectDoNotTrack = true
+ useSessionStorage = true
+ [privacy.twitter]
+ enableDNT = true
+ [privacy.youtube]
+ privacyEnhanced = true \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..dc7a7a1 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,22 @@
+{{ partial "header.html" . }}
+<body
+ lang="{{ .Site.LanguageCode }}"
+ class="sans-serif w-90 w-60-ns center center-ns mv2 mv5-ns"
+>
+ <section id="main">
+ <div>
+ <h1 id="title">{{ .Title }}</h1>
+ {{ range.Data.Pages }}
+ <ul id="list" class="pl0">
+ <li class="list pl0 lh-copy">
+ <a class="f3 dib pa1 black" href="{{ .Permalink}}">{{ .Title }}</a>
+ <span class="f6 gray">{{ .Date.Format "2006-01-02" }}</span>
+ </li>
+ </ul>
+ {{ end }}
+ </div>
+ </section>
+
+ <aside id="meta"></aside>
+ {{ partial "footer.html" . }}
+</body>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..e73dd26 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,21 @@
+{{ partial "header.html" . }}
+<body
+ lang="{{ .Site.LanguageCode }}"
+ class="sans-serif w-90 w-60-ns center center-ns mv2 mv5-ns"
+ itemscope
+ itemtype="http://schema.org/Article"
+>
+ {{ $baseurl := .Site.BaseURL }}
+
+ <section id="main">
+ <h1 itemprop="name" id="title">{{ .Title }}</h1>
+ <span class="f6 gray">{{ .Date.Format "2006-01-02" }}</span>
+
+ <article itemprop="articleBody" id="content" class="w-100 lh-copy">
+ {{ .Content }}
+ </article>
+ </div>
+ </section>
+
+ {{ partial "footer.html" . }}
+</body>
diff --git a/layouts/index.html b/layouts/index.html
index e69de29..39af225 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html
+ class=""
+ lang="{{ .Site.LanguageCode }}"
+ prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"
+>
+ <head>
+ <meta charset="utf-8" />
+
+ {{ partial "meta.html" . }}
+
+ <base href="{{ .Site.BaseURL }}" />
+ <title>{{ .Site.Title }}</title>
+ <link rel="canonical" href="{{ .Permalink }}" />
+ <link
+ href="{{ .RSSLink }}"
+ rel="alternate"
+ type="application/rss+xml"
+ title="{{ .Site.Title }}"
+ />
+
+ {{ partial "head_includes.html" . }}
+ </head>
+ <body
+ lang="{{ .Site.LanguageCode }}"
+ class="sans-serif w-90 w-60-ns center center-ns mv2 mv5-ns"
+ >
+ <section id="main">
+ <div>
+ <h1 id="title">☕ 🐶 {{.Site.Title}}</h1>
+ <div class="lh-copy">
+ <a class="f3 dib pa1 black" href="/post">posts</a>
+ </div>
+ </div>
+ </section>
+
+ {{ partial "footer.html" . }}
+ </body>
+</html>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index e69de29..abd583e 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -0,0 +1,11 @@
+<footer>
+ <div>
+ <p>
+
+ </p>
+ </div>
+ </footer>
+
+ {{ partial "scripts.html" . }}
+ </body>
+ </html> \ No newline at end of file
diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html
new file mode 100644
index 0000000..21cd58c
--- /dev/null
+++ b/layouts/partials/head_includes.html
@@ -0,0 +1,11 @@
+<link
+ rel="stylesheet"
+ href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"
+/>
+
+<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css" />
+
+<link
+ rel="stylesheet"
+ href="https://cdn.jsdelivr.net/npm/highlightjs@9.12.0/styles/github-gist.css"
+/>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e69de29..c9adfa0 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html
+ class=""
+ lang="{{ .Site.LanguageCode }}"
+ prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#"
+>
+ <head>
+ <meta charset="utf-8" />
+
+ {{ partial "meta.html" . }}
+
+ <base href="{{ .Site.BaseURL }}" />
+ <title>{{ .Title }}</title>
+ <link rel="canonical" href="{{ .Permalink }}" />
+
+ <link
+ href="{{ .RSSLink }}"
+ rel="alternate"
+ type="application/rss+xml"
+ title="{{ .Title }}"
+ />
+
+ {{ partial "head_includes.html" . }}
+ <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ </head>
+</html>
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
new file mode 100644
index 0000000..d2a293e
--- /dev/null
+++ b/layouts/partials/meta.html
@@ -0,0 +1,43 @@
+<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+<meta name="description" content="" />
+<meta name="HandheldFriendly" content="True" />
+<meta name="MobileOptimized" content="320" />
+<meta name="viewport" content="width=device-width, initial-scale=1" />
+
+{{ with.Description }}<meta name="description" content="{{ . }}" />
+{{ end }}
+<meta name="keywords" content="{{ if .Keywords }}{{ range.Keywords }}{{ . }},
+{{ end }}{{else if isset .Params "tags" }}{{ range.Params.tags }}{{ . }},
+{{ end }}{{ end }}">
+
+<!-- open graph -->
+<meta property="og:type" content="article" />
+<meta property="og:description" content="{{ .Description }}" />
+<meta property="og:title" content="{{ .Title }} : xiegert.com" />
+<meta property="og:site_name" content="xiegert" />
+<meta property="og:image" content="" />
+<meta property="og:image:type" content="image/jpeg" />
+<meta property="og:image:width" content="" />
+<meta property="og:image:height" content="" />
+<meta property="og:url" content="{{ .Permalink }}" />
+<meta property="og:locale" content="{{ .Site.LanguageCode }}" />
+<meta property="article:published_time" content="{{ .Date.Format "2006-01-02"}}
+" /> <meta property="article:modified_time" content="{{ .Date.Format "2006-01-02"}}
+" />
+
+{{if .Keywords }}
+{{ range.Keywords }}<meta property="article:tag" content="{{ . }}" />
+{{ end }}
+{{else if isset .Params "tags" }}
+{{ range.Params.tags }}<meta property="article:tag" content="{{ . }}" />
+{{ end }}
+{{ end }}
+
+<meta name="twitter:card" content="summary" />
+
+<meta name="twitter:site" content="" />
+<meta name="twitter:title" content="{{ .Title }} : xiegert.com" />
+<meta name="twitter:creator" content="{{ .Site.Params.twitter }}" />
+<meta name="twitter:description" content="{{ .Description }}" />
+<meta name="twitter:image:src" content="" />
+<meta name="twitter:domain" content="xiegert.com" />
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
new file mode 100644
index 0000000..34349a9
--- /dev/null
+++ b/layouts/partials/scripts.html
@@ -0,0 +1,7 @@
+<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.14.2/highlight.min.js"></script>
+
+{{ template "_internal/google_analytics_async.html" . }}
+
+<script>
+ hljs.initHighlightingOnLoad();
+</script>
diff --git a/static/css/style.css b/static/css/style.css
new file mode 100644
index 0000000..dbe0b3a
--- /dev/null
+++ b/static/css/style.css
@@ -0,0 +1,29 @@
+body {
+ -webkit-font-smoothings: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+code {
+ padding: 2px 4px;
+ font-size: 90%;
+ background-color: #eeeeee;
+ border-radius: 4px;
+}
+
+pre {
+ display: block;
+ padding: 9.5px;
+ margin: 0 0 10px;
+ line-height: 1.4;
+ word-break: break-all;
+ word-wrap: break-word;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+
+pre,
+code {
+ font-family: monocode, monospace;
+ -webkit-font-smoothings: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}