mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-11-28 23:16:39 +01:00
3065147286aa556d2fbfffedd1280e3425bc6a5d
Cocoa
A consistent and responsive Hugo theme with clean typograhy.
Features
- Responsive
- Suited for blogging and personal webpages
- Disqus support
- Built-in support for 404 pages
- Syntax highlighting
Table of Contents
Getting Started
From the root of your Hugo site, clone the theme into themes/cocoa by running:
git clone https://github.com/nishanths/cocoa-hugo-theme.git themes/cocoa
Then, generate your site's files by running:
hugo -t cocoa
Usage
config.toml
Please see the sample config.toml in exampleSite/.
Note that if you already use cocoa but have updated to Hugo 0.18, you must lowercase every params of your existing config.toml. (like in the sample)
Creating Content
- Posts should generally go under a
content/blogdirectory. Typically you would run:
hugo new blog/your-new-post.md
You may need to set draft = false in the new post's front matter for it to appear on your site.
- Fixed pages such as an About page should preferably go under a
content/fixedor be present at the root of thecontentsdirectory.
$ hugo new fixed/about.md
Example site
An example site is available in exampleSite/.
Screenshots
See this Imgur album or the images/ directory!
Changelog
v0.3.0
- Change color from orange to blue; improve colors elsewhere
- Change
div.sectiontosection - Rename
postsdirectory toblog - Add ability to specify extra CSS files in
config.toml - Removed
WebFontsFilefeature fromconfig.toml - Remove the initials displayed on top right of single post pages
- Update example site
v0.2.0
- Added Disqus support. To enable Disqus, add
disqusshortname = "XYZ"toconfig.toml. More details: http://gohugo.io/extras/comments/. - In the posts list, replaced date with bullets at smaller screen widths.
v0.1.0
- Initial release
Contributing
Pull requests, bug fixes, and new features are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request on GitHub
License
Licensed under the MIT License. See the LICENSE file for more details.
Languages
HTML
50.3%
CSS
49.7%