diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 34 | ||||
-rw-r--r-- | layouts/_default/list.html | 9 | ||||
-rw-r--r-- | layouts/_default/single.html | 3 | ||||
-rw-r--r-- | layouts/blog/single.html | 7 | ||||
-rw-r--r-- | layouts/index.html | 3 |
5 files changed, 56 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..07a8f32 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta name="yandex-xverification" content="fc9dd63070a12909"> + <meta charset="UTF-8" /> + <meta author="Mateja Maric" /> + + <!--<meta name="description"--> + <!--content="I am Mateja Maric and this is my personal web site. I am a student from Belgrade, Serbia. I am primarily interested in Unix-like operating systems and free(as in freedom) software.">--> + <!--<meta name="keywords" content="mateja, maric, homepage, site, blog, contact">--> + <!--<link rel="canonical" href="https://matejamaric.com" />--> + + <meta name="viewport" content="width=device-width initial-scale=1.0" /> + <link href="/style.css" rel="stylesheet" type="text/css" /> + <title>{{ .Title }}</title> +</head> + +<body> + <nav> + <div class="mm">Mateja Maric</div> + <a href="/" class="active">Home</a> + <a href="/blog/">Blog</a> + <a href="https://github.com/MatejaMaric">GitHub</a> + <a href="https://git.matejamaric.com">Git server</a> + <a href="/contact/">Contact</a> + </nav> + <main> + {{ block "main" . }}{{ end }} + </main> + +</body> + +</html> diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..2fcfeba --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,9 @@ +{{ define "main" }} +{{ .Content }} +<h3>Posts</h3> +<ul> + {{ range .Pages }} + <li>{{ .Date.Format "2 Jan 2006" }} - <a href="{{ .URL }}">{{ .Title }}</a></li> + {{ end }} +</ul> +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..4db531d --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,7 @@ +{{ define "main" }} +<h1>{{ .Title }}</h1> + +<em>{{ .Date.Format "2 Jan 2006" }}</em> + +{{ .Content }} +{{ end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..9983b08 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{ define "main" }} +{{ .Content }} +{{ end }} |