feat(): add support for listing, tags, categories and most recent articles

This commit is contained in:
kendo5731 2016-02-04 22:29:46 +01:00
parent 8c39d2e3c2
commit eafcee54eb
3 changed files with 13 additions and 21 deletions

View File

@ -6,9 +6,7 @@ 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 !
- Support for code highlighting
- Support for bootstrap tables
- Support for tags and categories
- Support Twitter and Facebook share buttons
- Support pagination in list layout
- Support "dynamic" titles and descriptions
@ -16,3 +14,5 @@ This repo is a work in progress, there is still work to do, contributions are we
- Add integration with Disqus
- Add integration with Google Analytics
- Add a "Home" link in the top of the menu
- Add custom 404.html
- Support for code highlighting

View File

@ -1,2 +1,4 @@
+++
tags = []
categories = []
+++

View File

@ -2,37 +2,27 @@
<div id="last-posts" class="open">
<h3 data-open="last-posts">Aubm.net - Les derniers articles</h3>
<ul>
<li><a href="#">Astuce le serveur de developpement embarque de-php</a></li>
<li><a href="#">Astuce phpstorm partager ses lives templates</a></li>
<li><a href="#">Contrainte dunicite dans symfony 2 avec doctrine</a></li>
<li><a href="#">Du neuf sous le capot</a></li>
<li><a href="#">Gardez le code explicite court et modulaire</a></li>
<li><a href="#">Installation et utilisation de sentry</a></li>
<li><a href="#">La pagination avec doctrine la bonne methode</a></li>
<li><a href="#">Mes premiers pas avec cakephp 3</a></li>
<li><a href="#">Retour dexperience sur joomla point de vue dun developpeur</a></li>
<li><a href="#">Utiliser les event subscriber avec fosrestbundle et jmsserializerbundle</a></li>
<li><a href="#">Webservice restful avec symfony2 gerer les champs de type datetime</a></li>
{{ range last 10 .Site.Pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</div>
<div id="tags" class="open">
<h3 data-open="tags">Tags</h3>
<ul class="tags">
<li><a href="#">PHP</a></li>
<li><a href="#">Golang</a></li>
<li><a href="#">Javascript</a></li>
<li><a href="#">HTML</a></li>
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<li><a href="/tags/{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
</div>
<div id="categories" class="open">
<h3 data-open="categories">Categories</h3>
<ul class="categories">
<li><a href="#">Archives Décembre 2015</a></li>
<li><a href="#">Archives Novembre 2015</a></li>
<li><a href="#">Archives Octobre 2015</a></li>
<li><a href="#">Archives Septembre 2015</a></li>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a href="/categories/{{ $name | urlize }}">{{ $name }}</a></li>
{{ end }}
</ul>
</div>
</nav>