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 ! 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 - Add custom 404.html
- Support for code highlighting - Support for code highlighting
- Conventional CHANGELOG.md - Conventional CHANGELOG.md

View File

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

View File

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

View File

@ -1,4 +1,5 @@
<nav class="col-md-3"> <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"> <div id="last-posts" class="open">
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations $.Site.Params.locale ).mostrecentposts }}</h3> <h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations $.Site.Params.locale ).mostrecentposts }}</h3>
<ul> <ul>

View File

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