diff options
author | Athanasia Monika Mowinckel <a.m.mowinckel@psykologi.uio.no> | 2020-10-17 17:27:09 +0300 |
---|---|---|
committer | Athanasia Monika Mowinckel <a.m.mowinckel@psykologi.uio.no> | 2020-10-17 17:27:09 +0300 |
commit | 01f848487e6eb4cc5299ed8c406c047267c03c8f (patch) | |
tree | 3383906a863ce77854dd524565698e49177d46fe | |
parent | f10d846319a6d6d084115d6704967f8f95510418 (diff) |
home page working with blocks and baseof
-rw-r--r-- | layouts/index.html | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html index 2c2cf6b..c551d52 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,38 @@ -{{ partial "head/header.html" . }} -{{ partial "home/home.html" . }} -{{ partial "footer/footer.html" . }} +{{ define "main"}} + <main id="main"> + + <div class="container"> + + {{ if .Site.Params.showSubheader }} + {{ partial "home/subheader.html" . }} + {{ end }} + + {{ range .Site.Sections }} + {{ range .Sections.ByWeight }} + <div class="row section featured topspace"> + <h2 class="section-title"> + <span>{{.Title}}</span> + </h2> + {{ $stype := .Type}} + {{ if eq $stype "service"}} + {{ partial "home/services.html" . }} + + {{ else if eq $stype "recentwork" }} + {{ partial "home/recentworks.html" . }} + + {{ else if eq $stype "download" }} + {{ partial "home/download.html" . }} + + {{ else if eq $stype "client" }} + {{ partial "home/clients.html" . }} + + {{ else if eq $stype "single" }} + {{ partial "home/single.html" . }} + + {{ end }} + {{ end }} + {{ end }} + </div> <!-- /container --> + </main> + +{{ end }}
\ No newline at end of file |