feat(): add a link to home in the menu for conveniance

This commit is contained in:
kendo5731 2016-02-06 16:49:00 +01:00
parent b009a73176
commit e1615aa043
5 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,6 @@ A theme for [Hugo](https://gohugo.io/), inspired by Atom editor.
This repo is a work in progress, there is still work to do, contributions are welcome !
- Add a "Home" link in the top of the menu
- Add custom 404.html
- Support for code highlighting
- Conventional CHANGELOG.md

View File

@ -1,4 +1,5 @@
mostrecentposts: Most recent posts
tags: Tags
categories: Categories
datepublished: Published
datepublished: Published
root: Root

View File

@ -2,3 +2,4 @@ mostrecentposts: Les derniers articles
tags: Tags
categories: Catégories
datepublished: Publié le
root: Racine

View File

@ -1,4 +1,5 @@
<nav class="col-md-3">
<h3 class="home-link"><a href="/">{{ ( index $.Site.Data.translations $.Site.Params.locale ).root }}</a></h3>
<div id="last-posts" class="open">
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations $.Site.Params.locale ).mostrecentposts }}</h3>
<ul>

View File

@ -66,7 +66,10 @@ a {
font-size: 14px;
padding: 4px 0px 4px 15px;
margin: 0px;
&:before {
&.home-link {
text-align: center;
}
&:not(.home-link):before {
@extend .glyphicon;
@extend .glyphicon-folder-close;
margin-right: 8px;