From 045a15a42a2e84fdb8d1a7845a5ffffaa7d5653b Mon Sep 17 00:00:00 2001 From: Mohamad Arab Date: Thu, 27 Sep 2018 20:35:00 +0200 Subject: [PATCH 1/6] Add feature to include additional JS to header Signed-off-by: Mohamad Arab --- README.md | 2 ++ _config.yml | 7 +++++++ _includes/site-before-end.html | 3 +++ _includes/site-before-start.html | 3 +++ _layouts/default.html | 4 ++++ 5 files changed, 19 insertions(+) create mode 100644 _includes/site-before-end.html create mode 100644 _includes/site-before-start.html diff --git a/README.md b/README.md index 7e57e2d22..dec957932 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ Google Analytics can be enabled via the site configuration too. Add your trackin Date format can be customised in the `/_config.yml` with the option `date_format` (please refer to Liquid date filters documentation for learning about formatting possibilities): `date_format: "%-d %B %Y" # NOTE: only placeholder formatting is supported (do not try to use ordinal dates introduced in Jekyll 3.8)` +Additional Javascript files can be included in header or body by adding `include_before_start_js` or `include_before_end_js` in `/_config.yml` file respectively. + ### Site performance settings Alembic comes with a couple of options to enhance the speed and overall performance of the site you build upon it. diff --git a/_config.yml b/_config.yml index b295248f7..0cf1e52a4 100644 --- a/_config.yml +++ b/_config.yml @@ -88,6 +88,13 @@ avatarurl: "https://www.gravatar.com/avatar/6c0377abcf4da91cdd35dea4554b2a4c" # # service_worker: false # Will turn off the service worker if set to false css_inline: true # Will insert all styles into a single