Finish head attribute settings.
- Add open graph meta attribute (also with twitter card, google puls, facebook) - Split the modules with css, icon, open graph etc.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{ $langCode := replaceRE "-([a-z]+)" (upper (substr .Site.Language -3)) .Site.Language }}
|
||||
{{ $P := .Site.Params }}
|
||||
{{- $langCode := replaceRE "-([a-z]+)" (upper (substr .Site.Language -3)) .Site.Language -}}
|
||||
{{- $P := .Site.Params -}}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ $langCode }}">
|
||||
<head>
|
||||
@@ -7,18 +7,7 @@
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<meta name="generator" content="Hugo v{{ hugo.Version }}">
|
||||
|
||||
{{ partial "partials/head.html" . }}
|
||||
|
||||
<link rel="canonical" href="{{ .Site.BaseURL }}">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ $P.favicon.icon }}">
|
||||
<link rel="icon" type="image/x-icon" href="{{ $P.favicon.icon }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ $P.favicon.small }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ $P.favicon.medium }}">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ $P.favicon.appleTouchIcon }}">
|
||||
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
{{- $style := resources.Get "css/style.css" | resources.ExecuteAsTemplate "css/style.css" . -}}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
{{- partial "partials/head.html" . }}
|
||||
|
||||
<title>{{ .Site.Title }}</title>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user