chore: update site
This commit is contained in:
parent
fdbb9aeab0
commit
1170701c6a
3 changed files with 47 additions and 13 deletions
|
|
@ -1,5 +1,41 @@
|
|||
{{ .Scratch.Set "body_class" "landing" }}
|
||||
{{ partial "header.html" . }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Home - Dragon Linux</title>
|
||||
<link rel="stylesheet" href="/css/main.css?{{ slicestr (readFile "static/css/main.css" | md5) 0 8 }}">
|
||||
<link href="https://use.fontawesome.com/releases/v6.7.1/css/all.css" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link id="favicon" rel="icon" href="/img/merge/dragon1.png">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Noto+Sans+JP:wght@300;500;700&family=Noto+Serif+JP:wght@200;500&family=Varela+Round&display=swap" rel="stylesheet">
|
||||
{{ if .OutputFormats.Get "RSS" }}
|
||||
<link href="{{ (.OutputFormats.Get "RSS").RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ if not .IsHome }}{{.Title}} - {{ end }}Dragon Linux" />
|
||||
<link href="{{ (.OutputFormats.Get "RSS").RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ if not .IsHome }}{{.Title}} - {{ end }}Dragon Linux" />
|
||||
{{ end }}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, user-scalable=yes">
|
||||
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta name="twitter:site" content="@DragonLinux" />
|
||||
<meta name="twitter:creator" content="@DragonLinux" />
|
||||
<meta name="twitter:title" content="{{ if not .IsHome }}{{.Title}} - {{ end }}Dragon Linux" />
|
||||
<meta name="twitter:description" content="The most dragonified Linux distribution to exist" />
|
||||
<meta name="twitter:image" content="https://dragon-linux.venith.net/img/merge/dragon1.png" />
|
||||
<meta name="twitter:image:width" content="256">
|
||||
<meta name="twitter:image:height" content="256">
|
||||
|
||||
<meta property="og:image" content="https://dragon-linux.venith.net/img/merge/dragon1.png">
|
||||
<meta property="og:title" content="{{ if not .IsHome }}{{.Title}} - {{ end }}Dragon Linux">
|
||||
<script>
|
||||
var kawaii = (new URLSearchParams(window.location.search)).get("kawaii") ?? localStorage.getItem("kawaii");
|
||||
if (kawaii == "true") {
|
||||
document.documentElement.classList.add("kawaii");
|
||||
localStorage.setItem("kawaii", "true");
|
||||
} else {
|
||||
localStorage.removeItem("kawaii");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<section id="eye-catch">
|
||||
<div>
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -1,22 +1,20 @@
|
|||
<div id="breadcrumbs">
|
||||
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||
</div>
|
||||
|
||||
{{ define "breadcrumbnav" }}
|
||||
{{ if .p1.Parent }}
|
||||
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2) }}
|
||||
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
|
||||
{{ else if not .p1.IsHome }}
|
||||
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2) }}
|
||||
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .p1.IsHome }}
|
||||
<a href="{{ .p1.Permalink }}">
|
||||
<i class="fas fa-home"></i> Home - Dragon Linux
|
||||
</a>
|
||||
<a href="{{ .p1.Permalink }}">
|
||||
<i class="fas fa-home"></i>
|
||||
</a>
|
||||
{{ else }}
|
||||
/
|
||||
<a href="{{ .p1.Permalink }}">
|
||||
{{ .p1.Title }}
|
||||
</a>
|
||||
/
|
||||
<a href="{{ .p1.Permalink }}">
|
||||
{{ .p1.Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Home {{ if not .IsHome }}{{.Title}} - {{ end }}Dragon Linux</title>
|
||||
<title>{{ if not .IsHome }}{{.Title}} - {{ end }}Dragon Linux</title>
|
||||
<link rel="stylesheet" href="/css/main.css?{{ slicestr (readFile "static/css/main.css" | md5) 0 8 }}">
|
||||
<link href="https://use.fontawesome.com/releases/v6.7.1/css/all.css" rel="stylesheet">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue