Skip to content

Commit c7a5fd1

Browse files
authored
INFRA: ignore fonts url, small style changes and add comments (pyOpenSci#107)
1 parent 1d7b6f7 commit c7a5fd1

File tree

3 files changed

+54
-9
lines changed

3 files changed

+54
-9
lines changed

.github/workflows/build-site.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ jobs:
3636
uses: chabad360/htmlproofer@master
3737
with:
3838
directory: '_site'
39+
arguments: |
40+
--ignore-urls "https://fonts.googleapis.com,https://fonts.gstatic.com"

_config.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ masthead_title : # overrides the website title displayed in the masthe
2929
# breadcrumbs : false # true, false (default)
3030
words_per_minute : 200
3131
comments:
32-
provider : # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "custom"
32+
provider: "giscus"
33+
giscus:
34+
repo_id : "MDEwOlJlcG9zaXRvcnkxNzQ0MTI4MDk="
35+
category_name : "website-comments"
36+
category_id : "DIC_kwDOCmVUCc4CSE-o"
37+
discussion_term : "pathname"
38+
reactions_enabled : "1" # '1' for enabled (default), '0' for disabled
39+
theme : "light"
3340
disqus:
3441
shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname-
3542
discourse:
@@ -207,7 +214,7 @@ kramdown:
207214
auto_ids: true
208215
footnote_nr: 1
209216
entity_output: as_char
210-
toc_levels: 1..6
217+
toc_levels: 1..3
211218
smart_quotes: lsquo,rsquo,ldquo,rdquo
212219
enable_coderay: false
213220

@@ -295,7 +302,7 @@ defaults:
295302
values:
296303
layout: single
297304
author_profile: true
298-
comments: # true
305+
comments: true
299306
share: true
300307
related: true
301308
toc: true

assets/css/main.scss

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ $caption-font-family: $serif !default;
3030

3131
/* type scale */
3232
$type-size-1: 2.441em !default; // ~39.056px h1
33-
$type-size-2: 1.5em !default; // ~31.248px h2 ...
34-
$type-size-3: 1.563em !default; // ~25.008px
33+
$type-size-2: 1.9em !default; // ~31.248px h2 ...
34+
$type-size-3: 1.563em !default; // ~25.008px h3
3535
$type-size-4: 1.85em !default; // ~20px
36-
$type-size-5: 1em !default; // ~16px
36+
$type-size-5: .9em !default; // ~16px body?
3737
$type-size-6: 0.75em !default; // ~12px
3838
$type-size-7: 0.6875em !default; // ~11px
3939
$type-size-8: 0.625em !default; // ~10px
@@ -53,13 +53,35 @@ h6, .archive__item-title {
5353

5454
h2 {
5555
font-size: $type-size-2!important;
56+
color: #314d68; //make this a header color
57+
}
58+
59+
h3 {
60+
font-size: $type-size-3!important;
5661
}
5762

5863
.archive__item-title {
5964
font-family: $header-font-family!important;
65+
font-size: .9em !important;
66+
}
67+
68+
body {
69+
//font-size:90%
6070
}
6171

62-
body {font-size:90%}
72+
.page__content p, .page__content li {
73+
font-size: $type-size-5!important;
74+
}
75+
76+
// Sidebar author with circle font and header font adjustment
77+
.sidebar .author__name {
78+
font-family: $header-font!important;
79+
font-size: .9em;
80+
}
81+
82+
.page__lead {
83+
font-size: 1em!important;
84+
}
6385

6486

6587
// styles for the grid of people
@@ -274,8 +296,22 @@ h2.clearall {
274296
max-width: 66.66667%;
275297
}
276298

277-
/* Adding a 3 col grid */
278-
299+
/* TWITTER */
300+
301+
.twitter-tweet {
302+
border: 1px solid #ccc;
303+
border-radius: .5em;
304+
padding: 1.2em;
305+
width: 90%;
306+
margin-left: auto;
307+
margin-right: auto;
308+
background-color: #e2ecf3;
309+
font-weight: 600;
310+
font-style: normal;
311+
font-size: .9em;
312+
color: #555;
313+
filter: drop-shadow(5px 5px 4px #ccc);
314+
}
279315

280316

281317
@charset "utf-8";

0 commit comments

Comments
 (0)