Enable local or remote Bootstrap and KaTeX files
This commit is contained in:
@@ -1,37 +1,11 @@
|
||||
<link href="{{ relLangURL `apple-touch-icon.png` }}" rel="apple-touch-icon" sizes="180x180">
|
||||
<link href="{{ relLangURL `favicon-16x16.png` }}" rel="icon" sizes="16x16" type="image/png">
|
||||
<link href="{{ relLangURL `favicon-32x32.png` }}" rel="icon" sizes="32x32" type="image/png">
|
||||
{{ if ne (relLangURL "favicon.ico") "/favicon.ico" }}
|
||||
<link href="{{ relLangURL `favicon.ico` }}" rel="shortcut icon">
|
||||
{{ end }}
|
||||
<link href="{{ relLangURL `favicon.png` }}" rel="icon" type="image/png">
|
||||
<link href="{{ relLangURL `favicon.svg` }}" rel="icon" type="image/svg+xml">
|
||||
<link color="{{ .Site.Params.paige.color | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">
|
||||
<link href="{{ relLangURL `site.webmanifest` }}" rel="manifest">
|
||||
{{ with .Site.Params.paige.bootstrap.styles_path }}
|
||||
{{ with resources.Get (relLangURL .) }}
|
||||
<link href="{{ (. | minify | fingerprint).RelPermalink }}" rel="stylesheet">
|
||||
{{ else }}
|
||||
<link href="{{ relLangURL . }}" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ with .Site.Params.paige.bootstrap.icons_path }}
|
||||
{{ with resources.Get (relLangURL .) }}
|
||||
<link href="{{ (. | minify | fingerprint).RelPermalink }}" rel="stylesheet">
|
||||
{{ else }}
|
||||
<link href="{{ relLangURL . }}" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha384-b6lVK+yci+bfDmaY1u0zE8YYJt0TZxLEAFyYSLHId4xoVvsrQu3INevFKo+Xir8e" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }}
|
||||
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" integrity="sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" rel="stylesheet">
|
||||
{{ end }}
|
||||
{{ if .AlternativeOutputFormats }}
|
||||
{{ $title := partial "paige/func-title" . }}
|
||||
{{ range .AlternativeOutputFormats }}
|
||||
<link href="{{ .Permalink }}" rel="{{ .Rel }}" title="{{ $title }}" type="{{ .MediaType.Type }}">
|
||||
{{ end }}
|
||||
{{ $href := .href }}
|
||||
{{ $path := false }}
|
||||
{{ if eq $href (urls.Parse $href).Path }}
|
||||
{{ $path = true }}
|
||||
{{ with resources.Get (relLangURL $href) }}
|
||||
{{ $href = (. | minify | fingerprint).RelPermalink }}
|
||||
{{ else }}
|
||||
{{ $href = relLangURL $href }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<link{{ if not $path }} crossorigin="anonymous"{{ end }} href="{{ $href }}" integrity="{{ .integrity }}" rel="stylesheet">
|
||||
|
Reference in New Issue
Block a user