将 Google 字体添加到 Drupal 8 主题的正确方法是什么?
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
Run Code Online (Sandbox Code Playgroud)
编辑THEME.libraries.yml
并将其添加为具有“外部”类型的常规 CSS 文件:
global-styling:
css:
theme:
https://fonts.googleapis.com/css?family=Lato: { type: external }
Run Code Online (Sandbox Code Playgroud)