hugo-story/README.md

107 lines
3.1 KiB
Markdown
Raw Normal View History

2020-07-02 07:03:01 +02:00
# Hugo Story
## A (modular, highly tweakable) responsive one-page theme for Hugo.
![](images/device-screenshots.png)
2020-07-24 23:56:19 +02:00
Hugo Story is a port of the static HTML template Story by HTML5 UP. It is designed to mirror the look and feel of the original template as closely as possible while incorporating some of the features Hugo has to offer.
This theme is designed for those who are comfortable editing HTML and integrating Hugo short codes and variables to customize the theme to their liking.
## Features
- Minimalist Design
- Fully Responsive
- Templates
- Header
- Footer
- FootScripts
- Favicon
- Partials for each element type
- Banner
- Spotlight
- Gallery
- Items
- Image gallery
- Short Codes
- Site Title
- Site Subtitle
- Site Logo
- Social Icons
- Favicon and Social icons
- FontAwesome Icon Support
- SASS and AutoMinify Support
- Google Analytics Support
2020-07-02 07:03:01 +02:00
## Demo
https://caressofsteel.github.io/demos/hugo/hugo-story/
## Using
2021-02-04 23:23:52 +01:00
1. Install Hugo
2020-07-02 07:03:01 +02:00
2021-02-05 01:47:29 +01:00
*This theme uses Hugo Pipes to compile SCSS & Sass so you'll have to use the **extended** version of Hugo.*<br>
2021-02-04 23:23:52 +01:00
[Install Hugo (Extended Version)](https://gohugo.io/overview/installing/)
2021-02-05 01:47:29 +01:00
See the official [Hugo Quick Start Guide](https://gohugo.io/getting-started/quick-start/) for more information.
2021-02-04 23:23:52 +01:00
2. Create a new site:
```
hugo new site story-examplesite
```
3. Clone this git repository:
```
cd story-examplesite
git submodule add https://github.com/caressofsteel/hugo-story.git themes/hugo-story
```
2021-02-05 01:47:29 +01:00
*Hint: See a note for non-git users [here](https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme).*
2021-02-04 23:23:52 +01:00
4. Copy `data` and `config.toml` with overwrite from `themes/exampleSite` to the main directory:
```
cp -r themes/hugo-story/exampleSite/data ./
cp themes/hugo-story/exampleSite/config.toml ./
```
2021-02-05 01:47:29 +01:00
*Hint: Using `config.toml` tells Hugo to use the theme and sets some basic theme parameters.*
2021-02-04 23:23:52 +01:00
2021-02-05 01:47:29 +01:00
*Hint: Using `data` provides some default contents for the site.*
2021-02-04 23:23:52 +01:00
5. Start Hugo server:
```
hugo server
```
6. Open Hugo site in your browser http://localhost:1313/
Now you should see the orginal Story site. You can also take a look into it in folder `originalStorySite`.
7. Further steps
- Change the contents of folder `data`. E.g. by altering `banner.yml` you can change the top block on the site. See more details [here](https://gohugo.io/templates/data-templates/).
- Copy default `index.html`:
```
cp themes/hugo-story/layouts/index.html layouts/
```
Now you can create your own structure of the site by manipulating `{{ partial ... }}` tags. See more details [here](https://gohugo.io/templates/partials/).
- Continue exploring Hugo and the template!
2020-07-02 07:03:01 +02:00
## Credits
This theme was created using the _Story_ template by [HTML5 UP](https://html5up.net/uploads/demos/story/).
## License
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/" class="license-button"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/3.0/88x31.png"></a>
This Hugo theme is licensed under the [Creative Commons Attribution 3.0 License](LICENSE).