mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
print: make print url deterministic #309
This commit is contained in:
parent
b48edadfcd
commit
5f2e3fe6e7
2 changed files with 18 additions and 2 deletions
|
@ -5,8 +5,7 @@
|
||||||
[outputFormats]
|
[outputFormats]
|
||||||
[outputFormats.PRINT]
|
[outputFormats.PRINT]
|
||||||
name= "PRINT"
|
name= "PRINT"
|
||||||
baseName = "index"
|
baseName = "index.print"
|
||||||
path = "_print"
|
|
||||||
isHTML = true
|
isHTML = true
|
||||||
mediaType = 'text/html'
|
mediaType = 'text/html'
|
||||||
permalinkable = false
|
permalinkable = false
|
||||||
|
|
|
@ -14,6 +14,23 @@ This document shows you what's new in the latest release. For a detailed list of
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 5.1.0
|
||||||
|
|
||||||
|
- **Change**: Because the print preview URLs were non deterministic for normal pages in comparison to page bundles, this is now changed. Each print preview is now accessible by adding a `index.print.html` to the default URL.
|
||||||
|
|
||||||
|
You can revert this behavior by overwriting the PRINT output format setting in your `config.toml`to:
|
||||||
|
|
||||||
|
````toml
|
||||||
|
[outputFormats]
|
||||||
|
[outputFormats.PRINT]
|
||||||
|
name= "PRINT"
|
||||||
|
baseName = "index"
|
||||||
|
path = "_print"
|
||||||
|
isHTML = true
|
||||||
|
mediaType = 'text/html'
|
||||||
|
permalinkable = false
|
||||||
|
````
|
||||||
|
|
||||||
## 5.0.0
|
## 5.0.0
|
||||||
|
|
||||||
- **Breaking**: The theme changed how JavaScript and CSS dependencies are loaded to provide a better performance. In case you've added own JavaScript code that depends on the themes jQuery implementation, you have to put it into a separate `*.js` file (if not already) and add the `defer` keyword to the `script` element. Eg.
|
- **Breaking**: The theme changed how JavaScript and CSS dependencies are loaded to provide a better performance. In case you've added own JavaScript code that depends on the themes jQuery implementation, you have to put it into a separate `*.js` file (if not already) and add the `defer` keyword to the `script` element. Eg.
|
||||||
|
|
Loading…
Reference in a new issue