Some layout fixes.

This commit is contained in:
Emiliano Tortorella 2019-01-29 18:51:53 -05:00
parent 69d5a3c783
commit dfe16bfc82
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<article class="{{ $.Param "index_article_class" | default "cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}"> <article class="{{ $.Param "index_article_class" | default "cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray"}}{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
{{ .Content }} {{ .Content }}
</article>
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}} {{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}}
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }} {{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
{{/* Create a variable with that section to use in multiple places. */}} {{/* Create a variable with that section to use in multiple places. */}}
@ -61,4 +61,6 @@
</div> </div>
{{ end }} {{ end }}
{{ end }} {{ end }}
</article>
{{ end }} {{ end }}

View File

@ -5,7 +5,7 @@
<header class="{{ .Site.Params.post_header_class | default "cover bg-top" }}" style="background-image: url('{{ $featured_image }}');"> <header class="{{ .Site.Params.post_header_class | default "cover bg-top" }}" style="background-image: url('{{ $featured_image }}');">
<div class="{{ .Site.Params.post_header_div_class | default "pb3-m pb6-l bg-black-60" }}"> <div class="{{ .Site.Params.post_header_div_class | default "pb3-m pb6-l bg-black-60" }}">
{{ partial "site-navigation.html" . }} {{ partial "site-navigation.html" . }}
<div class="tc-l pv6 ph3 ph4-ns"> <div class="tc-l pv6-l ph3 ph4-ns">
{{ if .Site.Params.post_header_show_title }} {{ if .Site.Params.post_header_show_title }}
<h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1> <h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1>
{{ with .Params.description }} {{ with .Params.description }}