Skip to content

Commit c7d2fde

Browse files
authored
Merge pull request #296 from kakawait/develop
Release 0.4.4-BETA
2 parents 907866f + 740fb11 commit c7d2fde

31 files changed

+4112
-133
lines changed

CHANGELOG.md

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

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

5+
## [0.4.4-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/19) - 09 sep 2018
6+
7+
- Revamp _open sidebar_ behavior to not push the content out of container ([#278](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/278)) (thank you [johnsoncodehk](https://github.com/johnsoncodehk))
8+
- Fix category name when using special char ([#269](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/269))
9+
- Fix param `async` & `defer` from `customJS` ([#289](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/289))
10+
- Add support of `mailto:` in menu link ([#208](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/208))
11+
- Add support of `MathJax` ([#294](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/294))
12+
- And more see milestone page for complete log
13+
514
## [0.4.3-BETA](https://github.com/kakawait/hugo-tranquilpeak-theme/milestone/18) - 12 nov 2017
615

716
- Typo fix from `highligth.js` to correct on `highlight.js` ([#231](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/231)) (thank you [@zacbook](https://github.com/zacbook))

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ How can I migrate my current version? Please read [CHANGELOG.md](https://github.
2020

2121
Please all the credit should be attributed to [original *Hexo* version](https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak) and its author [Louis Barranqueiro](https://github.com/LouisBarranqueiro).
2222

23-
*Hugo* version keeps every `.js` and `.css` files untouched from original *Hexo* version in order to enjoy futur original *Hexo* version updates or features!
23+
*Hugo* version keeps every `.js` and `.css` files untouched from original *Hexo* version in order to enjoy future original *Hexo* version updates or features!
2424

2525
## Summary
2626

@@ -36,12 +36,12 @@ Please all the credit should be attributed to [original *Hexo* version](https://
3636
## General
3737

3838
- **Authors**: [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) and [Thibaud Leprêtre (kakawait)](https://github.com/kakawait)
39-
- **Version**: 0.4.3-BETA (based on Hexo version 1.10.0)
39+
- **Version**: 0.4.4-BETA (based on Hexo version 1.10.0)
4040
- **Compatibility**: Hugo v0.20.1
4141

4242
## Features
4343

44-
**General features:**
44+
**General features:**
4545

4646
- Fully responsive
4747
- Optimized for tablets & mobiles
@@ -52,8 +52,8 @@ Please all the credit should be attributed to [original *Hexo* version](https://
5252
- Support Open Graph protocol
5353
- Easily customizable (fonts, colors, layout elements, code coloration, etc..)
5454
- Support internationalization (i18)
55-
56-
**Posts features:**
55+
56+
**Posts features:**
5757

5858
- Thumbnail image
5959
- Cover image
@@ -63,9 +63,9 @@ Please all the credit should be attributed to [original *Hexo* version](https://
6363
- GitHub theme for code highlighting (customizable)
6464
- Image gallery
6565
- Tags for images (FancyBox), wide images, tabbed code blocks, highlighted text, alerts
66-
- Table of contents
67-
68-
**Integrated services:**
66+
- Table of contents
67+
68+
**Integrated services:**
6969

7070
- Disqus
7171
- Google analytics
@@ -101,23 +101,23 @@ After installing the Tranquilpeak theme successfully, we recommend you to take a
101101

102102
First, let's take a look at the [config.toml](exampleSite/config.toml). It will be useful to learn how to customize your site. Feel free to play around with the settings.
103103

104-
More information on [user documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/user.md) to install and configure the theme
104+
More information on [user documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/user.md) to install and configure the theme
105105

106-
### For people who want to create their own version of tranquilpeak (developers)
106+
### For people who want to create their own version of tranquilpeak (developers)
107107

108-
1. Run `git clone https://github.com/kakawait/hugo-tranquilpeak-theme.git`
109-
2. Follow [developer documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/developer.md) to edit and build the theme
108+
1. Run `git clone https://github.com/kakawait/hugo-tranquilpeak-theme.git`
109+
2. Follow [developer documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/developer.md) to edit and build the theme
110110

111111
## Demo
112112

113113
Check out Tranquilpeak theme in live : [hugo-tranquilpeak-theme demo](https://tranquilpeak.kakawait.com)
114114

115115
## Showcase
116116

117-
Checkout showcase https://github.com/kakawait/hugo-tranquilpeak-theme/wiki/Showcase
117+
Checkout showcase https://tranquilpeak.kakawait.com/2015/06/who-is-using-tranquilpeak-hugo-theme/
118118

119119
### How can I add my site to the showcase
120-
120+
121121
**Click [here](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/new?title=Add%20my%20blog%20into%20the%20showcase&body=Hey,%20add%20my%20blog%20into%20the%20showcase:) to add your blog into the showcase.**
122122

123123
Please fill the following information:
@@ -130,9 +130,9 @@ Please fill the following information:
130130

131131
If it's your first time using Hugo, please check [Hugo official documentation](https://gohugo.io/overview/introduction/)
132132

133-
### For users
133+
### For users
134134

135-
To install and configure the theme, consult the following documentation : [user documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/user.md)
135+
To install and configure the theme, consult the following documentation : [user documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/user.md)
136136

137137
### For developers
138138

@@ -146,7 +146,7 @@ Read [guidelines for contributing](https://github.com/kakawait/hugo-tranquilpeak
146146

147147
As explained on [Credits](#credits):
148148

149-
> *Hugo* version keeps every `.js` and `.css` files untouched from original *Hexo* version in order to enjoy futur original *Hexo* version updates or features!
149+
> *Hugo* version keeps every `.js` and `.css` files untouched from original *Hexo* version in order to enjoy future original *Hexo* version updates or features!
150150
151151
That mean I would keep a strong dependency with original *Hexo* theme. Thus if you want to suggest any modifications on `.css` or `.js` files **I will submit those changes to original *Hexo* theme** (except if it's really specific to *Hugo* bugs that is not present on *Hexo*).
152152

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.4.3-BETA (based on Hexo version 1.10.0)
31+
- **Version** : 0.4.4-BETA (based on Hexo version 1.10.0)
3232
- **Compatibility** : Hugo v0.20.1
3333

3434
## Requirements ##

docs/user.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ If you want to report a bug or ask a question, [create an issue](https://github.
3333
- [Integrated services configuration](#integrated-services-configuration)
3434
* [Google Analytics](#google-analytics)
3535
* [Exclude hostname (localhost) while writing articles](#exclude-hostname-localhost-while-writing-articles)
36+
* [Social cards](#social-cards)
3637
- [Quick & easy modifications](#quick--easy-modifications)
3738
* [Prerequisites](#prerequisites)
3839
* [Change global style](#change-global-style)
@@ -54,7 +55,7 @@ If you want to report a bug or ask a question, [create an issue](https://github.
5455
## General
5556

5657
- **Authors**: [Louis Barranqueiro (LouisBarranqueiro)](https://github.com/LouisBarranqueiro) and [Thibaud Leprêtre (kakawait)](https://github.com/kakawait)
57-
- **Version**: 0.4.3-BETA (based on Hexo version 1.10.0)
58+
- **Version**: 0.4.4-BETA (based on Hexo version 1.10.0)
5859
- **Compatibility**: Hugo v0.20.1
5960

6061
## Features
@@ -352,7 +353,7 @@ E.g to display a shortcut to open algolia search window :
352353

353354
| Variable | Description |
354355
|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
355-
| 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> |
356+
| 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> |
356357
| 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. |
357358
| thumbnailImage | Display thumbnail image of each post on index pages |
358359
| 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`) |
@@ -495,6 +496,16 @@ Follow these steps, to add new filter :
495496
7. Select **Custom filter**, **Filter Field** : `Hostname`, **Filter Pattern** : `(.*?localhost.*?)`
496497
8. Click on **Save** button
497498

499+
### Social cards
500+
501+
You can configure how links to your site will appear in Twitter and/or Facebook. There are several ways of setting up card parameters:
502+
503+
* **Title**: if in a page with title (like a post) it will use post title, otherwise, will use site title.
504+
* **Description**: will use article summary, if it does not exist, will use site description.
505+
* **Site author** (twitter only): will use the value of `twitter` field on ``[[params.Author]]`` section of your `config.toml` file.
506+
* **Content author** (twitter only): will use the value of the field `twitter` in your document header. If not specified, will use the **Site author** field value.
507+
* **Image**: will use the following fields in order, if one is not available, the next will be taken: thumbnail of document, cover of document, gallery images, gravatar email then author picture, .
508+
498509
## Quick & easy modifications
499510

500511
### Prerequisites
@@ -530,7 +541,8 @@ Please note, there are many different versions of Markdown and some of them are
530541
Tranquilpeak introduces new variables to give you a lot of possibilities.
531542

532543
Example :
533-
``` markdown
544+
545+
```markdown
534546
disqusIdentifier: fdsF34ff34
535547
keywords:
536548
- javascript
@@ -555,6 +567,7 @@ showTags: true
555567
showPagination: true
556568
showSocial: true
557569
showDate: true
570+
summary: "This is a custom summary and does *not* appear in the post."
558571
```
559572

560573
|Variable|Description|
@@ -578,6 +591,7 @@ showDate: true
578591
|showSocial|`true`: show social button such as share on Twitter, Facebook...|
579592
|showMeta|`true`: Show post meta (date, categories).|
580593
|showActions|`true`: Show post actions (navigation, share links).|
594+
|summary|Custom excerpt text to show on the homepage.|
581595

582596
Example:
583597
A post on index page will look like this with :`thumbnailImagePosition` set to `bottom`:
@@ -594,6 +608,7 @@ The same with : `thumbnailImagePosition` set to `left`:
594608
Use:
595609

596610
- `<!--more-->` to define post excerpt and keep the post excerpt in the post content
611+
- For a custom exerpt *not* in the post content, use the `summary` front-matter variable. Markdown syntax is supported.
597612

598613
### Display table of contents
599614

exampleSite/config.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Tranquilpeak
2-
# Version : 0.4.3-BETA
2+
# Version : 0.4.4-BETA
33
# Author : Thibaud Leprêtre
44

55
# I STRONGLY recommend you to use a CDN to speed up loading of pages.
@@ -168,6 +168,10 @@ canonifyurls = true
168168
# icon: search
169169
# class: st-search-show-outputs
170170

171+
# Display `Next` on left side of the pagination, and `Prev` on right side one.
172+
# If you set this value to `true`, these positions swap.
173+
# swapPaginator = true
174+
171175
# Custom CSS. Put here your custom CSS files. They are loaded after the theme CSS;
172176
# they have to be referred from static root. Example
173177
# [[params.customCSS]]
@@ -178,10 +182,6 @@ canonifyurls = true
178182
# [[params.customJS]]
179183
# src = "js/myscript.js"
180184

181-
# Display `Next` on left side of the pagination, and `Prev` on right side one.
182-
# If you set this value to `true`, these positions swap.
183-
# swapPaginator = true
184-
185185
# Sharing options
186186
# Comment and uncomment to enable or disable sharing options
187187
# If you wanna add a sharing option, read user documentation :

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.4.3-BETA"
2+
title: "Welcome to Tranquilpeak 0.4.4-BETA"
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.4.3-BETA (based on Hexo version 1.10.0)
68+
- **Version**: 0.4.4-BETA (based on Hexo version 1.10.0)
6969
- **Compatibility**: Hugo v0.20.1
7070

7171
## Features
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: "Who's using Tranquilpeak Hugo Theme"
3+
slug: who-is-using-tranquilpeak-hugo-theme
4+
date: 2015-06-14
5+
categories:
6+
- tranquilpeak
7+
- showcase appliquée
8+
thumbnailImagePosition: left
9+
thumbnailImage: //d1u9biwaxjngwg.cloudfront.net/cover-image-showcase/city-750.jpg
10+
---
11+
12+
Here you can find a list of the blogs that use Tranquilpeak theme, with different styles and customizations.
13+
14+
<!--more-->
15+
16+
If you want to add your site to this showcase, click [here](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/new?title=Add%20my%20blog%20into%20the%20showcase&body=Hey,%20add%20my%20blog%20into%20the%20showcase:) and fill the following information:
17+
18+
- public url
19+
- name (optional)
20+
- description (optional)
21+
22+
23+
## Eric Bouchut's blog
24+
25+
[![Eric Bouchut's blog](http://i.imgur.com/zQmKIKNm.png)](http://ericbouchut.com/)
26+
27+
## Pankaj Kumar's blog
28+
29+
[![Pankaj Kumar's blog](http://i.imgur.com/WHpb9ZKm.png)](https://pnarula.com/)
30+
31+
## Paul Wolke's blog
32+
33+
[![Paul Wolke's blog](http://i.imgur.com/zHm1BVXm.png)](http://www.paulwolke.com/)
34+
35+
## Robin Hu's blog
36+
37+
[![Robin Hu's blog](https://i.imgur.com/7SujaMam.png)](http://robinforest.net/)
38+
39+
## Zentechnista's blog
40+
41+
[![Zentechnista's blog](https://i.imgur.com/7zN7WMMm.png)](https://zentechnista.github.io/)
42+
43+
## Yamila Moreno's blog
44+
45+
[![Yamila Moreno's blog](https://i.imgur.com/L51G3pJ.png)](https://moduslaborandi.net/)
46+
47+
## Viajes Dendarii's blog
48+
49+
[![Viajes Dendarii's blog](https://i.imgur.com/tdXK3kYm.png)](https://dendarii.es)
50+
51+
## Wajahat Karim's blog
52+
53+
[![Wajahat Karim's blog](https://i.imgur.com/9BPoJvdm.png)](https://wajahatkarim.com/)
54+
55+
## Xiaoyun Yang's blog
56+
57+
[![Xiaoyun Yang's blog](https://i.imgur.com/vVRSvhpm.png)](http://xiaoyunyang.github.io/)
58+
59+
## Alfred E. Lin's blog
60+
61+
[![Alfred E. Lin's blog](https://i.imgur.com/lHwsvIJm.png)](http://alfredlin.com/)
62+
63+
## Philipp Gärtner's blog
64+
65+
[![Philipp Gärtner's blog](https://i.imgur.com/Sx6oXnSm.png)](https://philippgaertner.github.io/)
66+
67+
## Sagar Khatri's blog
68+
69+
[![Sagar Khatri's blog](https://i.imgur.com/edZ3PO9m.png)](https://www.ragasirtahk.tk/)
70+
71+
## Dr. Cruz Rincón's blog
72+
73+
[![Dr. Cruz Rincón's blog](https://i.imgur.com/XazQAolm.png)](https://www.cruzrincon.com.ve/)

0 commit comments

Comments
 (0)