summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html17
-rw-r--r--layouts/_default/title.html4
-rw-r--r--layouts/index.html28
-rw-r--r--layouts/partials/base.html8
-rw-r--r--layouts/partials/base_footer.html8
-rw-r--r--layouts/partials/footer.html13
-rw-r--r--layouts/partials/header.html22
7 files changed, 100 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..f4d3437
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,17 @@
+{{ partial "base.html" . }}
+
+<div id="container">
+
+ <div>fcuny: <a href="/">home</a></div>
+
+ <header>
+ <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
+ </header>
+
+ <section>
+ <div id="entry"> {{ .Content }} </div>
+ </section>
+
+
+ {{ partial "base_footer.html" . }}
+
diff --git a/layouts/_default/title.html b/layouts/_default/title.html
new file mode 100644
index 0000000..aeab6c8
--- /dev/null
+++ b/layouts/_default/title.html
@@ -0,0 +1,4 @@
+<li class="article">
+ <div class="article-date">{{ dateFormat "2006.01.02" .Date }}</div>
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+</li>
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..38644fc
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+ <html lang="en-US">
+
+ <head>
+ {{ partial "header.html" . }}
+ </head>
+
+ <body>
+
+ <div id="container">
+
+ <p style="font-size: 36px; line-height:46px; font-weight: bold;">
+ Hi! My name is <a href="/about/">Franck Cuny</a> and this is my personal space, welcome!
+ </p>
+
+ <ul class="articles">
+ {{ range where .Data.Pages "Section" "post" }}
+ {{ .Render "title" }}
+ {{ end }}
+ </ul>
+
+ {{ partial "footer.html" . }}
+
+ </div>
+
+ </body>
+
+</html>
diff --git a/layouts/partials/base.html b/layouts/partials/base.html
new file mode 100644
index 0000000..cfc8ad1
--- /dev/null
+++ b/layouts/partials/base.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html>
+ <html lang="en-US">
+
+ <head>
+ {{ partial "header.html" . }}
+ </head>
+
+ <body>
diff --git a/layouts/partials/base_footer.html b/layouts/partials/base_footer.html
new file mode 100644
index 0000000..f4162e7
--- /dev/null
+++ b/layouts/partials/base_footer.html
@@ -0,0 +1,8 @@
+
+ {{ partial "footer.html" . }}
+
+</div>
+
+ </body>
+
+</html>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..12aa715
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,13 @@
+<footer>
+
+<div id="footer">
+
+ <p id='copyright'>&copy; 2008 &ndash; present Franck Cuny<br />
+ <a href="https://twitter.com/franckcuny">@franckcuny</a> <br />
+ <a href="https://github.com/franckcuny">github.com/franckcuny</a> <br />
+ franckcuny@gmail.com
+ </p>
+
+</div>
+
+</footer>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..ee15b88
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,22 @@
+<meta charset="utf-8"/>
+
+<title>{{ .Title }}</title>
+
+<meta name="author" content="Franck Cuny">
+<meta name="copyright" content="© Copyright 2008 to Present">
+
+<meta name="google-site-verification" content="zkHWYduyqP8GQs4IK3ltrU0pnVq4Eq8zpN91PUA34dI" />
+
+<meta name="viewport" content="width=device-width, initial-scale=1">
+
+<meta name="twitter:account_id" content="14234966">
+<meta name="twitter:card" content="summary">
+<meta name="twitter:creator" content="@franckcuny"/>
+<meta name="twitter:site" content="@franckcuny"/>
+<meta name="twitter:title" content="{{ .Title }}"/>
+<meta name="twitter:domain" content="franckcuny.github.io">
+
+<link href="//fonts.googleapis.com/css?family=Lora" rel="stylesheet">
+<link href='//fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet' type='text/css'>
+<link rel="stylesheet" href="/css/style.css" type="text/css"/>
+