Changes Abolish the Family

This commit is contained in:
Pau
2022-12-23 13:59:55 +01:00
parent 84b8acf035
commit 64e060d51a
7 changed files with 93 additions and 108 deletions

View File

@ -1,18 +1,23 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}
<body>
<div class="columns">
<div class="column is-3-fullhd is-1-widescreen is-hidden-touch is-hidden-desktop-only"></div>
<div id="content-column" class="column is-6-widescreen is-8-desktop">
{{- partial "header.html" . -}}
{{- partial "nav.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
{{ $content_class := $.Page.Params.title | lower }}
{{ if eq (.Title | lower) "abolish-the-family" }}
<body id="abolish-the-family">
{{else}}
<body>
{{end}}
<div class="columns">
<div class="column is-3-fullhd is-1-widescreen is-hidden-touch is-hidden-desktop-only"></div>
<div id="content-column" class="column is-6-widescreen is-8-desktop">
{{- partial "header.html" . -}}
{{- partial "nav.html" . -}}
{{- block "main" . }}{{- end }}
{{- partial "footer.html" . -}}
</div>
<div id="octopus" class="column is-4-widescreen is-4-desktop is-hidden-touch ">
{{- block "octo" . }}{{- end }}
</div>
</div>
<div id="octopus" class="column is-4-widescreen is-4-desktop is-hidden-touch ">
{{- block "octo" . }}{{- end }}
</div>
</div>
</body>
</body>
</html>

View File

@ -1,6 +1,11 @@
<div class="hero header octopus-mobile">
<div class="hero-body">
<a class="button button-book">NEW BOOK&nbsp;<b>Abolish The Family</b></a><br />
{{ $content_class := $.Page.Params.title | lower }}
{{ if eq (.Title | lower) "abolish-the-family" }}
<a class="button is-outlined button-book" href="/writing/abolish-the-family/">NEW BOOK&nbsp;<b>Abolish The Family</b></a><br />
{{else}}
<a class="button button-book" href="/writing/abolish-the-family/">NEW BOOK&nbsp;<b>Abolish The Family</b></a><br />
{{end}}
<a href="/">
<p class="title is-size-0-1">
{{ site.Params.header.name }}

View File

@ -3,8 +3,8 @@
<ul>
<li{{ if eq $.Page.Params.Title "index" }} class="is-active"{{ end }}><a href="/">Home</a></li>
{{ range $nav_tab := site.Params.navbar }}
{{ $nav_title := replace $nav_tab "-" " " | title }}
{{ if eq $.Page.Params.title $nav_title }}
{{ $nav_title := replace $nav_tab "-" " " | title }}
{{ if eq $.Page.Params.title $nav_title }}
<li class="is-active"><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>
{{else}}
<li><a href="/{{$nav_tab}}">{{ $nav_title }}</a></li>