Skip to content

Commit

Permalink
Import Source Sans Pro on pages that might need it
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewatson committed Apr 12, 2019
1 parent 948df1f commit d88ce77
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions 403.md
Expand Up @@ -27,3 +27,5 @@ category pages:

Otherwise, I recommend heading back to the [home page](/) and starting your
search from there.

*[URL]: Uniform Resource Locator
2 changes: 2 additions & 0 deletions 404.md
Expand Up @@ -24,3 +24,5 @@ category pages:

Otherwise, I recommend heading back to the [home page](/) and starting your
search from there.

*[URL]: Uniform Resource Locator
4 changes: 4 additions & 0 deletions _includes/head.html
Expand Up @@ -36,6 +36,10 @@

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/tonsky/FiraCode@1.206/distr/fira_code.css">
{% if page.layout == 'post' %}
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro"
rel="stylesheet">
{% endif %}

<link rel="stylesheet" type="text/css"
href="{{ "/assets/base.css" | relative_url }}"/>
Expand Down
5 changes: 2 additions & 3 deletions assets/default.css
Expand Up @@ -132,9 +132,8 @@ a[href*="blog/meta"]:hover,
max-width: 80ch;
}

.post-content:not(.post-aside):not(.post-image) > p:not(:first-of-type) {
font-family: "Source Sans Pro",
sans-serif !important;
.post-content:not(.post-image) > p:not(:first-of-type) {
font-family: "Source Sans Pro", sans-serif !important;
}

.post-culture hr,
Expand Down
2 changes: 2 additions & 0 deletions cv.md
Expand Up @@ -143,3 +143,5 @@ order: 20
* Redesigned and maintain the
[Physics of Life Group website](https://www.york.ac.uk/physics/research/physics-of-life)
and [@PhysLifeYork](https://twitter.com/PhysLifeYork) Twitter account

*[BPSI]: Biological Physical Sciences Institute

0 comments on commit d88ce77

Please sign in to comment.