]> njoseph.me Git - hyde.git/blame - README.md
Added .BaseURL to link in 404 page
[hyde.git] / README.md
CommitLineData
da66ac19 1# Hyde
2
3Hyde is a brazen two-column [hugo](http://hugo.spf13.com) theme based on the [Jekyll](http://jekyllrb.com) theme of the same name.
4It pairs a prominent sidebar with uncomplicated content.
5
6![Hyde screenshot](https://f.cloud.github.com/assets/98681/1831228/42af6c6a-7384-11e3-98fb-e0b923ee0468.png)
7
8
9## Contents
10
da66ac19 11- [Options](#options)
12 - [Sidebar menu](#sidebar-menu)
13 - [Sticky sidebar content](#sticky-sidebar-content)
14 - [Themes](#themes)
15 - [Reverse layout](#reverse-layout)
16- [Development](#development)
17- [Author](#author)
5a4a5b18 18- [Ported by](#ported-by)
da66ac19 19- [License](#license)
20
21
22## Options
23
24Hyde includes some customizable options, typically applied via classes on the `<body>` element.
25
26
27### Sidebar menu
28
29Create a list of nav links in the sidebar by assigning "menu=main" in the front matter.
30
31
32### Sticky sidebar content
33
34By default Hyde ships with a sidebar that affixes it's content to the bottom of the sidebar. You can optionally disabled this by removing the `.sidebar-sticky` class from the sidebar's `.container`. Sidebar content will then normally flow from top to bottom.
35
36```html
37<!-- Default sidebar -->
38<div class="sidebar">
39 <div class="container sidebar-sticky">
40 ...
41 </div>
42</div>
43
44<!-- Modified sidebar -->
45<div class="sidebar">
46 <div class="container">
47 ...
48 </div>
49</div>
50```
51
52
53### Themes
54
55Hyde ships with eight optional themes based on the [base16 color scheme](https://github.com/chriskempson/base16). Apply a theme to change the color scheme (mostly applies to sidebar and links).
56
57![Hyde in red](https://f.cloud.github.com/assets/98681/1831229/42b0b354-7384-11e3-8462-31b8df193fe5.png)
58
59There are eight themes available at this time.
60
61![Hyde theme classes](https://f.cloud.github.com/assets/98681/1817044/e5b0ec06-6f68-11e3-83d7-acd1942797a1.png)
62
63To use a theme, add anyone of the available theme classes to the `<body>` element in the `default.html` layout, like so:
64
65```html
66<body class="theme-base-08">
67 ...
68</body>
69```
70
71To create your own theme, look to the Themes section of [included CSS file](https://github.com/poole/hyde/blob/master/public/css/hyde.css). Copy any existing theme (they're only a few lines of CSS), rename it, and change the provided colors.
72
73### Reverse layout
74
75![Hyde with reverse layout](https://f.cloud.github.com/assets/98681/1831230/42b0d3ac-7384-11e3-8d54-2065afd03f9e.png)
76
77Hyde's page orientation can be reversed with a single class.
78
79```html
80<body class="layout-reverse">
81 ...
82</body>
83```
84
85## Author
da66ac19 86**Mark Otto**
87- <https://github.com/mdo>
88- <https://twitter.com/mdo>
89
90## Ported By
91**Steve Francia**
92- <https://github.com/spf13>
93- <https://twitter.com/spf13>
94
95## License
96
97Open sourced under the [MIT license](LICENSE.md).
98
99<3