init: hugo site with mytheme
This commit is contained in:
31
themes/mytheme/layouts/_default/baseof.html
Normal file
31
themes/mytheme/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ "css/main.css" | relURL }}">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<div class="header-inner">
|
||||
<a href="/" class="site-title">{{ .Site.Title }}</a>
|
||||
<nav class="site-nav">
|
||||
<a href="/">首页</a>
|
||||
<a href="/posts/">归档</a>
|
||||
<a href="/categories/">分类</a>
|
||||
<a href="/tags/">标签</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
<main class="main-content">{{ block "main" . }}{{ end }}</main>
|
||||
<footer class="site-footer">
|
||||
<div class="footer-inner">
|
||||
<p>© {{ now.Year }} {{ .Site.Title }}</p>
|
||||
{{ with .Site.Params.beian }}<p><a href="https://beian.miit.gov.cn" target="_blank">{{ . }}</a></p>{{ end }}
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user