mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 00:52:43 +00:00
Some layout fixes.
This commit is contained in:
parent
69d5a3c783
commit
dfe16bfc82
@ -1,7 +1,7 @@
|
||||
{{ 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 }}">
|
||||
{{ .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. */}}
|
||||
{{ $mainSections := .Site.Params.mainSections | default (slice "post") }}
|
||||
{{/* Create a variable with that section to use in multiple places. */}}
|
||||
@ -61,4 +61,6 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -5,7 +5,7 @@
|
||||
<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" }}">
|
||||
{{ 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 }}
|
||||
<h1 class="f2 f1-l fw2 white-90 mb0 lh-title">{{ .Title | default .Site.Title }}</h1>
|
||||
{{ with .Params.description }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user