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

github.com/bake/solar-theme-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbake <bake@192k.pw>2017-07-24 12:23:21 +0300
committerbake <bake@192k.pw>2017-07-24 12:23:21 +0300
commite92378b66c88bcd3dafac083ce0f0f4a71ff724c (patch)
tree5cc67e4051636c6141a13a35aaf71836358760ec /layouts
first commit
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html11
-rw-r--r--layouts/_default/single.html11
-rw-r--r--layouts/index.html1
-rw-r--r--layouts/partials/footer.html14
-rw-r--r--layouts/partials/header.html25
-rw-r--r--layouts/partials/navigation.html9
6 files changed, 71 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..34e8999
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,11 @@
+{{ range sort .Paginator.Pages }}
+<article class="post">
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
+
+ <div class="post-content">
+ <p>{{ .Summary | plainify | safeHTML }} {{ if .Truncated }} … {{ end }}</p>
+ </div>
+
+ <p class="meta">Posted on <span class="postdate">{{ .Date.Format "02. January 2006" }}</span></p>
+</article>
+{{ end }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..b7ca924
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,11 @@
+{{ partial "header.html" . }}
+<article class="post">
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a> {{ if .Draft }}(Draft){{ end }}</h1>
+
+ <div class="post-content">
+ {{ .Content | safeHTML }}
+ </div>
+
+ <p class="meta">Posted on <span class="postdate">{{ .Date.Format "02. January 2006" }}</span></p>
+</article>
+{{ 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..938f08c
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1 @@
+{{ partial "header.html" . }} {{ template "theme/_default/list.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 100644
index 0000000..0ff5fe6
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,14 @@
+</div>
+
+<footer id="footer">
+ <p class="copyright">Powered by <a href="http://ghost.org">Hugo</a> and the <a href="https://github.com/BakeRolls/solar-theme-hugo">Solar</a>-theme.</p>
+</footer>
+</div>
+
+<script src="{{ .Site.BaseURL }}js/highlight.min.js"></script>
+<script>
+ hljs.initHighlightingOnLoad()
+</script>
+</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..7099926
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="utf-8">
+ <title>{{ .Title }}</title>
+ <meta name="viewport" content="width=device-width">
+
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/hybrid.css">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css">
+ <link rel="stylesheet" href="{{ .Site.BaseURL }}css/colors-dark.css">
+</head>
+
+<body>
+ <header id="header">
+ <h1><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h1>
+ <p>{{ .Site.Params.Description }}</p>
+ </header>
+
+ <div id="page">
+ <div id="sidebar">
+ {{ partial "navigation.html" . }}
+ </div>
+
+ <div id="content"> \ No newline at end of file
diff --git a/layouts/partials/navigation.html b/layouts/partials/navigation.html
new file mode 100644
index 0000000..9f04bc4
--- /dev/null
+++ b/layouts/partials/navigation.html
@@ -0,0 +1,9 @@
+<nav>
+ {{ range .Site.Menus }}
+ <ul class="nav">
+ {{ range . }}
+ <li class="nav-current"><a href="{{ .URL }}"><span>{{ .Name }}</span></a></li>
+ {{ end }}
+ </ul>
+ {{ end }}
+</nav> \ No newline at end of file