diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-11 17:39:13 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-11 17:39:13 +0300 |
commit | ba3d42bccd56487ad1d581ee949f257bea3628a4 (patch) | |
tree | 9f6d681f85b6a5247d50be1655a27ec86fcd70fe /layouts | |
parent | bfb1357fe591d020a5922c26c7fddb7221b69d98 (diff) |
:sparkles: Add blog page content
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.html | 40 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/blog.html | 2 |
3 files changed, 42 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..141989b --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,40 @@ + +<!DOCTYPE HTML> +<!-- + Dopetrope by HTML5 UP + html5up.net | @ajlkn + Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) +--> +<html> + {{ partial "htmlhead.html" . }} + <body class="homepage"> + <div id="page-wrapper"> + + <!-- Header --> + <div id="header-wrapper"> + <div id="header"> + + {{ partial "logo.html" . }} + {{ partial "nav.html" . }} + + </div> + </div> + + <!-- Main --> + <div id="main-wrapper"> + <div class="container"> + + {{ partial "blog.html" . }} + + </div> + </div> + + {{ partial "footer/index.html" . }} + + </div> + + + {{ partial "scripts/index.html" . }} + + </body> +</html> diff --git a/layouts/index.html b/layouts/index.html index 76c3414..e382940 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -44,7 +44,7 @@ </div> <footer> <ul class="actions"> - <li><a href="blog" class="button big">View All</a></li> + <li><a href="post" class="button big">View All</a></li> </ul> </footer> </div> diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index 693d815..3b04203 100644 --- a/layouts/partials/blog.html +++ b/layouts/partials/blog.html @@ -7,7 +7,7 @@ {{ range where .Data.Pages "Type" "post" }} <div class="6u 12u(mobile)"> <section class="box"> - <a href="{{ .Permalink }}" class="image featured"><img src="{{ .Params.thumbnail }}" alt="" /></a> + <a href="{{ .Permalink }}" class="image featured"><img src="{{ .Site.BaseURL }}{{ .Params.thumbnail }}" alt="" /></a> <header> <h3>{{ .Title }}</h3> <p>Posted {{ .Date.Format "2 Jan 2006" }}</p> |