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,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>