Hugo site now
This commit is contained in:
parent
aceb297d4f
commit
995092af42
34 changed files with 1309 additions and 85 deletions
30
src/layouts/_default/baseof.html
Normal file
30
src/layouts/_default/baseof.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ .Title }}</title>
|
||||
{{ with .Description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
<link rel="icon" href="{{ "favicon.ico" | relURL }}">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
|
||||
|
||||
<link href="{{ "assets/css/site.css" | relURL }}" rel="stylesheet">
|
||||
|
||||
<meta property="og:title" content="{{ .Title }}">
|
||||
{{ with .Description }}<meta property="og:description" content="{{ . }}">{{ end }}
|
||||
<meta property="og:type" content="website">
|
||||
</head>
|
||||
<body>
|
||||
{{ partial "nav.html" . }}
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "footer.html" . }}
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="{{ "assets/js/site.js" | relURL }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
3
src/layouts/_default/single.html
Normal file
3
src/layouts/_default/single.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content | safeHTML }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue