revuoxmrtheme/layouts/partials/head.html

159 lines
4.7 KiB
HTML
Raw Permalink Normal View History

2024-07-02 22:03:13 +00:00
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1"
/>
<title>{{ .Title }}</title>
<meta name="description" content="{{ .Site.Params.Description }}" />
2024-07-02 22:03:13 +00:00
<meta name="keywords" content="{{ .Keywords }}" />
2024-07-04 05:15:26 +00:00
<link rel="icon" type="image/png" sizes="32x32" href="/img/revuo-icon_1.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon_1.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32_1.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16_1.png" />
2024-07-02 22:03:13 +00:00
<meta name="application-name" content="{{ .Site.Title }}" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#193e4c" />
<meta name="apple-mobile-web-app-title" content="{{ .Site.Title }}" />
<meta name="apple-mobile-web-app-status-bar-style" content="#193e4c" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.jpg{{ end }}" />
<meta name="twitter:description" content="{{ .Site.Params.Description }}" />
2024-07-02 22:03:13 +00:00
<meta property="og:site_name" content="{{ .Site.Title }}" />
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:image" content="{{ if (eq .Section "weekly") }}{{ .Permalink }}/cover.png{{ else }}{{ .Site.BaseURL }}/img/revuo-monero.jpg{{ end }}" />
<meta property="og:description" content="{{ .Site.Params.Description }}" />
2024-07-02 22:03:13 +00:00
2024-07-04 05:15:26 +00:00
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}
2024-07-02 22:03:13 +00:00
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Site.BaseURL }}"
},
"articleSection" : "{{ .Section }}",
"name" : "{{ .Title }}",
"headline" : "{{ .Title }}",
// "description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"description" : "{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}"
"inLanguage" : "{{ .Lang }}",
2024-07-04 05:16:31 +00:00
"author" : "{{ .Site.Params.Author.name }}",
"creator" : "{{ .Site.Params.Author.name }}",
"publisher": "{{ .Site.Params.Author.name }}",
"accountablePerson" : "{{ .Site.Params.Author.name }}",
"copyrightHolder" : "{{ .Site.Params.Author.name }}",
2024-07-02 22:03:13 +00:00
"copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date | safeHTML }}",
"dateModified" : "{{ .Date | safeHTML }}",
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"Blog" ]
}
</script>
<!-- CSS -->
{{- with resources.Get "css/main.scss" }}
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
{{ with . | toCSS $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else }}
{{ with . | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{ end }}
{{- end }}
<!-- JS -->
{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
<script src="{{ .RelPermalink }}"></script>
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}
<style>
.switch {
position: relative;
display: inline-block;
width: 56px;
height: 30px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #363636;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 4px;
bottom: 4px;
background-color: white;
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider {
background-color: #d56f2a;
}
input:focus + .slider {
box-shadow: 0 0 1px #d56f2a;
}
input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
table {
margin-top: 34px;
}
td {
height: 50px;
vertical-align: middle;
}
</style>