Skip to content

Commit 3b094f1

Browse files
authored
Merge pull request #131 from kakawait/develop
Releasing 0.2.3-ALPHA
2 parents 233b46a + cd9f2ae commit 3b094f1

File tree

10 files changed

+60
-17
lines changed

10 files changed

+60
-17
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.2.3-ALPHA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/12) - 31 mar 2017
6+
7+
- CSS and JS imports customization ([#120](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/120)) (thank you [#yamila-moreno](https://github.com/yamila-moreno))
8+
9+
two news settings:
10+
11+
```toml
12+
customCSS = ["css/foo.css"]
13+
customJS = ["js/foo.js"]
14+
```
15+
16+
That allow you to inject your own `CSS` or `JS`
17+
18+
- Fix nav since Hugo 0.18 ([#119](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/119), [#122](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/122))
19+
- Change _Next_ and _Previous_ behavior ([#118](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/118), [#122](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/122))
20+
21+
### Breaking changes
22+
23+
Related to new _Next_ and _Previous_ behavior [#118](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/118), nav is now working like following
24+
25+
Next -> Newer post
26+
Previous -> Older post
27+
528
## [0.2.2-ALPHA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/11) - 14 feb 2017
629

730
- Page archetype ([#106](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/106)) (thank you [@ebouchut](https://github.com/ebouchut))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Please all the credit should be attributed to [original *Hexo* version](https://
3434
## General
3535

3636
- **Authors**: [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) and [Thibaud Leprêtre (kakawait)](https://github.com/kakawait)
37-
- **Version**: 0.2.2-ALPHA (based on Hexo version 1.9.1)
37+
- **Version**: 0.2.3-ALPHA (based on Hexo version 1.9.1)
3838
- **Compatibility**: Hugo v0.17
3939

4040
## Features

docs/developer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ If you want to report a bug or ask a question, [create an issue](https://github.
2828
## General ##
2929

3030
- **Author** : Thibaud Leprêtre
31-
- **Version** : 0.2.2-ALPHA (based on Hexo version 1.9.1)
31+
- **Version** : 0.2.3-ALPHA (based on Hexo version 1.9.1)
3232
- **Compatibility** : Hugo v0.17
3333

3434
## Requirements ##

docs/user.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If you want to report a bug or ask a question, [create an issue](https://github.
5353
## General
5454

5555
- **Authors**: [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) and [Thibaud Leprêtre (kakawait)](https://github.com/kakawait)
56-
- **Version**: 0.2.2-ALPHA (based on Hexo version 1.9.1)
56+
- **Version**: 0.2.3-ALPHA (based on Hexo version 1.9.1)
5757
- **Compatibility**: Hugo v0.17
5858

5959
## Features
@@ -344,7 +344,7 @@ E.g to display a shortcut to open algolia search window :
344344
thumbnailImagePosition = "right"
345345
autoThumbnailImage = true
346346
coverImage = "cover.jpg"
347-
favicon =
347+
favicon = /favicon.png
348348
imageGallery = true
349349
hierarchicalCategories = true
350350
```
@@ -354,12 +354,14 @@ E.g to display a shortcut to open algolia search window :
354354
| sidebarBehavior | Define the behavior of the header and sidebar :<ul><li>1: Display extra large sidebar on extra large screen, large sidebar on large screen, medium sidebar on medium screen and header bar on small screen and extra large sidebar is swiped on extra large screen and large sidebar on all lower screens when open button is clicked (default)</li><li>2: Display large sidebar on extra large & large screen, medium sidebar on medium screen and header bar on small screen and large sidebar is swiped when open button is clicked</li><li>3: Display medium sidebar on large and medium screen and header bar on small screen and medium sidebar is swiped when open button is clicked</li><li>4: Display header bar on all screens, extra large sidebar is swiped on extra large screen and large sidebar is swiped on all lower screens</li><li>5: Display header bar on all screens and large sidebar is swiped on large screen</li><li>6: isplay header bar on all screens and medium sidebar is swiped</li></ul> |
355355
| clearReading | Hide sidebar on all article page to let article take full width to improve reading, and enjoy wide images and cover images. Useless if `sidebarBehavior` is equal to `3` or `4`. (true: enable, false: disable). Default behavior : `params.clearReading` value in theme configuration file. |
356356
| thumbnailImage | Display thumbnail image of each post on index pages |
357-
| thumbnailImagePosition | Display thumbnail image at the right of title in index pages (`right`, `left` or `bottom`). Set this value to `right` if you have old posts to keep the old style on them and define `thumbnailImagePosition` on a post to overwrite this setting. (Default : `right`) |
357+
| thumbnailImagePosition | Display thumbnail image at the right of title in index pages (`right`, `left` or `bottom`). Set this value to `right` if you have old posts to keep the old style on them and define `thumbnailImagePosition` on a post to overwrite this setting. (Default: `right`) |
358358
| autoThumbnailImage | Automatically select the cover image or the first photo from the gallery of a post if there is no thumbnail image as the thumbnail image. Set this value to `true` if you have old posts that use the cover image or the first photo as the thumbnail image and set `autoThumbnailImage` to `false` on a post to overwrite this setting. (Default : `true`) |
359359
| coverImage | Your blog cover picture. **I STRONGLY recommend you to use a CDN to speed up loading of pages. There is many free CDN like Cloudinary or you can also use indirectly by using services like Google Photos.** |
360-
| favicon | Your favicon path |
360+
| favicon | Your favicon path (Default: `/favicon.png`) |
361361
| imageGallery | Display an image gallery at the end of a post which have `photos` variables. (false: disabled, true: enabled) |
362362
| hierarchicalCategories | Define categories will create hierarchy between parents: `categories = ["foo", "bar"]` will consider "bar" a sub-category of "foo". If false it will flat categories. |
363+
| customCSS | Define files with css that override or extend the theme css; they are expected in `static` folder: `customCSS` = ["css/mystyles.css"]. |
364+
| customJS | Define files with js that override or extend the theme js; they are expected in `static` folder: `customJS` = ["js/myscripts.js"]. |
363365

364366
E.g :
365367
A category page look like this with `hierarchicalCategories = true` :

exampleSite/config.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Tranquilpeak
2-
# Version : 0.2.2-ALPHA
2+
# Version : 0.2.3-ALPHA
33
# Author : Thibaud Leprêtre
44

55
# I STRONGLY recommend you to use a CDN to speed up loading of pages.
@@ -153,6 +153,9 @@ canonifyurls = true
153153
# and set `autoThumbnailImage` to `false` on a post to overwrite this setting
154154
autoThumbnailImage = true
155155

156+
# Your favicon path, default is "/favicon.png"
157+
# favicon = "/favicon.png"
158+
156159
# Header configuration
157160
# The link at the right of the header is customizable
158161
# You can add a link (as an icon) at the right of the header instead of the author's gravatar image or author's picture.
@@ -172,3 +175,11 @@ canonifyurls = true
172175
# Customize copyright value "© 2016 <CUSTOMIZATION>. All Rights Reserved"
173176
# [params.footer]
174177
# copyright = "<a href=\"https://github.com/kakawait\">kakawait</a>"
178+
#
179+
# Custom CSS. Put here your custom CSS files. They are loaded after the theme CSS;
180+
# they have to be referred from static root. Example
181+
# customCSS = ["css/foo.css"]
182+
183+
# Custom JS. Put here your custom JS files. They are loaded after the theme JS;
184+
# they have to be referred from static root. Example
185+
# customJS = ["js/foo.js"]

exampleSite/content/post/Welcome-to-the-new-Tranquilpeak.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Welcome to Tranquilpeak 0.2.2"
2+
title: "Welcome to Tranquilpeak 0.2.3-ALPHA"
33
date: 2015-06-15
44
categories:
55
- tranquilpeak
@@ -65,7 +65,7 @@ Please all the credit should be attributed to [original *Hexo* version](https://
6565
## General
6666

6767
- **Authors**: [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) and [Thibaud Leprêtre (kakawait)](https://github.com/kakawait)
68-
- **Version**: 0.2.2-ALPHA (based on Hexo version 1.9.1)
68+
- **Version**: 0.2.3-ALPHA (based on Hexo version 1.9.1)
6969
- **Compatibility**: Hugo v0.17
7070

7171
## Features

layouts/partials/head.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<meta name="author" content="{{ .Site.Author.name }}">
3333
<meta name="keywords" content="{{ with .Keywords }}{{ delimit . ", " }}{{ end }}{{ if .Site.Params.keywords }}, {{ delimit .Site.Params.keywords ", " }}{{ end }}">
3434

35-
<link rel="icon" href="/favicon.png">
35+
<link rel="icon" href="{{ with .Site.Params.favicon }}{{ . }}{{ else }}/favicon.png{{ end }}">
3636
{{ with .RSSLink }}
3737
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ . }}">
3838
{{ end }}
@@ -90,8 +90,11 @@
9090
<!--EXTERNAL STYLES END-->
9191
<!--STYLES-->
9292
<link rel="stylesheet" href="/css/style-gwlo24d2hxipxk8bi1sxik0zhlpn9t7ebcmgp9kubmmcjfzlavuyhvbqumhn.min.css" />
93+
{{ range .Site.Params.customCSS }}
94+
<link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}">
95+
{{ end }}
9396
<!--STYLES END-->
94-
97+
9598
{{ if .Params.ga.async }}
9699
{{ template "_internal/google_analytics_async.html" . }}
97100
{{ else }}

layouts/partials/post/actions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
<ul class="post-actions post-action-nav">
44
{{ if (not (eq .Params.showPagination false)) }}
55
<li class="post-action">
6-
{{ with .Prev }}
6+
{{ with .NextInSection }}
77
<a class="post-action-btn btn btn--default tooltip--top" href="{{ .RelPermalink }}" data-tooltip="{{ .Title }}">
88
{{ else }}
99
<a class="post-action-btn btn btn--disabled">
1010
{{ end }}
1111
<i class="fa fa-angle-left"></i>
12-
<span class="hide-xs hide-sm text-small icon-ml">{{ i18n "pagination.previous" }}</span>
12+
<span class="hide-xs hide-sm text-small icon-ml">{{ i18n "pagination.next" }}</span>
1313
</a>
1414
</li>
1515
<li class="post-action">
16-
{{ with .Next }}
16+
{{ with .PrevInSection }}
1717
<a class="post-action-btn btn btn--default tooltip--top" href="{{ .RelPermalink }}" data-tooltip="{{ .Title }}">
1818
{{ else }}
1919
<a class="post-action-btn btn btn--disabled">
2020
{{ end }}
21-
<span class="hide-xs hide-sm text-small icon-mr">{{ i18n "pagination.next" }}</span>
21+
<span class="hide-xs hide-sm text-small icon-mr">{{ i18n "pagination.previous" }}</span>
2222
<i class="fa fa-angle-right"></i>
2323
</a>
2424
</li>

layouts/partials/script.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,8 @@
6363
var algoliaIndex = algoliaClient.initIndex('{{ .indexName }}');
6464
</script>
6565
{{ end }}
66-
{{ end }}
66+
{{ end }}
67+
68+
{{ range .Site.Params.customJS }}
69+
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
70+
{{ end }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hugo-tranquilpeak-theme",
3-
"version": "0.2.2-ALPHA",
3+
"version": "0.2.3-ALPHA",
44
"description": "A gorgeous responsive theme for Hugo blog framework",
55
"main": "Gruntfile.js",
66
"scripts": {

0 commit comments

Comments
 (0)