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

github.com/mmrath/hugo-bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurali Mohan Rath <mmrath@gmail.com>2015-10-31 02:21:51 +0300
committerMurali Mohan Rath <mmrath@gmail.com>2015-10-31 02:21:51 +0300
commit9451b5d26091be9b50f917929adaa9902804a13d (patch)
tree6a392f1069877b302a0eb7541d0b2cb002850ec3
parentce0a8293beceb2076206afaf840d0c287caeefc2 (diff)
Show tags only if it is available
-rw-r--r--README.md63
-rw-r--r--layouts/partials/modules/page/tags.html8
2 files changed, 15 insertions, 56 deletions
diff --git a/README.md b/README.md
index 584e87e..7f44027 100644
--- a/README.md
+++ b/README.md
@@ -5,20 +5,15 @@ A theme with bootstrap, bootswatch(optional), font-awesome, highlightjs
*NOTE: This theme is copied from Hyde-Y. Not everything is ported to bootstrap.
Feel free to make changes and open pull requests.*
-What follows is copy of Hyde-Y README.
-
-Hyde-Y
-======
-
-<small>Forked from [Hyde-X](https://github.com/zyro/hyde-x)</small>
+<small>Forked from [Hyde-Y](https://github.com/enten/hyde-y)</small>
You can find a live site using this theme [here](http://enten.github.io/hugo-boilerplate/)
and the corresponding source code [here](https://github.com/enten/hugo-boilerplate).
## Screenshot
-![preview](https://github.com/enten/hyde-y/blob/master/images/screenshot.png)
+![preview](https://github.com/mmrath/hugo-bootstrap/blob/master/images/screenshot.png)
## Installation
@@ -26,7 +21,7 @@ and the corresponding source code [here](https://github.com/enten/hugo-boilerpla
$ cd your_site_repo/
$ mkdir themes
$ cd themes
-$ git clone https://github.com/enten/hyde-y
+$ git clone https://github.com/mmrath/hugo-bootstrap
```
See the [official Hugo themes documentation](http://gohugo.io/themes/installing) for more info.
@@ -47,7 +42,7 @@ This theme expects a relatively standard Hugo blog/personal site layout:
└── other_page.md
```
-Just run `hugo --theme=hyde-y` to generate your site!
+Just run `hugo --theme=hugo-bootstrap` to generate your site!
## Configuration
@@ -73,7 +68,7 @@ languageCode = "en-EN"
metaDataFormat = "yaml"
# Theme to use (located in /themes/THEMENAME/)
-theme = "hyde-y"
+theme = "hugo-bootstrap"
# Pagination
paginate = 10
@@ -103,10 +98,6 @@ disqusShortname = "your_disqus_shortname"
topline = "few words about your site"
footline = "code with <i class='fa fa-heart'></i>"
- # Sidebar position
- # false, true, "left", "right"
- sidebar = "left"
-
# Text for the top menu link, which goes the root URL for the site.
# Default (if omitted) is "Home".
home = "home"
@@ -146,6 +137,7 @@ Create `data/Menu.toml` to configure the sidebar navigation links. Example below
```toml
[about]
Name = "About"
+ IconClass = "fa-info-circle"
URL = "/about"
[posts]
@@ -169,34 +161,9 @@ Create `data/FootMenu.toml` to configure the footer navigation links. Example be
URL = "/license"
```
-## Built-in colour themes
-
-You can rebuild the stylesheet. To do it you need [npm](http://npmjs.com/) and run the task `build:css`.
-
-```bash
-$ vi scss/_00-config.less
-# edit configuration
-
-$ npm install
-$ npm run build:css
-
-> hyde-y@0.0.4 build:css /home/steven/code/hyde-y
-> grunt build:css
-
-Running "less:development" (less) task
-File static/css/style.css created
-
-Running "cssmin:target" (cssmin) task
->> 1 file created. 27.04 kB → 14.38 kB
-
-Done, without errors.
-```
-
-The task `watch` allows to rebuild the stylesheet when a change is spotted on `scss/*.less` files.
-
## Tips
-* If you've added `theme = "hyde-y"` to your `config.toml`, you don't need to keep using the `--theme=hyde-y` flag!
+* If you've added `theme = "hugo-bootstrap"` to your `config.toml`, you don't need to keep using the `--theme=hugo-bootstrap` flag!
* Although all of the syntax highlight CSS files under the theme's `static/css/highlight` are bundled with the site, only the one you choose will be included in the page and delivered to the browser.
* Change the favicon by providing your own as `static/favicon.png` (and `static/touch-icon-144-precomposed.png` for Apple devices) in your site directory.
* Hugo makes it easy to override theme layout and behaviour, read about it [here](http://gohugo.io/themes/customizing).
@@ -204,26 +171,16 @@ The task `watch` allows to rebuild the stylesheet when a change is spotted on `s
## Changes and enhancements from the original theme
-* Highly customizable: every layout blocks are pieces of HTML code individually stored.
-* Consistent hierarchy for the partials and templates files to assist the overrides of any layout block.
-* Adjustable sidebar in config file.
-* Project layout (badges, github ribbon) for posts stored in `content/code/` folder.
-* CSS built with [KNACSS](http://knacss.com/) micro-framework.
-* Client-side syntax highlighting through [highlight.js](https://highlightjs.org/), sane fallback if disabled or no JS - infinitely more flexible than the standard Hugo highlighting.
-* Disqus integration: comment counts listed under blog entry names in post list, comments displayed at the bottom of each post.
-* Google Analytics integration.
-* Google Authorship metadata.
-* Paginated blog listing.
-* [FontAwesome](http://fortawesome.github.io/Font-Awesome) social links.
+* Modified to work with bootstrap and bootswatch
* ...many other small layout tweaks!
## Attribution
-Obviously largely a port of the awesome [Hyde](https://github.com/poole/hyde) and [Hyde-X](https://github.com/zyro/hyde-x) themes.
+Obviously largely a port of the awesome [Hyde-Y](https://github.com/enten/hyde-y) theme.
## Questions, ideas, bugs, pull requests?
-All feedback is welcome! Head over to the [issue tracker](https://github.com/enten/hyde-y/issues).
+All feedback is welcome! Head over to the [issue tracker](https://github.com/mmrath/hugo-bootstrap/issues).
## License
diff --git a/layouts/partials/modules/page/tags.html b/layouts/partials/modules/page/tags.html
index 938e215..43a3ccf 100644
--- a/layouts/partials/modules/page/tags.html
+++ b/layouts/partials/modules/page/tags.html
@@ -1,4 +1,6 @@
-<i class="fa fa-tags"></i>
-{{ range .Params.tags }}
-<a href="{{ "/tags/" | absURL }}{{ . | urlize }}" class="label label-primary">{{ . }}</a>
+{{ if isset .Params "tags"}}
+ <i class="fa fa-tags"></i>
+ {{ range .Params.tags }}
+ <a href="{{ "/tags/" | absURL }}{{ . | urlize }}" class="label label-primary">{{ . }}</a>
+ {{ end }}
{{ end }}