README: Add hint on how to customize by providing _includes.

This commit is contained in:
Oliver Freyermuth
2021-07-16 19:12:57 +02:00
parent 42af5b53f2
commit 0f99774a0a

View File

@@ -60,10 +60,11 @@ If you'd like to add your own custom styles:
If you'd like to change the theme's HTML layout: If you'd like to change the theme's HTML layout:
1. [Copy the original template](https://github.com/pages-themes/hacker/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*) 1. For some changes such as a custom `favicon`, you can add custom files in your local `_includes` folder. The files [provided with the theme](https://github.com/pages-themes/hacker/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/hacker/blob/master/_layouts/default.html).
2. Create a file called `/_layouts/default.html` in your site 2. For more invasive changes, [copy the original template](https://github.com/pages-themes/hacker/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
3. Paste the default layout content copied in the first step 3. Create a file called `/_layouts/default.html` in your site
4. Customize the layout as you'd like 4. Paste the default layout content copied in the first step
5. Customize the layout as you'd like
### Overriding GitHub-generated URLs ### Overriding GitHub-generated URLs