From 543c523c47c508ef3c72ccf7e9eb56ea47e9d6f8 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Thu, 15 Jul 2021 14:50:24 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cd7b57f..89405023 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # The Midnight theme -[![Build Status](https://travis-ci.org/pages-themes/midnight.svg?branch=master)](https://travis-ci.org/pages-themes/midnight) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-midnight.svg)](https://badge.fury.io/rb/jekyll-theme-midnight) +[Build Status](https://github.com/pages-themes/midnight/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-midnight.svg)](https://badge.fury.io/rb/jekyll-theme-midnight) *Midnight is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/midnight), or even [use it today](#usage).* From d410bfef16f530e8e1fd95655e787d5e75a21142 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 26 Jul 2021 13:47:01 -0400 Subject: [PATCH 2/3] Add _sass/midnight.scss to allow importing with theme name while using jekyll-remote-theme --- _sass/midnight.scss | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 _sass/midnight.scss diff --git a/_sass/midnight.scss b/_sass/midnight.scss new file mode 100644 index 00000000..8f54c050 --- /dev/null +++ b/_sass/midnight.scss @@ -0,0 +1,4 @@ +// Placeholder file. If your site uses +// @import "{{ site.theme }}"; +// Then using this theme with jekyll-remote-theme will work fine. +@import "jekyll-theme-midnight"; From f6639439114ffb4895856ddb6fc329e491103597 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 26 Jul 2021 15:52:21 -0400 Subject: [PATCH 3/3] Add head-custom.html to allow easier customization of the --- _includes/head-custom-google-analytics.html | 10 ++++++++++ _includes/head-custom.html | 9 ++++++--- _layouts/default.html | 11 ----------- 3 files changed, 16 insertions(+), 14 deletions(-) create mode 100644 _includes/head-custom-google-analytics.html diff --git a/_includes/head-custom-google-analytics.html b/_includes/head-custom-google-analytics.html new file mode 100644 index 00000000..8a3ae5c9 --- /dev/null +++ b/_includes/head-custom-google-analytics.html @@ -0,0 +1,10 @@ +{% if site.google_analytics %} + +{% endif %} diff --git a/_includes/head-custom.html b/_includes/head-custom.html index 94fd40b3..44cdb83f 100644 --- a/_includes/head-custom.html +++ b/_includes/head-custom.html @@ -1,9 +1,12 @@ - + - + {% include head-custom-theme-colors.html %} - + +{% include head-custom-google-analytics.html %} + + diff --git a/_layouts/default.html b/_layouts/default.html index 08e68a2b..77f23fc7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -47,16 +47,5 @@

{{ site.title | default: site.github.repository_name }}

- - {% if site.google_analytics %} - - {% endif %}