| | |
| | | {{ $baseUrl := "https://fonts.googleapis.com/css2?family=" }} |
| | | {{ $fontParam := delimit .Site.Params.googleFonts "&family=" }} |
| | | {{ $url := printf "%s" "&display=swap" | printf "%s%s" $fontParam | printf "%s%s" $baseUrl | printf "%s" }} |
| | | <link rel="preconnect" href="https://fonts.googleapis.com"> |
| | | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| | | <link href="{{ $url }}" rel="stylesheet"> |
| | | <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| | | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> |
| | | <link href="{{ $url }}" rel="stylesheet" /> |
| | | |
| | | {{- end -}} |
| | | |