a.no-underline class

This commit is contained in:
Pau
2022-12-27 01:31:14 +01:00
parent 64e060d51a
commit 4719c8a4d5
6 changed files with 14 additions and 6 deletions

View File

@ -254,7 +254,6 @@ hr {
}
.title {
font-family: $serif_font;
font-style: italic;
font-weight: 200;
}
@ -275,6 +274,10 @@ a {
text-decoration: underline;
}
a.no-underline {
text-decoration: none;
}
h1 {
font-family: $mono_font;
font-size: 21px;

View File

@ -3,8 +3,8 @@
{{ if eq (.Title | lower) "about" }}
<div class="column is-one-third">
<div class="headshot">
{{ $img := relURL "img/headshot_example.png" }}
{{ if isset $.Site.Params.about "headshot" }}
{{ $img := relURL "img/headshot_example.png" }}
{{ if isset $.Site.Params.about "headshot" }}
{{ if fileExists ( printf "static/img/%s" $.Site.Params.about.headshot ) }}
{{ $img := relURL ( printf "img/%s" $.Site.Params.about.headshot )}}
<img src='{{ $img }}'>

View File

@ -2,11 +2,11 @@
<div class="hero-body">
{{ $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 />
<a class="button is-outlined button-book no-underline" 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 />
<a class="button button-book no-underline" href="/writing/abolish-the-family/">NEW BOOK&nbsp;<b>Abolish The Family</b></a><br />
{{end}}
<a href="/">
<a class="no-underline" href="/">
<p class="title is-size-0-1">
{{ site.Params.header.name }}
</p>