diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-11-02 00:30:06 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2023-11-02 00:33:48 +0100 |
commit | 76b72515b6d8078268077bd9d96db493fb7bd6f8 (patch) | |
tree | d3cf609717445b7022de5986b253d2f677f9f8c3 /layouts/partials/head.html | |
parent | 0060dc0a5cd3e7486da6e360ffea7cebcbf99759 (diff) | |
download | hugo-minimalist-theme-76b72515b6d8078268077bd9d96db493fb7bd6f8.tar.gz hugo-minimalist-theme-76b72515b6d8078268077bd9d96db493fb7bd6f8.tar.bz2 hugo-minimalist-theme-76b72515b6d8078268077bd9d96db493fb7bd6f8.zip |
structured metadata image like leading image
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 38e31b7..35384ba 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,20 +1,38 @@ <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - {{ partial "structured-data.html" . }} + {{ partial "structured-data.html" . }} - {{ with resources.Get "scss/style.scss" | resources.ToCSS (dict "includePaths" (slice "node_modules") "targetPath" "css/style.css") | resources.Minify | fingerprint }} - <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" type="text/css" media="screen" /> - {{ end }} - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> - <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css"> + {{ with resources.Get "scss/style.scss" | resources.ToCSS (dict "includePaths" (slice "node_modules") "targetPath" "css/style.css") | resources.Minify | fingerprint }} + <link + rel="stylesheet" + href="{{ .RelPermalink }}" + integrity="{{ .Data.Integrity }}" + crossorigin="anonymous" + type="text/css" + media="screen" + /> + {{ end }} + <link + rel="stylesheet" + href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" + integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" + crossorigin="anonymous" + referrerpolicy="no-referrer" + /> + <link + rel="stylesheet" + href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css" + /> - {{ with resources.Get .Site.Params.favicon }} - <link rel="icon" href="{{ .RelPermalink }}"> - {{ end }} -{{ range .AlternativeOutputFormats -}} - {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} + {{ with resources.Get .Site.Params.favicon }} + <link rel="icon" href="{{ .RelPermalink }}" /> + {{ end }} + {{ range .AlternativeOutputFormats -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} -<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script> + + <script + type="text/javascript" + src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" + ></script> </head> |