Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/caressofsteel/hugo-story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 227fb9930611739272e778fab65a48b4a9a89463 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Hugo Story
## A (modular, highly tweakable) responsive one-page theme for Hugo.

![](images/device-screenshots.png)

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

## Demo
https://caressofsteel.github.io/demos/hugo/hugo-story/
## Using
### 1. Install Hugo

[Install Hugo (Extended Version)](https://gohugo.io/overview/installing/)
    
> _This theme uses Hugo Pipes to compile SCSS & Sass so you'll have to use the **extended** version of Hugo. See the official [Hugo Quick Start Guide](https://gohugo.io/getting-started/quick-start/) for more information._
### 2. Create a new site

``` 
hugo new site story-examplesite
```
### 3. Clone this Git repository

```
cd story-examplesite
git clone https://github.com/caressofsteel/hugo-story.git themes/hugo-story
```

> _Hint: See a note for non-Git users [here](https://gohugo.io/getting-started/quick-start/#step-3-add-a-theme)._
### 4. Copy `data` and `config.toml` with overwrite from `exampleSite`
```
cp -r themes/hugo-story/exampleSite/data ./
cp themes/hugo-story/exampleSite/config.toml ./
```
> _Hint: Using `config.toml` tells Hugo to use the theme and sets some basic theme parameters._

> _Hint: Using `data` provides default content for the site._
### 5. Start Hugo Server
```
hugo server
```
### 6. Open Hugo Server in your browser
```
http://localhost:1313/
```
Here you'll see the site running on the local Hugo server. You can now make changes to and Hugo will rebuild the site automatically.

> _Hint: A copy of the default generated site is located in the _`originalStorySite`_ folder should you need to reference it._

### 7. Further steps

- Change the contents of `YML` files in the `data` folder. 
  - _Altering `banner.yml` will change the top block on the site. See more details [here](https://gohugo.io/templates/data-templates/)._

- Create a custom site layout.
  - Copy the default `index.html`.

    ```
    cp themes/hugo-story/layouts/index.html layouts/
    ```
  - By manipulating the the `{{ partial ... }}` tags within this file you can create a custom layout for the site. See more details [here](https://gohugo.io/templates/partials/).

- Continue exploring Hugo and the template!
## 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).