From 0d4b348454a474322f6355d9d34399977077d055 Mon Sep 17 00:00:00 2001 From: parsiya Date: Fri, 16 Apr 2021 13:55:36 -0700 Subject: add extend header and footer pages and some minor edits to the readme --- README.md | 33 ++++++++++++++++++++++----------- layouts/partials/extend_footer.html | 3 +++ layouts/partials/extend_header.html | 3 +++ layouts/partials/footer.html | 3 +++ layouts/partials/header.html | 4 ++++ 5 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 layouts/partials/extend_footer.html create mode 100644 layouts/partials/extend_header.html diff --git a/README.md b/README.md index f3094be..6097f2c 100755 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ My personal website with the compact index (see below): - [Goldmark vs. Blackfriday](#goldmark-vs-blackfriday) - [CSS override](#css-override) - [Navigation menu](#navigation-menu) +- [Extending Headers and Footers](#extending-headers-and-footers) - [Sidebar](#sidebar) - [Sidebar text](#sidebar-text) - [Social network icons](#social-network-icons) @@ -278,6 +279,15 @@ Search engine customization: searchEngineURL = "https://www.google.com/search" ``` +## Extending Headers and Footers +You can copy these files from `theme/Hugo-Octopress/layouts/partials/` into +`your-site/layouts/partials` and modify them: + +* `extend_header.html`: Everything will be added to the end of the `head` tag on + every page. +* `extend_footer.html`: Everything will be added after the `footer` tag on every + page. + ## Sidebar The sidebar has four sections, from top to bottom: @@ -346,7 +356,7 @@ Sidebar social network icons are configured as follows: Icon sequence is unfortunately hardcoded. To modify, copy `your-website/themes/Hugo-Octopress/layouts/partials/sidebar.html` to `your-website/layouts/partials/sidebar.html` and modify the sequence. Look for -`