diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-27 23:12:41 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-08-27 23:12:41 +0300 |
commit | bdc0b187ad1467d1ca603a8fec9948f6c262071c (patch) | |
tree | 75ea08b55a0a74fb379be7ef43e7daf2845dab26 | |
parent | 35945f7538293d1b21bf572e5bf239a62248d704 (diff) |
Only pass context to partials where it is needed
-rw-r--r-- | layouts/_default/baseof.html | 4 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 593ca4f..541ed5d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -34,7 +34,7 @@ {{ end }} </head> <body> - {{ partial "banner.html" .}} + {{ partial "banner.html" }} <main> <div class="u-wrapper"> <div class="u-padding"> @@ -42,6 +42,6 @@ </div> </div> </main> - {{ partial "footer.html" . }} + {{ partial "footer.html" }} </body> </html> diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 82943d7..2d958c2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,7 +4,7 @@ {{ partial "heading.html" . }} {{ .Content }} {{ partial "tags.html" . }} - {{ partial "comments.html" . }} + {{ partial "comments.html" }} </article> {{ end }} |