You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix menu ordering ([#149](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/149), [#150](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/150))
8
+
- Synch from Hexo Tranquilpeak theme 1.10 ([#147](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/147), [#132](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/132))
9
+
- Italian translation
10
+
-`showMeta` & `showActions` (see user doc for more details)
11
+
- Extensible _Sharing options_ (see user doc for more details)
12
+
- XLG side bar bug on Edge
13
+
-_OLDER POSTS_ Button Overlaps Sidebar
14
+
- Print media queries
15
+
- Load external resources using SRI ([#159](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/159))
16
+
- revamp HLjs usage to fix highligthing bugs ([#154](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/154), [#160](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/160))
17
+
- Improve `customJS` and `customCSS`
18
+
- Now support both abs and rel url ([#155](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/155))
19
+
- Add more customization than just url ([#163](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/163))
20
+
- Add theme version on meta tag ([#140](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/140))
21
+
22
+
### Breaking changes
23
+
24
+
In order to fix menu ordering, you have to upgrade you `config.toml` to avoid any menu weight equals to `0`. See https://github.com/kakawait/hugo-tranquilpeak-theme/commit/f4feb3261381bd9a77be4da66d8466322886eb22#diff-991d2a2fe208cdee83955ad6e9a323a7 to get an full example.
25
+
26
+
With new _Sharing options_ that allow extensible list of sharing options, there is no more hardcoded sharing option inside template. Thus sharing options: Facebook, Twitter and Google plus should be reported inside your `config.toml` (you can checkout `exampleSite/config.toml` to see sample):
- Fix Merriweather font to support non latin chars ([#129](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/129), [#142](https://github.com/kakawait/hugo-tranquilpeak-theme/issues/142), [#143](https://github.com/kakawait/hugo-tranquilpeak-theme/pull/143))
Copy file name to clipboardExpand all lines: docs/developer.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,14 +28,13 @@ If you want to report a bug or ask a question, [create an issue](https://github.
28
28
## General ##
29
29
30
30
-**Author** : Thibaud Leprêtre
31
-
-**Version** : 0.3.1-BETA (based on Hexo version 1.9.1)
31
+
-**Version** : 0.4.0-BETA (based on Hexo version 1.10.0)
32
32
-**Compatibility** : Hugo v0.20.1
33
33
34
34
## Requirements ##
35
35
36
36
1.**Hugo** : v0.16 or higher, see official documentation (https://gohugo.io/overview/installing/)
37
-
3.**Grunt CLI** : v0.1.13 or higher. Run `npm install grunt-cli -g`
38
-
4.**Bower** : v1.4.1 or higher. Run `npm install bower -g`
37
+
2.**Grunt CLI** : v0.1.13 or higher. Run `npm install grunt-cli -g`
39
38
40
39
## Installation ##
41
40
@@ -45,7 +44,6 @@ If you want to report a bug or ask a question, [create an issue](https://github.
45
44
4. Go in `theme/tranquilpeak` folder with `cd themes/tranquilpeak`
46
45
5. Install [requirements](#requirements)
47
46
6. Run `npm install` to install [NPM dependencies](#npm-dependencies)
48
-
7. Run `bower install` to install [Bower dependencies](#bower-dependencies)
49
47
50
48
If you want to configure the theme, please follow the [user documentation](https://github.com/kakawait/hugo-tranquilpeak-theme/blob/master/docs/user.md)
51
49
@@ -160,7 +158,7 @@ Use `npm run <script_name>` to run one of these scripts. E.g : `npm run start`
160
158
|`npm run ...`|Description|
161
159
|---|---|
162
160
|`start`|Build the theme once and rebuild after each change|
163
-
|`prod`|Build the theme for production. (synchronize bower dependencies, images, fonts, compile assets (css and js) with some optimization (concat and minify) and link it to views)|
161
+
|`prod`|Build the theme for production. (synchronize images, fonts, compile assets (css and js) with some optimization (concat and minify) and link it to views)|
164
162
|`lint`|Check code style with [ESLint](http://eslint.org)|
165
163
166
164
## Grunt tasks ##
@@ -209,7 +207,6 @@ On production environment, these javascript and stylesheets files are concatenat
209
207
210
208
|Task|Description|
211
209
|---|---|
212
-
|bower|Copy all needed files by types from bower dependencies|
213
210
|clean|Delete `src/assets` folder|
214
211
|concat|<ul><li>devJs : Concat all javascript files located in `src/js/` into 1 file : `src/assets/js/tranquilpeak.js`</li><li>prodCss : Concat all stylesheets files located in `src/assets/css/` into 1 file : `src/assets/css/style.css`</li><li>prodJs : Concat all javascript listed in `tasks/pipeline.js` in 1 file : `src/assets/js/script.js`</li></ul>|
215
212
|cssmin|Minify `src/assets/cssstyle.css` file in : `src/assets/cssstyle.min.css`|
@@ -223,8 +220,8 @@ On production environment, these javascript and stylesheets files are concatenat
223
220
224
221
|Task|Description|
225
222
|---|---|
226
-
|build|Synchronize bower dependencies, images, fonts, compile assets (css and js) and link it to views|
227
-
|buildProd|Synchronize bower dependencies, images, fonts, compile assets (css and js) with some optimization (concat and minify) and link it to views|
223
+
|build|Synchronize images, fonts, compile assets (css and js) and link it to views|
224
+
|buildProd|Synchronize images, fonts, compile assets (css and js) with some optimization (concat and minify) and link it to views|
228
225
|default|Build the theme once and rebuild after each change|
229
226
|eslint|Check code style with ESLint|
230
227
|compileAssets|Compile scss files and concat js files|
-[ ] Pagination custumization `tagPagination`, `categoryPagination` and `archivePagination` (https://github.com/kakawait/hugo-tranquilpeak-theme/issues/17)
@@ -360,8 +360,8 @@ E.g to display a shortcut to open algolia search window :
360
360
| favicon | Your favicon path (Default: `/favicon.png`) |
361
361
| imageGallery | Display an image gallery at the end of a post which have `photos` variables. (false: disabled, true: enabled) |
362
362
| 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"]. |
363
+
| customCSS (_DEPRECATED see [Add custom JS or CSS using configuration](#add-custom-js-or-css-using-configuration)_) | Define files with css that override or extend the theme css: `customCSS` = ["css/mystyles.css"]. |
364
+
| customJS (_DEPRECATED see [Add custom JS or CSS using configuration](#add-custom-js-or-css-using-configuration)_) | Define files with js that override or extend the theme js: `customJS` = ["js/myscripts.js"]. |
365
365
366
366
E.g :
367
367
A category page look like this with `hierarchicalCategories = true` :
@@ -370,6 +370,37 @@ A category page look like this with `hierarchicalCategories = true` :
370
370
The same page with `hierarchicalCategories = false`:
If you need to add some additionnal javascript or css files to your blog without forking or overriding theme itself you could use following configuration:
**ATTENTION** there is no limitation on key structures and each keys will be converted as tag attributes.
401
+
402
+
Futhermore, even if previous syntax is still supported (`customJS = ["js/myscripts.js"]`), you can't mix both new and old syntax.
403
+
373
404
#### Integrated services
374
405
375
406
```toml
@@ -396,7 +427,43 @@ googleAnalytics =
396
427
| fbAdminIds | Your Facebook user ids used to connect your blog with your facebook user accounts (Facebook Insights). Use array syntax. E.g : `[9830047, 1003342]`. Visit [Facebook docs](https://developers.facebook.com/docs/platforminsights/domains) for more information. |
397
428
| fbAppId | Your Facebook app id used to connect your blog with your facebook app account (Facebook Insights). E.g : `9841307`. Visit [Facebook docs](https://developers.facebook.com/docs/platforminsights/domains) for more information. |
You can comment and uncomment to enable or disable sharing options. If your own sharing options, simply add new sharing options on your configuration. E.g with **foo_bar** social network:
|icon|Name of the fontawesome icon class (Go to [font-awesome icons](http://fontawesome.io/icons/) to find class name of icon)|
464
+
|url|URL of the link. use %s to specify where to put the permalink.|
465
+
466
+
#### Enable pages
400
467
401
468
Tranquilpeak provides you 2 pages to display all posts title and date by tags, by categories, by date and an about page. To enable one of this pages simply add following [taxonomies](https://gohugo.io/taxonomies/overview/):
402
469
@@ -426,15 +493,15 @@ Follow these steps, to add new filter :
Since you are going to edit the theme, you have to install all the necessary to build it after changes : [Installation](https://github.com/LouisBarranqueiro/hexo-theme-tranquilpeak/blob/master/docs/developer.md#installation)
434
501
435
502
**Run command in theme folder : `hexo-blog/themes/tranquilpeak`**
436
503
437
-
### Change global style ###
504
+
### Change global style
438
505
439
506
If you want to change font families, font size, sidebar color, things like that, take a look at `source/scss/utils/_variables.scss` file. This file contains global variables used in this theme. **Build the theme after changes to see changes.**
440
507
@@ -502,11 +569,13 @@ showDate: true
502
569
|coverCaption|Add a caption under the cover image : [Cover caption demo](https://tranquilpeak.kakawait.com/2015/05/cover-image-showcase/)|
503
570
|coverMeta|`in`: display post meta (title, date and categories) on cover image, `out`: display meta (title, date and categories) under cover image as usual. Default behavior : `in`|
504
571
|gallery|Images displayed in an image gallery (with fancybox) at the end of the post. If thumbnail image is not configured and cover image too, the first photo is used as thumbnail image. format: `original url [thumbnail url] [caption]`, E.g : `https://example.com/original.jpg https://example.com/thumbnail.jpg "New York"`|
505
-
|comments|Disable the comment of the post.
572
+
|comments|`true`: Show the comment of the post.|
506
573
|showDate|`true`: Show the date when `true` (default)|
507
-
|showTags|`true`: show tags of this page. Default behavior: `true`
508
-
|showPagination|`true`: show pagination. Default behavior: `true`
509
-
|showSocial|`true`: show social button such as share on Twitter, Facebook... Default behavior: `true`
574
+
|showTags|`true`: show tags of this page.|
575
+
|showPagination|`true`: show pagination.|
576
+
|showSocial|`true`: show social button such as share on Twitter, Facebook...|
577
+
|showMeta|`true`: Show post meta (date, categories).|
578
+
|showActions|`true`: Show post actions (navigation, share links).|
510
579
511
580
Example:
512
581
A post on index page will look like this with :`thumbnailImagePosition` set to `bottom`:
0 commit comments