marekskopal/typo3-google-font
最新稳定版本:v1.2.2
Composer 安装命令:
composer require marekskopal/typo3-google-font
包简介
Includes Google Font in your TYPO3 website.
README 文档
README
Description
This TYPO3 extension includes Google Font in your TYPO3 website.
Unlike regular TypoScript adding, this extension adds Google Font in an asynchronous, non-blocking way. It also performs a preconnect for maximum loading efficiency
Installation
Add the extension to your project using Composer:
composer require marekskopal/typo3-google-font
Configuration
-
Add the static template to your TypoScript template:
- Go to WEB > Template module.
- Select your root page.
- Click on Info/Modify.
- Click on Edit the whole template record.
- Go to the Includes tab.
- Add Google Font from the Available Items to the Selected Items.
-
Add you Google Font to the TypoScript configuration:
plugin.tx_msgooglefont {
settings {
fontSrc {
1 = https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap
}
}
}
统计信息
- 总下载量: 245
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-11-14