Files
lena-schilling-website/packages/base/Configuration/Sets/SitePackage/TypoScript/page.typoscript
Dominik Polakovics 1a20c0e7a3
All checks were successful
Build / build (push) Successful in 4m1s
Build / deploy-stage (push) Successful in 2m41s
Build / switch-stage (push) Successful in 1m57s
fix: change font preloading
2024-12-15 02:23:27 +01:00

116 lines
2.6 KiB
Plaintext

# Include existing configuration
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:base/ContentBlocks" extensions="typoscript">
page = PAGE
page {
typeNum = 0
shortcutIcon = EXT:base/Resources/Public/Icons/favicon.ico
10 = PAGEVIEW
10 {
paths {
0 = EXT:base/Resources/Private/PageView/
1 = {$page.pageview.paths}
}
dataProcessing {
10 = files
10 {
references.fieldName = media
}
20 = menu
20 {
levels = 2
includeSpacer = 1
as = mainnavigation
}
30 = page-content
}
}
meta {
viewport = {$page.meta.viewport}
robots = {$page.meta.robots}
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
X-UA-Compatible = {$page.meta.compatible}
X-UA-Compatible {
attribute = http-equiv
}
}
includeCSS {
main = EXT:base/Resources/Public/Css/main.css
}
includeJSLibs {
navigation = EXT:base/Resources/Public/JavaScript/navigation.js
}
includeJSFooter {
test_scripts = EXT:base/Resources/Public/JavaScript/main.js
}
# Use includeAssets to properly preload fonts with TYPO3 v13 asset handling.
# Make sure the font filenames do not have spaces. Convert them to use hyphens or underscores.
# After that, the AssetCollector will handle publishing to _assets folder.
includeAssets {
hajimeSansTtf {
path = EXT:base/Resources/Public/Fonts/Hajime-Sans.ttf
type = font
resourceType = font
preload = 1
as = font
attributes {
type = font/ttf
crossorigin = anonymous
}
}
interVariable {
path = EXT:base/Resources/Public/Fonts/Inter-VariableFont_opsz,wght.ttf
type = font
resourceType = font
preload = 1
as = font
attributes {
type = font/ttf
crossorigin = anonymous
}
}
interVariableItalic {
path = EXT:base/Resources/Public/Fonts/Inter-Italic-VariableFont_opsz,wght.ttf
type = font
resourceType = font
preload = 1
as = font
attributes {
type = font/ttf
crossorigin = anonymous
}
}
}
}
lib.contentElement {
layoutRootPaths {
0 = EXT:base/Resources/Private/ContentElements/Layouts/
}
}
lib.contentBlock {
partialRootPaths.0 < lib.contentElement.partialRootPaths.0
layoutRootPaths.0 < lib.contentElement.layoutRootPaths.0
settings < lib.contentElement.settings
}
# Ensure parseFunc removes empty paragraphs and whitespace
lib.parseFunc_RTE {
nonTypoTagStdWrap.encapsLines.stripEmptyLines = 1
nonTypoTagStdWrap.trim = 1
externalBlocks {
p {
stdWrap.stripNL = 1
}
}
}