diff options
author | Alexander 'AlexFinn' Ivanov <alex@alexfinn.eu> | 2014-06-19 14:02:28 +0400 |
---|---|---|
committer | Alexander 'AlexFinn' Ivanov <alex@alexfinn.eu> | 2014-06-19 14:02:28 +0400 |
commit | 571bf45a3b080d16fd73817f14304059251734d3 (patch) | |
tree | 88554fce366151160d7d86a46c8572114160f04c /layouts | |
parent | 6fa3b459fea6b761c0e3705fadd9cb3030348c34 (diff) |
Added theme files
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/indexes.html | 6 | ||||
-rw-r--r-- | layouts/_default/li.html | 5 | ||||
-rw-r--r-- | layouts/_default/single.html | 28 | ||||
-rw-r--r-- | layouts/chrome/about.html | 5 | ||||
-rw-r--r-- | layouts/chrome/analytics.html | 10 | ||||
-rw-r--r-- | layouts/chrome/disqus.html | 14 | ||||
-rw-r--r-- | layouts/chrome/footer.html | 6 | ||||
-rw-r--r-- | layouts/chrome/header.html | 23 | ||||
-rw-r--r-- | layouts/chrome/includes.html | 4 | ||||
-rw-r--r-- | layouts/chrome/menu.html | 7 | ||||
-rw-r--r-- | layouts/chrome/meta.html | 12 | ||||
-rw-r--r-- | layouts/index.html | 45 | ||||
-rw-r--r-- | layouts/indexes/indexes.html | 14 | ||||
-rw-r--r-- | layouts/indexes/tag.html | 16 | ||||
-rw-r--r-- | layouts/rss.xml | 20 | ||||
-rw-r--r-- | layouts/shortcodes/endbox.html | 1 | ||||
-rw-r--r-- | layouts/shortcodes/fig.html | 18 | ||||
-rw-r--r-- | layouts/shortcodes/startbox.html | 1 |
18 files changed, 235 insertions, 0 deletions
diff --git a/layouts/_default/indexes.html b/layouts/_default/indexes.html new file mode 100644 index 0000000..c5af277 --- /dev/null +++ b/layouts/_default/indexes.html @@ -0,0 +1,6 @@ +<section id="main"> + <div> + <h1 id="title">{{ .Title }}</h1> + <ul></ul> + </div> +</section>
\ No newline at end of file diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..0376bbc --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,5 @@ +<li> + <a href="{{ .Permalink }}">{{ .Title }}</a> + <div class="meta">{{ .Date.Format "Mon, Jan 2, 2006" }}</div> +</li> +
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..0f01e0a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,28 @@ +{{ $baseurl := .Site.BaseUrl }} +{{ template "theme/chrome/header.html" . }} +<!-- CONTENT --> +<div class="post"> + <header class="post-header"> + <h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1> + <div class="post-time">{{ .Date.Format "January 2 2006" }}</div> + </header> + <div class="post-after"> + <div class="tags"> + {{ range .Params.tags }} + <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> + {{ end }} + </div> + </div> +</div> +<hr> +<div class="post content"> + {{ .Content }} +</div> +<!-- END CONTENT --> + +{{ template "theme/chrome/about.html" . }} + <nav id="pagination"> + {{if .Prev}}<a class="prev" href="{{.Prev.Permalink}}">Prev</a>{{end}} + {{if .Next}}<a class="next" href="{{.Next.Permalink}}">Next</a>{{end}} + </nav> +{{ template "theme/chrome/footer.html" . }} diff --git a/layouts/chrome/about.html b/layouts/chrome/about.html new file mode 100644 index 0000000..16950dc --- /dev/null +++ b/layouts/chrome/about.html @@ -0,0 +1,5 @@ +<div class="about"> + <p> + + </p> +</div>
\ No newline at end of file diff --git a/layouts/chrome/analytics.html b/layouts/chrome/analytics.html new file mode 100644 index 0000000..2142f36 --- /dev/null +++ b/layouts/chrome/analytics.html @@ -0,0 +1,10 @@ +<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', 'GoogleAnalyticsCode', 'hostname'); + ga('send', 'pageview'); + +</script> diff --git a/layouts/chrome/disqus.html b/layouts/chrome/disqus.html new file mode 100644 index 0000000..f26e332 --- /dev/null +++ b/layouts/chrome/disqus.html @@ -0,0 +1,14 @@ +<div class="row"> + <div class="small-offset-1 small-10 columns"> + <div id="disqus_thread"></div> + <script type="text/javascript"> + var disqus_shortname = 'shortname'; + var disqus_developer = 1; + </script> + + <script type="text/javascript" src="http://disqus.com/forums/antzucaro/embed.js"></script> + <noscript><a href="http://antzucaro.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a> + </div> + </div> + + <!-- END DISQUS -->
\ No newline at end of file diff --git a/layouts/chrome/footer.html b/layouts/chrome/footer.html new file mode 100644 index 0000000..a396c2a --- /dev/null +++ b/layouts/chrome/footer.html @@ -0,0 +1,6 @@ + <footer> + </footer> + </div> + </div> + </body> +</html>
\ No newline at end of file diff --git a/layouts/chrome/header.html b/layouts/chrome/header.html new file mode 100644 index 0000000..dffe80e --- /dev/null +++ b/layouts/chrome/header.html @@ -0,0 +1,23 @@ +<!doctype html> +<html lang="en"> + <head> + <title>Simple A - {{ .Title }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> + + {{ template "theme/chrome/includes.html" . }} + <link rel="shortcut icon" href="/images/simple-a.ico"> + <link rel="apple-touch-icon" href=""> + <link rel="canonical" href="{{ .Permalink }}"> + + <!-- atom & rss feed --> + <link href="/rss.xml" type="application/atom+xml" rel="alternate" title="{{ .Site.Title }}"> + + </head> + <body> + {{ template "theme/chrome/menu.html" }} + + <div class="container"> + <div class="content"> + <div class="posts"> + diff --git a/layouts/chrome/includes.html b/layouts/chrome/includes.html new file mode 100644 index 0000000..5bdb35c --- /dev/null +++ b/layouts/chrome/includes.html @@ -0,0 +1,4 @@ +<link href="/bootstrap/css/milk.min.css" rel="stylesheet"> +<link href="/bootstrap/css/milk-responsive.min.css" rel="stylesheet"> +<link href="/css/style.css?body=1" rel="stylesheet" type="text/css" media="all"> +<link href="/css/fonts.css?body=1" rel="stylesheet" type="text/css" media="all">
\ No newline at end of file diff --git a/layouts/chrome/menu.html b/layouts/chrome/menu.html new file mode 100644 index 0000000..c38beb2 --- /dev/null +++ b/layouts/chrome/menu.html @@ -0,0 +1,7 @@ +<div class="navbar navbar-fixed-top"> + <div class="navbar-inner"> + <div id="logo"> + <a href="http://127.0.0.1"><img src="/images/letter-a.png" width="100px"></img></a> + </div> + </div> +</div>
\ No newline at end of file diff --git a/layouts/chrome/meta.html b/layouts/chrome/meta.html new file mode 100644 index 0000000..1327502 --- /dev/null +++ b/layouts/chrome/meta.html @@ -0,0 +1,12 @@ +<meta charset="utf-8"> +<title>Simple A</title> + +<meta name="author" content="Author"> + +<!-- Enable responsive viewport --> +<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> + +<!-- Le HTML5 shim, for IE6-8 support of HTML elements --> +<!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> +<![endif]--> diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..aed54e5 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,45 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + {{ template "theme/chrome/meta.html" . }} + {{ template "theme/chrome/includes.html" . }} + <link rel="shortcut icon" href="/images/alexfinn.ico"> + <link rel="apple-touch-icon" href=""> + <link rel="canonical" href="{{ .Permalink }}"> + <!-- atom & rss feed --> + <link href="/rss.xml" type="application/atom+xml" rel="alternate" title="{{ .Site.Title }}"> + </head> + + <body> + {{ template "theme/chrome/menu.html" }} + +{{ $baseurl := .Site.BaseUrl }} + +<div class="container"> + <div class="content"> + + <div class="row-fluid"> + <div class="span12"> + <div class="posts"> + {{ range .Data.Pages }} + <article class="post"> + + <header class="post-header"> + <h1><a href="{{.RelPermalink }}">{{ .Title }}</a></h1> + <div class="post-time">{{ .Date.Format "January 2 2006" }}, {{ .FuzzyWordCount }} Words</div> + </header> + + <div class="post-after"> + <div class="tags"> + {{ range .Params.tags }} + <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> + {{ end }} + </div> + </div> + </article> + {{ end }} + </div> + </div> + </div> + +{{ template "theme/chrome/footer.html" }} diff --git a/layouts/indexes/indexes.html b/layouts/indexes/indexes.html new file mode 100644 index 0000000..938b002 --- /dev/null +++ b/layouts/indexes/indexes.html @@ -0,0 +1,14 @@ +{{ $baseurl := .Site.BaseUrl }} +{{ template "theme/chrome/header.html" . }} + + <section id="main"> + <div> + <h1 id="title">{{ .Title }}</h1> + <ul> + {{ $data := .Data }} + {{ range $key,$value := .Data.Index.ByCount }} + <li><a href="{{ $baseurl }}/tags/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> {{ $value.Count }} </li> + {{ end }} + </ul> + </div> + </section> diff --git a/layouts/indexes/tag.html b/layouts/indexes/tag.html new file mode 100644 index 0000000..9ddf3e8 --- /dev/null +++ b/layouts/indexes/tag.html @@ -0,0 +1,16 @@ +{{ template "theme/chrome/header.html" . }} +<!-- CONTENT --> +<div class="tag-list"> + <p id="tag-name"> + <h1>Tag: {{ .Title }}</h1> + </p> + {{ range .Data.Pages }} + <div class="one-post"> + <h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3> + <div class="post-time">{{ .Date.Format "January 2 2006" }}</div> + </div> + <hr> + {{ end }} +</div> + +{{ template "theme/chrome/footer.html" . }} diff --git a/layouts/rss.xml b/layouts/rss.xml new file mode 100644 index 0000000..c9ff732 --- /dev/null +++ b/layouts/rss.xml @@ -0,0 +1,20 @@ +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ .Title }} on {{ .Site.Title }} </title> + <link>{{ .Permalink }}</link> + <language>en-us</language> + <author>Author</author> + <rights>Licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License by Author</rights> + <updated>{{ .Date }}</updated> + {{ range .Data.Pages }} + <item> + <title>{{ .Title }}</title> + <link>{{ .Permalink }}</link> + <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate> + <author>Author</author> + <guid>{{ .Permalink }}</guid> + <description>{{ .Content | html }}</description> + </item> + {{ end }} + </channel> +</rss>
\ No newline at end of file diff --git a/layouts/shortcodes/endbox.html b/layouts/shortcodes/endbox.html new file mode 100644 index 0000000..7f5eaa3 --- /dev/null +++ b/layouts/shortcodes/endbox.html @@ -0,0 +1 @@ +</div>
\ No newline at end of file diff --git a/layouts/shortcodes/fig.html b/layouts/shortcodes/fig.html new file mode 100644 index 0000000..54d1794 --- /dev/null +++ b/layouts/shortcodes/fig.html @@ -0,0 +1,18 @@ +<!-- image --> +<figure {{ with .Get "class" }}class="{{.}}"{{ end }}> + {{ with .Get "link"}}<a href="{{.}}">{{ end }} + <img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} /> + {{ if .Get "link"}}</a>{{ end }} + {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}} + <figcaption>{{ if isset .Params "title" }} + {{ .Get "title" }}{{ end }} + {{ if or (.Get "caption") (.Get "attr")}}<p> + {{ .Get "caption" }} + {{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }} + {{ .Get "attr" }} + {{ if .Get "attrlink"}}</a> {{ end }} + </p> {{ end }} + </figcaption> + {{ end }} +</figure> +<!-- image -->
\ No newline at end of file diff --git a/layouts/shortcodes/startbox.html b/layouts/shortcodes/startbox.html new file mode 100644 index 0000000..af0d675 --- /dev/null +++ b/layouts/shortcodes/startbox.html @@ -0,0 +1 @@ +<div {{ with .Get "class" }}class="{{.}}"{{ end }}>
\ No newline at end of file |