feat(): add a link to home in the menu for conveniance
This commit is contained in:
parent
b009a73176
commit
e1615aa043
|
@ -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
|
||||
|
|
|
@ -2,3 +2,4 @@ mostrecentposts: Most recent posts
|
|||
tags: Tags
|
||||
categories: Categories
|
||||
datepublished: Published
|
||||
root: Root
|
|
@ -2,3 +2,4 @@ mostrecentposts: Les derniers articles
|
|||
tags: Tags
|
||||
categories: Catégories
|
||||
datepublished: Publié le
|
||||
root: Racine
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue