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

@ -7,6 +7,9 @@ title: index
<p class="red-text">Abolish the Family: A Manifesto for Care and Liberation <a href="https://www.versobooks.com/books/4075-abolish-the-family">Available For Pre-Order Now</a>.<p> <p class="red-text">Abolish the Family: A Manifesto for Care and Liberation <a href="https://www.versobooks.com/books/4075-abolish-the-family">Available For Pre-Order Now</a>.<p>
<div class="has-text-centered"> <div class="has-text-centered">
<image src="img/separator.jpg"> <image src="img/separator.jpg">
<image class="is-rounded" src="img/portrait.jpg">
{{ $img := relURL ( printf "img/%s" $.Site.Params.about.headshot )}}
<img src='{{ $img }}'>
</div> </div>
<h1>Im <b>Sophie Lewis</b>, writer, speaker, teacher, and recovering academic.</h1> <h1>Im <b>Sophie Lewis</b>, writer, speaker, teacher, and recovering academic.</h1>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"Target":"css/style.css","MediaType":"text/css","Data":{}}

View File

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

View File

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

View File

@ -2,11 +2,11 @@
<div class="hero-body"> <div class="hero-body">
{{ $content_class := $.Page.Params.title | lower }} {{ $content_class := $.Page.Params.title | lower }}
{{ if eq (.Title | lower) "abolish-the-family" }} {{ 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}} {{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}} {{end}}
<a href="/"> <a class="no-underline" href="/">
<p class="title is-size-0-1"> <p class="title is-size-0-1">
{{ site.Params.header.name }} {{ site.Params.header.name }}
</p> </p>