diff options
author | Alexander 'AlexFinn' Ivanov <alex@alexfinn.eu> | 2014-06-24 15:52:18 +0400 |
---|---|---|
committer | Alexander 'AlexFinn' Ivanov <alex@alexfinn.eu> | 2014-06-24 15:52:18 +0400 |
commit | a38c3d73388268bd7bc69ea1eacfaf7d4ca07c9f (patch) | |
tree | e4e272f8839b6dd5c4d0923853651dd923d7e5c0 /layouts | |
parent | 5daed81bc97c5786ec1a86974c148fc5e9f38680 (diff) |
Added new files
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/indexes.html | 8 | ||||
-rw-r--r-- | layouts/_default/li.html | 5 | ||||
-rw-r--r-- | layouts/_default/single.html | 26 | ||||
-rw-r--r-- | layouts/chrome/about.html | 5 | ||||
-rw-r--r-- | layouts/chrome/analytics.html | 15 | ||||
-rw-r--r-- | layouts/chrome/disqus.html | 13 | ||||
-rw-r--r-- | layouts/chrome/footer.html | 13 | ||||
-rw-r--r-- | layouts/chrome/header.html | 25 | ||||
-rw-r--r-- | layouts/chrome/includes.html | 5 | ||||
-rw-r--r-- | layouts/chrome/menu.html | 7 | ||||
-rw-r--r-- | layouts/chrome/meta.html | 12 | ||||
-rw-r--r-- | layouts/index.html | 47 | ||||
-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, 251 insertions, 0 deletions
diff --git a/layouts/_default/indexes.html b/layouts/_default/indexes.html new file mode 100644 index 0000000..de38d4d --- /dev/null +++ b/layouts/_default/indexes.html @@ -0,0 +1,8 @@ +<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..8f2e22d --- /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..268f39c --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,26 @@ + {{ $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> + <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..a3f48dd --- /dev/null +++ b/layouts/chrome/analytics.html @@ -0,0 +1,15 @@ +<!-- Piwik --> +<script type="text/javascript"> + var _paq = _paq || []; + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u=(("https:" == document.location.protocol) ? "https" : "http") + "://stat.alexfinn.eu/"; + _paq.push(['setTrackerUrl', u+'piwik.php']); + _paq.push(['setSiteId', 4]); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; + g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); + })(); +</script> +<noscript><p><img src="http://stat.alexfinn.eu/piwik.php?idsite=4" style="border:0;" alt="" /></p></noscript> +<!-- End Piwik Code --> diff --git a/layouts/chrome/disqus.html b/layouts/chrome/disqus.html new file mode 100644 index 0000000..06d42af --- /dev/null +++ b/layouts/chrome/disqus.html @@ -0,0 +1,13 @@ +<div class="row"> + <div class="small-offset-1 small-10 columns"> + <div id="disqus_thread"></div> + <script type="text/javascript"> + var disqus_shortname = 'hey-its-alex'; + 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..2548b4c --- /dev/null +++ b/layouts/chrome/footer.html @@ -0,0 +1,13 @@ + + <footer> + Build with <a href="https://github.com/spf13/hugo">Hugo</a> + <p>© Alexander Ivanov 2014</p> + </footer> + </div> + </div> + </div> + </div> + </div> +</body> +{{ template "theme/chrome/analytics.html" }} +</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..8fd8141 --- /dev/null +++ b/layouts/chrome/header.html @@ -0,0 +1,25 @@ +<!doctype html> +<html lang="en"> + <head> + <title>ALEXFINN - {{ .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/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" }} + +<div class="container"> + <div class="content"> + <div class="row-fluid"> + <div class="span12"> + <div class="posts"> + diff --git a/layouts/chrome/includes.html b/layouts/chrome/includes.html new file mode 100644 index 0000000..63c9724 --- /dev/null +++ b/layouts/chrome/includes.html @@ -0,0 +1,5 @@ + + <link href="/css/milk.min.css" rel="stylesheet"> + <link href="/css/milk-responsive.min.css" rel="stylesheet"> + <link href="/css/style.css" rel="stylesheet" type="text/css" media="all"> + <link href="/css/fonts.css" 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..18878d2 --- /dev/null +++ b/layouts/chrome/menu.html @@ -0,0 +1,7 @@ +<div class="navbar navbar-fixed-top"> + <div id="navbar-inner"> + <div id="logo"> + <a href="http://ru.alexfinn.eu"><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..e9b62cf --- /dev/null +++ b/layouts/chrome/meta.html @@ -0,0 +1,12 @@ + <meta charset="utf-8"> + <title>ALEXFINN</title> + + <meta name="author" content="Alexander 'alexfinn' Ivanov"> + + <!-- 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..2c49674 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,47 @@ +<!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..42beea2 --- /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..3cac068 --- /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>Alexandre Normand</author> + <rights>Licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License by Alexandre Normand</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>Alexandre Normand</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 |