Skip to content

Commit 0990bf9

Browse files
authored
Merge pull request #496 from kakawait/develop
Release 0.5.1-BETA
2 parents 37550aa + c1d16b6 commit 0990bf9

15 files changed

+30
-22
lines changed

CHANGELOG.md

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

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

5+
## [0.5.1-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/24) - 27 aug 2021
6+
7+
- Fix fancybox gallery since upgrade to 3.x.x ([#490](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/490))
8+
- Fix `clearReading` options that was only applied to type `posts`. Now apply to any types of `mainSections` ([#492](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/492))
9+
- Fix merriweather font that only load latin subset, missing other subsets like vietnamese. ([#493](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/493))
10+
511
## [0.5.0-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/5) - 14 aug 2021
612

713
### Forwords

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ How can I migrate my current version? Please read [CHANGELOG.md](https://github.
2828
## General
2929

3030
- **Authors**: [Thibaud Leprêtre (kakawait)](https://github.com/kakawait) and [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro)
31-
- **Version**: 0.5.0-BETA (based on Hexo version 3.1.0)
31+
- **Version**: 0.5.1-BETA (based on Hexo version 3.1.0)
3232
- **Compatibility**: Hugo v0.53
3333

3434
## Features

docs/developer.md

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

3232
- **Author** : Thibaud Leprêtre
33-
- **Version** : 0.5.0-BETA (based on Hexo version 3.1.0)
33+
- **Version** : 0.5.1-BETA (based on Hexo version 3.1.0)
3434
- **Compatibility** : Hugo v0.53
3535

3636
## Requirements ##

docs/user.md

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

6363
- **Authors**: [Thibaud Leprêtre (kakawait)](https://github.com/kakawait) and [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro)
64-
- **Version**: 0.5.0-BETA (based on Hexo version 3.1.0)
64+
- **Version**: 0.5.1-BETA (based on Hexo version 3.1.0)
6565
- **Compatibility**: Hugo v0.53
6666

6767
## Features
@@ -354,7 +354,7 @@ E.g to display a shortcut to open algolia search window :
354354
| Variable | Description |
355355
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
356356
| 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: Display header bar on all screens and medium sidebar is swiped</li></ul> |
357-
| 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. |
357+
| clearReading | Hide sidebar on all page (that is part of [mainSections](https://gohugo.io/functions/where/#mainsections)) to let page 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. |
358358
| thumbnailImage | Display thumbnail image of each post on index pages |
359359
| 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`) |
360360
| 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`) |

exampleSite/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Tranquilpeak
2-
# Version : 0.5.0-BETA
2+
# Version : 0.5.1-BETA
33
# Author : Thibaud Leprêtre
44

55
# I STRONGLY recommend you to use a CDN to speed up loading of pages.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Welcome to Tranquilpeak 0.5.0-BETA"
2+
title: "Welcome to Tranquilpeak 0.5.1-BETA"
33
date: 2015-06-15
44
categories:
55
- tranquilpeak
@@ -24,7 +24,6 @@ Tranquilpeak is a gorgeous responsive theme for Hugo blog framework. It has many
2424
<!--more-->
2525

2626
![Tranquilpeak](/img/showcase.png)
27-
Tranquilpeak is a gorgeous responsive theme for Hugo blog framework. It has many features and integrated services to improve user experience.
2827

2928
{{< toc >}}
3029

@@ -58,7 +57,7 @@ How can I migrate my current version? Please read [CHANGELOG.md](https://github.
5857
## General
5958

6059
- **Authors**: [Thibaud Leprêtre (kakawait)](https://github.com/kakawait) and [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro)
61-
- **Version**: 0.5.0-BETA (based on Hexo version 3.1.0)
60+
- **Version**: 0.5.1-BETA (based on Hexo version 3.1.0)
6261
- **Compatibility**: Hugo v0.53
6362

6463
## Features

layouts/partials/head.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{{- $.Scratch.Set "isPost" false -}}
1+
{{- $.Scratch.Set "isTypeInMainSections" false -}}
22
{{- if .IsPage -}}
3-
{{- if eq .Type "posts" -}}
4-
{{- $.Scratch.Set "isPost" true -}}
3+
{{- if in site.Params.mainSections .Type -}}
4+
{{- $.Scratch.Set "isTypeInMainSections" true -}}
55
{{- end -}}
66
{{- end -}}
7-
{{- if and (and ($.Scratch.Get "isPost") (lt .Site.Params.sidebarBehavior 3)) (or (and .Site.Params.clearReading (not .Params.clearReading)) .Params.clearReading) -}}
7+
{{- if and (and ($.Scratch.Get "isTypeInMainSections") (lt .Site.Params.sidebarBehavior 3)) (or (and .Site.Params.clearReading (not .Params.clearReading)) .Params.clearReading) -}}
88
{{- .Scratch.Set "sidebarBehavior" (add .Site.Params.sidebarBehavior 3) -}}
99
{{- else -}}
1010
{{- .Scratch.Set "sidebarBehavior" .Site.Params.sidebarBehavior -}}
@@ -48,7 +48,7 @@
4848
{{ end }}
4949
<!--EXTERNAL STYLES END-->
5050
<!--STYLES-->
51-
<link rel="stylesheet" href="{{ "css/style-x4v5aep1xln8tw4u8b4utrzzm45rcnnq6emr4myqn5eka2yri56y1t7q.min.css" | absURL }}" />
51+
<link rel="stylesheet" href="{{ "css/style-2w2urpokyukbsouppglitcyxngrsa0pcm58rrm5mqo3ieqo6bkvr3cz9nvf.min.css" | absURL }}" />
5252
<!--STYLES END-->
5353
{{ range .Site.Params.customCSS }}
5454
{{ if isset . "href" }}

layouts/partials/meta.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<meta charset="UTF-8">
22
<meta name="viewport" content="width=device-width, initial-scale=1">
33
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4-
<meta name="generator" content="Hugo {{ hugo.Version }} with theme Tranquilpeak 0.5.0-BETA">
4+
<meta name="generator" content="Hugo {{ hugo.Version }} with theme Tranquilpeak 0.5.1-BETA">
55
<meta name="author" content="{{ .Site.Author.name }}">
66
<meta name="keywords" content="{{ with .Keywords }}{{ delimit . ", " }}{{ end }}{{ if .Site.Params.keywords }}, {{ delimit .Site.Params.keywords ", " }}{{ end }}">
77
<meta name="description" content="{{ if .Description }}{{ .Description }}{{ else if .IsPage }}{{ .Summary }}{{ else }}{{ .Site.Params.description }}{{ end }}">

layouts/partials/post/gallery.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{ $imageLength := len $image }}
1414
<div class="photo-box">
1515
<a class="photo-box-inner fancybox"
16-
data-fancybox-group="gallery-{{ $.File.UniqueID }}"
16+
data-fancybox="gallery-{{ $.File.UniqueID }}"
1717
data-caption="{{ if gt $imageLength 2 }}{{ index $image 2 }}{{ else }}{{ index $image 1 }}{{ end }}"
1818
title="{{ if gt $imageLength 2 }}{{ index $image 2 }}{{ else }}{{ index $image 1 }}{{ end }}"
1919
href="{{ index $image 0 }}"

layouts/shortcodes/image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{ end }}
2222
<div class="figure {{ delimit ($.Scratch.Get "i-classes") " " }}" {{ with (.Get "thumbnailWidth") }}style="width:{{ . }};"{{ end }}>
2323
{{ if eq ($.Scratch.Get "i-fancybox") 1 }}
24-
<a class="fancybox" href="{{ .Get "src" }}"{{ with (.Get "title") }} title="{{ . }}"{{ end }} data-fancybox-group="{{ with (.Get "group") }}{{ . }}{{ end }}">
24+
<a class="fancybox" href="{{ .Get "src" }}"{{ with (.Get "title") }} title="{{ . }}"{{ end }} data-fancybox="{{ with (.Get "group") }}{{ . }}{{ end }}">
2525
{{ end }}
2626
<img class="fig-img" src="{{ with (.Get "thumbnail") }}{{ . }}{{ else }}{{ .Get "src" }}{{ end }}" {{ if or (.Get "thumbnail-width") (.Get "thumbnail-height") }}style="{{ with (.Get "thumbnail-width") }}width: {{ . }};{{ end }}{{ with (.Get "thumbnail-height") }}height: {{ . }};{{ end }}"{{ end }}{{ with (.Get "title") }} alt="{{ . }}"{{ end }}>
2727
{{ if eq ($.Scratch.Get "i-fancybox") 1 }}

0 commit comments

Comments
 (0)