This repository has been archived on 2023-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
sophie-lewis-hugo/layouts/partials/head.html

99 lines
2.5 KiB
HTML

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
{{/* scss compiling */}}
{{ $options := (dict "targetPath" "css/style.css" "outputStyle" "compressed") }}
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options }}
{{ template "_internal/twitter_cards.html" . }}
<link href='{{ $style.RelPermalink }}' rel="stylesheet">
<title>{{ $title }}</title>
{{- partial "octocss.html" . -}}
{{ if eq .Title "Writing" }}
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style> @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap'); </style>
<style>
.accordion {
cursor: pointer;
margin-bottom: 0 !important;
padding: 8px 0 8px 0;
}
.acc-panel {
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
border-bottom: 1px solid;
font-weight: 600;
}
.acc-panel-content {
padding-bottom: 20px;
}
.acc-panel p{
padding-bottom: 8px;
}
.acc-panel a {
color: #0C84DC;
text-decoration: underline;
}
#writing-page .thead {
font-family: IBMPlexSans;
}
.accordion .level-item {
font-family: IBMPlexSans;
}
.accordion .icon {
font-size: 1.5rem;
}
.writing-section {
padding-bottom: 64px;
}
#books-section {
padding-bottom: 24px;
}
#books-section h3 {
font-size: 21px;
font-weight: 700;
text-align: center;
height: 7rem;
}
.book-cell {
font-family: 'IBM Plex Mono';
text-align: center;
}
.book-cover img {
max-width: 140px;
}
.book-blurb {
font-family: 'IBM Plex Mono';
font-size: 12px;
padding-top: 10px;
}
.book-detail {
font-family: 'IBM Plex Mono';
font-size: 18px;
padding-top: 10px;
text-decoration: underline;
}
.book-detail a {
color: #000;
}
</style>
<script src="https://kit.fontawesome.com/a42e899e51.js" crossorigin="anonymous"></script>
{{ end }}
</head>