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

github.com/vimux/blank.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2016-10-14 23:41:10 +0300
committervimux <vimux@protonmail.com>2016-10-14 23:41:10 +0300
commit406c5961cbce9b9defde833e3c68c73a0a05536e (patch)
treefd21f7fb40fdb52dce0295ae2eae794e569c4bd6 /layouts
Initial commit
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html10
-rw-r--r--layouts/_default/single.html22
-rw-r--r--layouts/index.html10
-rw-r--r--layouts/partials/article.html0
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--layouts/partials/header.html23
-rw-r--r--layouts/partials/pagination.html9
-rw-r--r--layouts/partials/sidebar.html14
-rw-r--r--layouts/partials/summary.html13
9 files changed, 106 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e8560c6
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,10 @@
+{{ partial "header.html" . }}
+ <main>
+ {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
+ {{ range $paginator.Pages }}
+ {{ partial "summary.html" . }}
+ {{ end }}
+ {{ partial "pagination.html" . }}
+ </main>
+{{ partial "sidebar.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 100644
index 0000000..f584e0f
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,22 @@
+{{ partial "header.html" . }}
+ <main>
+ <article>
+ <h1>{{ .Title }}</h1>
+ <time>{{ .Date.Format "02.01.2006 15:04" }}</time>
+ <div>
+ {{ .Content }}
+ </div>
+ <div>
+ <ul id="tags">
+ {{ range .Params.tags }}
+ <li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> </li>
+ {{ end }}
+ </ul>
+ </div>
+ <div>
+ {{ template "_internal/disqus.html" . }}
+ </div>
+ </article>
+ </main>
+{{ partial "sidebar.html" . }}
+{{ 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..e8560c6
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,10 @@
+{{ partial "header.html" . }}
+ <main>
+ {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
+ {{ range $paginator.Pages }}
+ {{ partial "summary.html" . }}
+ {{ end }}
+ {{ partial "pagination.html" . }}
+ </main>
+{{ partial "sidebar.html" . }}
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/partials/article.html b/layouts/partials/article.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/article.html
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..7e7d2b1
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,5 @@
+ <footer>
+ <p>&copy; {{ .Now.Year }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></p>
+ </footer>
+</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..63e6e84
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode | default "en-us" }}">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <title>{{ .Title }}</title>
+ {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
+ {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
+ {{ if .RSSlink -}}<link href="{{ .RSSlink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}">{{- end }}
+ {{ .Hugo.Generator }}
+</head>
+<body>
+ <header>
+ <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ <nav>
+ <ul>
+ {{ range .Site.Menus.main }}
+ <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li>
+ {{ end }}
+ </ul>
+ </nav>
+ </header> \ No newline at end of file
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
new file mode 100644
index 0000000..892afec
--- /dev/null
+++ b/layouts/partials/pagination.html
@@ -0,0 +1,9 @@
+<div>
+{{ if .Paginator.HasPrev }}
+ <a href="{{ .Paginator.Prev.URL }}">Previous Page</a>
+{{ end }}
+{{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}
+{{ if .Paginator.HasNext }}
+ <a href="{{ .Paginator.Next.URL }}">Next Page</a>
+{{ end }}
+</div> \ No newline at end of file
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
new file mode 100644
index 0000000..e941767
--- /dev/null
+++ b/layouts/partials/sidebar.html
@@ -0,0 +1,14 @@
+ <aside>
+ <div>
+ <div>
+ <h3>LATESTS POSTS</h3>
+ </div>
+ <div>
+ <ul>
+ {{ range first 5 .Site.Pages }}
+ <li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ </ul>
+ </div>
+ </div>
+ </aside> \ No newline at end of file
diff --git a/layouts/partials/summary.html b/layouts/partials/summary.html
new file mode 100644
index 0000000..5315fd4
--- /dev/null
+++ b/layouts/partials/summary.html
@@ -0,0 +1,13 @@
+ <article>
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
+ <time>{{ .Date.Format "02.01.2006 15:04" }}</time>
+ {{ range .Params.tags }}
+ <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ <div>
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <a href="{{ .Permalink }}">Read more...</a>
+ {{ end }}
+ </div>
+ </article> \ No newline at end of file