diff options
author | Nelson/Roberto <dewittn@gmail.com> | 2020-05-12 17:20:25 +0300 |
---|---|---|
committer | Nelson/Roberto <dewittn@gmail.com> | 2020-05-12 17:20:25 +0300 |
commit | 24b4c90aac53d86cfdb66b1ca8293b2deec67a93 (patch) | |
tree | 95d2e96f9ec31dca90e0329d7be7b775c48b5ec8 /layouts | |
parent | 1eca6b1f54bd9a783361e70cf203b02d53ccd6d6 (diff) |
Chages for posting on Github
- Moved elements layout into exampleSite dir
- Updated config for demo site
- Minor tweaks to footer and header
- Added README.md, LICENSE, CONTRIBUTING.md and CHANGELOG.md
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 10 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 | ||||
-rw-r--r-- | layouts/section/elements.html | 16 |
4 files changed, 13 insertions, 19 deletions
diff --git a/layouts/index.html b/layouts/index.html index 56802ff..f414def 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -67,7 +67,7 @@ </header> {{ end }} <div class="row"> - {{ range first .postCount (where $.Site.RegularPages "Type" "blog") }} + {{ range first .postCount (where site.RegularPages "Type" "in" site.Params.mainSections) }} <div class="col-6 col-12-narrower"> <section class="box special"> {{ with partial "bannerURL" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4228eff..6095ddf 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,6 +6,14 @@ {{ end }} </ul> <ul class="copyright"> - <li>{{ .Site.Params.copyright }}</li><li>{{ .Site.Params.design | markdownify }}</li> + {{ with .Site.Params.copyright }} + <li>{{ . | markdownify }}</li> + {{ end }} + {{ with .Site.Params.design }} + <li>{{ . | markdownify }}</li> + {{ end }} + {{ with .Site.Params.author }} + <li>{{ . | markdownify }}</li> + {{ end }} </ul> </footer>
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a06b010..490c63c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,8 @@ {{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $options }} -<title>Alpha by HTML5 UP</title> +{{/* Uncomment to use main.css */}} +{{/* $style := resources.Get "sass/main.css" */}} +<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <link rel="stylesheet" href="{{ $style.RelPermalink }}" />
\ No newline at end of file diff --git a/layouts/section/elements.html b/layouts/section/elements.html deleted file mode 100644 index 5d9d083..0000000 --- a/layouts/section/elements.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main" }} -{{/* A custom layout for /elements that displays each subpage as a <sectino> */}} -<header> - <h2>{{ .Title }}</h2> - <p>{{ .Description }}</p> -</header> -{{ range .Pages }} -<div class="row"> - <div class="col-12"> - <section class="box"> - {{ .Content }} - </section> - </div> -</div> -{{ end }} -{{ end }}
\ No newline at end of file |