Max le Fou
5 years ago
19 changed files with 163 additions and 41 deletions
@ -1,5 +1,48 @@ |
|||
# HUGO.386 |
|||
|
|||
This is a port of the BOOTSTRA.386 theme for Hugo, for a cool retro look on your blog. |
|||
|
|||
Under construction... |
|||
![Example of Hugo blog with the theme](screenshot.jpg) |
|||
|
|||
## Installation |
|||
Inside the folder of your Hugo site run: |
|||
|
|||
$ git submodule add https://gitlab.com/maxlefou/hugo.386 themes/hugo.386 |
|||
|
|||
For more information read the official [setup guide](//gohugo.io/overview/installing/) of Hugo. |
|||
|
|||
|
|||
## Getting started |
|||
|
|||
After installing the theme successfully it requires a just a few more steps to get your site running. |
|||
|
|||
|
|||
### The config file |
|||
|
|||
Take a look inside the [`exampleSite`](//gitlab.com/maxlefou/hugo.386/tree/master/exampleSite) folder of this theme. You'll find a file called [`config.toml`](//gitlab.com/maxlefou/hugo.386/blob/master/exampleSite/config.toml). |
|||
It contains detailed information about the customization of all strings in this theme. |
|||
|
|||
To use it, copy the [`config.toml`](//gitlab.com/maxlefou/hugo.386/blob/master/exampleSite/config.toml) in the root folder of your Hugo site. Feel free to change strings as you like. |
|||
|
|||
|
|||
### Nearly finished |
|||
|
|||
In order to see your site in action, run Hugo's built-in local server. |
|||
|
|||
$ hugo server |
|||
|
|||
Now enter [`localhost:1313`](http://localhost:1313) in the address bar of your browser. |
|||
|
|||
|
|||
## Contributing |
|||
|
|||
Did you found a bug or got an idea for a new feature? There's surely at least some subsisting glitches as this theme is brand new. So feel free to use the [issue tracker](//gitlab.com/maxlefou/hugo.386/issues) to let me know. Or make directly a [merge request](//gitlab.com/maxlefou/hugo.386/pulls). |
|||
|
|||
|
|||
## License |
|||
|
|||
This theme is released under the Apache License 2.0 For more information read the [License](//github.com/digitalcraftsman/hugo-freelancer-theme/blob/master/LICENSE). |
|||
|
|||
|
|||
## Annotations |
|||
|
|||
Thanks to [Steve Francia](//github.com/spf13) for creating Hugo and the awesome community around the project. Many thanks to [Kristopolous](//github.com/kristopolous) as well for the BOOTSRTA.386 theme, even if it's a bit outdated today. (and i'm not speaking of the retro look) |
@ -0,0 +1 @@ |
|||
These are the files necessary for the theme to work. Just copy the files in the root of your hugo site installation and edit the files as you want. |
@ -0,0 +1,15 @@ |
|||
--- |
|||
title: Post with pictures |
|||
date: 2018-04-15 |
|||
description: "A simple post with pictures" |
|||
tags: ["90s","experiment"] |
|||
categories: ["blog","photos"] |
|||
--- |
|||
|
|||
Here goes some pictures. |
|||
|
|||
![A random image from picsum](/pic1.jpg) |
|||
|
|||
![Another random image from picsum](/pic2.jpg) |
|||
|
|||
![A last random image from picsum](/pic3.jpg) |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 607 KiB |
After Width: | Height: | Size: 2.2 MiB |
After Width: | Height: | Size: 1.7 MiB |
@ -0,0 +1,17 @@ |
|||
[home] |
|||
other = "Accueil" |
|||
|
|||
[posts] |
|||
other = "Articles" |
|||
|
|||
[postslist] |
|||
other = "Articles de blog" |
|||
|
|||
[categories] |
|||
other = "Catégories" |
|||
|
|||
[tags] |
|||
other = "Tags" |
|||
|
|||
[backtohome] |
|||
other = "Retour à l'accueil" |
@ -1,10 +1,5 @@ |
|||
{{ $taxonomy := "categories" }} |
|||
{{ with .Param $taxonomy }} |
|||
{{ range $index, $tag := . }} |
|||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} |
|||
{{range first 10 ($.Site.GetPage "taxonomyTerm" "categories").Pages }} |
|||
<li> |
|||
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a> |
|||
<a href="{{ .Permalink }}">{{.Title}}</a> |
|||
</li> |
|||
{{- end -}} |
|||
{{- end -}} |
|||
{{ end }} |
@ -1,10 +1,5 @@ |
|||
{{ $taxonomy := "tags" }} |
|||
{{ with .Param $taxonomy }} |
|||
{{ range $index, $tag := . }} |
|||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}} |
|||
{{range first 10 ($.Site.GetPage "taxonomyTerm" "tags").Pages }} |
|||
<li> |
|||
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a> |
|||
<a href="{{ .Permalink }}">{{.Title}}</a> |
|||
</li> |
|||
{{- end -}} |
|||
{{- end -}} |
|||
{{ end }} |
After Width: | Height: | Size: 65 KiB |
Loading…
Reference in new issue