Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1065,11 +1065,12 @@ Theme files can be [overridden](http://jekyllrb.com/docs/themes/#overriding-them

**ProTip:** to locate the theme's files on your computer run `bundle show jekyll-theme-so-simple`. This returns the location of the gem-based theme files.

The theme comes with two files to help inject custom markup and content into predefined locations.
The theme comes with three files to help inject custom markup and content into predefined locations.

| | Description |
| --- | ----------- |
| [`_includes/head-custom.html`](_includes/head-custom.html) | Inserted inside the `<head>` element for adding metadata, favicons, etc. |
| [`_includes/body-custom.html`](_includes/body-custom.html) | Inserted inside the `<body>` element for adding Google Tag Manager, etc. |
| [`_includes/footer-custom.html`](_includes/footer-custom.html) | Inserted inside the `<footer>` element before site scripts and copyright information. |

### Customizing Sass (SCSS)
Expand Down
3 changes: 3 additions & 0 deletions _includes/body-custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- start custom body snippets -->

<!-- end custom body snippets -->
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{% include head.html %}

<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %} {% if page.entries_layout == 'grid' %}page--wide{% endif %} {{ page.title | slugify }}">
{% include body-custom.html %}
{% include skip-links.html %}
{% include navigation.html %}
{% include masthead.html %}
Expand Down