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

github.com/meibenny/elephants.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Mei <meibenny@gmail.com>2018-01-01 23:33:04 +0300
committerBenny Mei <meibenny@gmail.com>2018-01-01 23:33:04 +0300
commit5fe2fbbddd798f0fc54afe888e5652fe72fecc59 (patch)
tree1d7ac412de8a608ee715e4c169efa0b1508009ee
initial commit
-rw-r--r--LICENSE.md20
-rw-r--r--archetypes/default.md2
-rw-r--r--layouts/404.html0
-rw-r--r--layouts/_default/list.html1
-rw-r--r--layouts/_default/single.html13
-rw-r--r--layouts/index.html18
-rw-r--r--layouts/partials/footer.html2
-rw-r--r--layouts/partials/header.html17
-rw-r--r--static/css/stylesheet.css34
-rw-r--r--theme.toml15
10 files changed, 122 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..a1f7830
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Benny Mei
+
+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..ac36e06
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,2 @@
++++
++++
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/404.html
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..5c3f32f
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1 @@
+Hello List \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..3db642b
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+<section class="blog-post">
+ <h1>{{ .Title }}</h1>
+ <div class="blog-post-subheader">
+ {{ .Date.Format (.Site.Params.dateform | default "January 2, 2006") }}
+ </div>
+ <div class="blog-post-content">
+ {{ .Content }}
+ </div>
+</section>
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..6efa0b1
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,18 @@
+{{ partial "header.html" . }}
+
+<section id=content>
+ <ul class=posts_listing>
+ {{ range .Data.Pages.ByPublishDate }}
+ <div id="posts">
+ <div id=date class="date-time-title">
+ <time>{{ .Date.Format (.Site.Params.dateform | default "Jan 2 2006") }}</time>
+ </div>
+ <div class="date-time-title post">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </div>
+ </div>
+ {{ end }}
+ </ul>
+ </section>
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..b317cc2
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,2 @@
+ </body>
+</html> \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..634e9ae
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
+
+ <title>{{.Title}}</title>
+
+ <link rel="stylesheet" href="/css/stylesheet.css">
+ </head>
+ <body>
+ <section id="page-title">
+ <h1><a href="/">{{ .Site.Params.sitename }}</a></h1>
+ </section>
+
diff --git a/static/css/stylesheet.css b/static/css/stylesheet.css
new file mode 100644
index 0000000..0a4736d
--- /dev/null
+++ b/static/css/stylesheet.css
@@ -0,0 +1,34 @@
+body {
+ font-family: 'Ubuntu', sans-serif;
+ color: black;
+ margin: auto;
+ max-width: 50em;
+}
+
+#page-title {
+ text-align: center;
+}
+
+#page-title h1 a, .post a {
+ color: black;
+}
+
+a {
+ text-decoration: none;
+}
+
+#page-title a:hover, .post a:hover {
+ text-decoration: underline;
+}
+
+.date-time-title {
+ display: inline-block;
+}
+
+#posts {
+ padding-left: 2em;
+}
+
+.post {
+ padding-left: 1em;
+} \ No newline at end of file
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..8e18657
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,15 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "Elephants"
+license = "MIT"
+licenselink = "https://github.com/meibenny/elephants/blob/master/LICENSE.md"
+description = "Minimal theme using the Ubuntu font."
+homepage = "http://example.com/"
+tags = []
+features = []
+min_version = "0.31.1"
+
+[author]
+ name = "Benny Mei"
+ homepage = "www.example.com" \ No newline at end of file