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

github.com/zhe/hugo-theme-slim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhe <neomana@gmail.com>2015-04-26 21:57:43 +0300
committerZhe <neomana@gmail.com>2015-04-26 21:57:43 +0300
commitbdddb39db2220b81377ef250378951be6f0395f4 (patch)
tree9c6f0e76f467269dec3215c6fefe64923e73b72e /layouts
parent26225381a7aaaaba66472aa6e3da173d4f6a4178 (diff)
massive updates, but still in beta.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/_default/single.html37
-rw-r--r--layouts/index.html37
-rw-r--r--layouts/partials/footer.html3
-rw-r--r--layouts/partials/head.html15
-rw-r--r--layouts/partials/header.html14
6 files changed, 106 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..4b400f4
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="">
+
+<head>
+ {{ partial "head.html" . }}
+</head>
+
+<body>
+ <div class="container">
+ {{ partial "header.html" . }}
+ <div class="content">
+ <div class="posts">
+ <div class="post">
+ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
+ <div class="post-content">
+ {{ .Content }}
+ </div>
+ </div>
+ </div>
+ </div>
+ {{ partial "footer.html" . }}
+ </div>
+ <script src="{{ .Site.BaseUrl }}/js/slim.js"></script>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-58516870-1', 'auto');
+ ga('send', 'pageview');
+
+</script>
+</body>
+
+</html>
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..1e59e69
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html lang="">
+
+<head>
+ {{ partial "head.html" . }}
+</head>
+
+<body>
+ <div class="container">
+ {{ partial "header.html" . }}
+ <div class="content">
+ <div class="posts">
+
+ {{ range .Data.Pages }}
+ <div class="post">
+ <h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+ {{ partial "footer.html" . }}
+ </div>
+ <script src="{{ .Site.BaseUrl }}/js/slim.js"></script>
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-58516870-1', 'auto');
+ ga('send', 'pageview');
+
+</script>
+</body>
+
+</html>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..b73607f
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,3 @@
+ <footer>
+ <p>Powered by <a href="http://gohugo.io">Hugo</a>. This theme—Slim—is open sourced on <a href="https://github.com/zhe/hugo-theme-slim">Github</a>.</p>
+ </footer>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..9be08bb
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,15 @@
+<meta http-equiv="content-type" content="text/html; charset=utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
+<title> {{ .Title }} &middot; {{ .Site.Title }} </title>
+
+<!-- CSS -->
+<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/normalize.css">
+<link rel="stylesheet" href="{{ .Site.BaseUrl }}/css/slim.css">
+<link href='http://fonts.useso.com/css?family=Open+Sans:400,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
+
+<!-- Icons -->
+<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png">
+<link rel="shortcut icon" href="/favicon.ico">
+
+<!-- RSS -->
+<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..e198f0a
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,14 @@
+<div class="header">
+ <h1 class="site-title"><a href="{{ .Site.BaseUrl }}">Zhe Zhang</a></h1>
+ <p class="site-tagline">A personal site made in Shanghai.</p>
+ <div class="nav">
+ <a class="nav-btn" href="#">
+ <span class="ci ci-burger"></span>
+ </a>
+ <ul class="nav-list">
+ <li><a href="https://github.com/zhe">Github</a></li>
+ <li><a href="https://twitter.com/neomana">Twitter</a></li>
+ <li><a href="http://linkedin.com/in/zhangzhe">LinkedIn</a></li>
+ </ul>
+ </div>
+</div>