Skip to content

Commit 586e0af

Browse files
committed
docs: add "useStyle10" to readme and changelog
1 parent 0e8eaf8 commit 586e0af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

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

33
All notable changes for major version updates will be documented here.
44

5+
## 9.2.0
6+
7+
Cortina helper accepts a new parameter `useStyle10` that serves blocks tailored to the new version of KTH-Style.
8+
If the parameter is false or missing, blocks tailored for KTH-Style 9 will be fetched.
9+
510
## 9.0.0
611

712
- **Breaking:** function `registerBreadcrumbHelper` no longer takes any config. All breadcrumbs now need to be manually sent to `res.render` on **every request**.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ route.use('/app/mount/point', require('@kth/kth-node-web-common/lib/web/cortina'
6363
globalLink: true, // Default false if not set, if true the language link point to the startpage of KTH,
6464
supportedLanguages: ['sv'], // Optional - set to languges supported - if only one language is supported, globalLink sets to true
6565
siteNameKey = 'site_name', // Defaults to site_name. This key need to be set in i18n messages file
66-
localeTextKey = 'locale_text', // Defaults to locale_text. This key need to be set in i18n messages file
66+
localeTextKey = 'locale_text', // Defaults to locale_text. This key need to be set in i18n messages file,
67+
useStyle10: true, // Decides which view of the block to fetch. Defaults to false, which uses views tailored for style9
6768
}))
6869
```
6970

0 commit comments

Comments
 (0)