| | |
| | | |
| | | Take a look inside the [`tests`](https://github.com/escalate/hugo-split-theme/tree/master/tests) folder of this theme. You'll find some example configurations. To use one of them, copy the `hugo.toml` in the root folder of your Hugo site. Feel free to customize this theme as you like. |
| | | |
| | | |
| | | ### Add content |
| | | |
| | | #### Homepage |
| | |
| | | # Privacy statement |
| | | ``` |
| | | |
| | | |
| | | ### Use a video |
| | | |
| | | First, disable the image by setting `enable` to `false` in `[params.visual.image]`. |
| | |
| | | |
| | | Just like with [an image](#use-an-image) you can not display a video altogether on particular pages by setting `visual.video.enable = false` in the page's FrontMatter. |
| | | |
| | | |
| | | ##### Use your own video |
| | | |
| | | Add your video to the `static` folder and change `file` to the location of your video accordingly. Make sure you delete `youtubeId` or comment it out. |
| | |
| | | # youtubeId = "dk9uNWPP7EA" |
| | | ``` |
| | | |
| | | |
| | | ##### Use a YouTube video |
| | | |
| | | Get the ID of the YouTube video and add it to `youtubeId`. Make sure you delete `file` or comment it out. |
| | |
| | | youtubeId = "dk9uNWPP7EA" |
| | | ``` |
| | | |
| | | |
| | | ##### Add Custom CSS |
| | | |
| | | Put custom css styles in static/css/style.css and enable this css in the config: |
| | |
| | | `author` and `description` metadata helps search engines with how to display your site in search results. `shareImage` and `twitterHandle` help improves how your content is displayed when your site is shared across social media sites. |
| | | |
| | | ```toml |
| | | author = "Jenny Jones" |
| | | description = "Split is a centrally-divided layout for a professional online presence with a big image or video left with alongside content." |
| | | shareImage = "images/social.jpg" |
| | | twitterHandle = "onepagelove" |
| | | [params] |
| | | author = "Jenny Jones" |
| | | description = "Split is a centrally-divided layout for a professional online presence with a big image or video left with alongside content." |
| | | shareImage = "images/social.jpg" |
| | | twitterHandle = "onepagelove" |
| | | ``` |
| | | |
| | | |