From 585a188b248f5bcbdbcd219603388a75b0a52378 Mon Sep 17 00:00:00 2001 From: Maruan Date: Sun, 4 Jul 2021 20:22:43 -0400 Subject: [PATCH 01/37] Fix the blog page title (#331) --- _includes/head.html | 11 ++++++++++- blog/index.html | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/_includes/head.html b/_includes/head.html index 7899067e5731..c629888bb803 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -2,7 +2,16 @@ -{% if site.title == "blank" %}{{ site.first_name }} {{ site.middle_name }} {{ site.last_name }}{% else %}{{ site.title }}{% endif %}{% if page.title and page.url != "/" %} | {{ page.title }}{% endif %} + +{% if site.title == "blank" %} + {{ site.first_name }} {{ site.middle_name }} {{ site.last_name }} +{% else %} + {{ site.title }} +{% endif %} +{% if page.title != "blank" and page.url != "/" %} + | {{ page.title }} +{% endif %} + diff --git a/blog/index.html b/blog/index.html index 9c474d78034e..7ccd524c02d6 100644 --- a/blog/index.html +++ b/blog/index.html @@ -1,5 +1,6 @@ --- layout: default +title: blog pagination: enabled: true collection: posts From a5508c734b2a9a3a3eb2597e317f5d741026e6e6 Mon Sep 17 00:00:00 2001 From: Ivan Puhachov <49251289+ivanpuhachov@users.noreply.github.com> Date: Sun, 4 Jul 2021 20:27:39 -0400 Subject: [PATCH 02/37] Fix distill darkmode (#299) * updating distill post to show fixes done * fix for colors in numerated lists and tables * fixing blockquotes * fixing colors in math, footnotes, references, hover boxes, code highlights * Add example distill overrides * reverted back changes in distill template.v2.js Co-authored-by: Maruan Al-Shedivat --- _layouts/distill.html | 1 + _posts/2018-12-22-distill.md | 123 +++++++++++++++++++++++++++++- _sass/_base.scss | 8 ++ _sass/_distill.scss | 2 +- assets/js/distillpub/overrides.js | 20 +++++ 5 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 assets/js/distillpub/overrides.js diff --git a/_layouts/distill.html b/_layouts/distill.html index f9459f1d43aa..a038990b664a 100644 --- a/_layouts/distill.html +++ b/_layouts/distill.html @@ -5,6 +5,7 @@ {% include scripts/mathjax.html %} + {% if page._styles %} + + + + 90 + Performance + + + + + 84 + Accessibility + + + + + 100 + Best Practices + + + + + 82 + SEO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Progressive + Web App + + + + + + + + + + + + + + + 0-49 + 50-89 + 90-100 + + + \ No newline at end of file From d500e084f56de2536db304d029beb194a695c28f Mon Sep 17 00:00:00 2001 From: Maruan Al-Shedivat Date: Sat, 30 Oct 2021 19:53:39 -0400 Subject: [PATCH 36/37] Remove theming dependence on jquery --- _includes/head.html | 7 +++++++ _includes/scripts/misc.html | 6 ------ assets/js/dark_mode.js | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 97a93d6d9f12..21b92d1370e5 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -42,3 +42,10 @@ {% endif %} + +{% if site.enable_darkmode %} + + + +{% endif %} + diff --git a/_includes/scripts/misc.html b/_includes/scripts/misc.html index c2188d4d1e84..260ce1b199e6 100644 --- a/_includes/scripts/misc.html +++ b/_includes/scripts/misc.html @@ -1,9 +1,3 @@ -{% if site.enable_darkmode %} - - - -{% endif %} - {% if site.enable_tooltips %}