add blog
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "head-blog.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
@ -10,11 +10,7 @@
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<!--
|
||||
{{ $s := path.Dir (.Permalink | relURL) }}
|
||||
{{ $o := index (split $s "/") 1 }}
|
||||
<div class="pager"><a href="{{ printf "/%s" $o }}">{{ $o }}</a></div>
|
||||
-->
|
||||
{{ partial "comment.html" . }}
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
|
@ -1,8 +1,8 @@
|
||||
{{ partial "head.html" . }}
|
||||
<link rel="stylesheet" href="/css/img.css" />
|
||||
{{ partial "head-blog.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
<div class="content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ with .Resources.Match "book_*.png" }}
|
||||
{{ range $index, $val := . }}
|
||||
<p><a href="https://syui.booth.pm/items/4938622"><img src="{{ .RelPermalink }}"></a></p>
|
||||
|
@ -1,11 +1,11 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "head-blog.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ .Content }}
|
||||
|
||||
<hr />
|
||||
<article>
|
||||
<div class="content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ with .Resources.Match "*.webp" }}
|
||||
<div class="top-card">
|
||||
<p>
|
||||
|
24
layouts/item/single.html
Normal file
24
layouts/item/single.html
Normal file
@ -0,0 +1,24 @@
|
||||
{{ partial "head-blog.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<article>
|
||||
<div class="content">
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{ with .Resources.Match "*.jpg" }}
|
||||
<div class="top-item">
|
||||
<p>
|
||||
{{ range . }}
|
||||
<img src="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
6
layouts/partials/comment.html
Normal file
6
layouts/partials/comment.html
Normal file
@ -0,0 +1,6 @@
|
||||
<link href="https://syui.ai/js/comment/app.js" rel="preload" as="script">
|
||||
<link href="https://syui.ai/js/comment/chunk-vendors.js" rel="preload" as="script">
|
||||
<div id="comment"></div>
|
||||
<script async src="https://embed.bsky.app/static/embed.js" charset="utf-8"></script>
|
||||
<script src="https://syui.ai/js/comment/chunk-vendors.js"></script>
|
||||
<script src="https://syui.ai/js/comment/app.js"></script>
|
43
layouts/partials/head-blog.html
Normal file
43
layouts/partials/head-blog.html
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ .Title }}</title>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="author" content="{{ .Site.Author.name }}" />
|
||||
<meta name="copyright" content="© {{ .Site.Author.name }}" />
|
||||
<meta name="description" content="ai" />
|
||||
<meta name="keywords" content="ai" />
|
||||
<meta name="robots" content="all" />
|
||||
<meta name="googlebot" content="all" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta property="og:locale" content="ja_JP" />
|
||||
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}© syui{{ end }}" />
|
||||
<meta property="og:image" content="{{ .Site.BaseURL }}/og.png" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:site_name" content="{{ .Title }}" />
|
||||
<link rel="icon" href="/icon/ai.png" />
|
||||
<link rel="shortcut icon" href="/icon/ai.png" />
|
||||
<link rel="apple-touch-icon" href="/icon/apple-touch-icon.png" />
|
||||
<link rel="stylesheet" href="/css/style.css" />
|
||||
<link rel="stylesheet" href="/css/blog.css" />
|
||||
<link rel="stylesheet" href="/css/svg.css" />
|
||||
<link rel="stylesheet" href="/pkg/icomoon/icomoon.css" />
|
||||
<link rel="stylesheet" href="/pkg/font-awesome/css/all.min.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{{ .Title }}",
|
||||
"url": "{{ .Site.BaseURL }}"
|
||||
}
|
||||
</script>
|
||||
<script src="/js/index.js"></script>
|
||||
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
</head>
|
@ -14,17 +14,15 @@
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{ .Title }}" />
|
||||
<meta property="og:locale" content="ja_JP" />
|
||||
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}ai{{ end }}" />
|
||||
<meta property="og:image" content="{{ .Site.BaseURL }}/icon/ai.png" />
|
||||
<meta property="og:url" content="{{ .Site.BaseURL }}" />
|
||||
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}© syui{{ end }}" />
|
||||
<meta property="og:image" content="{{ .Site.BaseURL }}/og.png" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:site_name" content="{{ .Title }}" />
|
||||
<link rel="icon" href="/icon/ai.png" />
|
||||
<link rel="shortcut icon" href="/icon/ai.png" />
|
||||
<link rel="apple-touch-icon" href="/icon/apple-touch-icon.png" />
|
||||
<link rel="stylesheet" href="/css/style.css" />
|
||||
<link rel="stylesheet" href="/css/svg.css" />
|
||||
<link rel="stylesheet" href="/pkg/icomoon/icomoon.css" />
|
||||
<link rel="stylesheet" href="/pkg/font-awesome/css/all.min.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
@ -39,4 +37,6 @@
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
<link rel="stylesheet" href="https://syui.ai/bower_components/icomoon/style.css" />
|
||||
<link rel="stylesheet" href="https://syui.ai/bower_components/font-awesome/css/all.min.css" />
|
||||
</head>
|
||||
|
@ -10,20 +10,23 @@
|
||||
<!--
|
||||
{{ partial "particles.html" . }}
|
||||
-->
|
||||
|
||||
<div class="logo">
|
||||
{{ partial "svg.html" . }}
|
||||
{{ if eq $o "" }}
|
||||
{{ partial "term.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ if eq $o ""}}
|
||||
{{ if eq $o "" }}
|
||||
|
||||
<div class="hotkeys-docs">
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>ctrl</code> + <code>enter</code></td>
|
||||
<td class="bg"><code>ctrl</code> + <code>enter</code></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -45,13 +48,7 @@
|
||||
<a class="menu-link-left-black" href="https://manga.syui.ai"><span class="icon-book"></span></a>
|
||||
<a class="menu-link-left-black" href="https://vrm.syui.ai"><span class="icon-game"></span></a>
|
||||
<a class="menu-link-left-black" href="https://term.syui.ai"><span class="icon-aiterm"></span></a>
|
||||
<a class="menu-link-left-black" href="https://git.syui.ai/ai"><span class="icon-git_bg"></span></a>
|
||||
|
||||
<!--
|
||||
<a class="menu-link-left-black" href="https://git.syui.ai/ai/ue"><i class="fa-solid fa-gamepad"></i></a>
|
||||
<a class="menu-link-left-black" href="/term"><i class="fa-solid fa-terminal"></i></a>
|
||||
<a class="menu-link-left-black" href="https://web.syu.is/profile/ai.syu.is"><i class="fa-brands fa-bluesky"></i></a>
|
||||
-->
|
||||
<a class="menu-link-left-black" href="https://git.syui.ai/ai"><span class="icon-git"></span></a>
|
||||
|
||||
</span>
|
||||
{{ end }}
|
||||
|
@ -3,10 +3,11 @@
|
||||
<div class="navbar-nav">
|
||||
<span class="navbar-title-text"><a href="/"><span class="icon-ai"></span></a></span>
|
||||
<div class="navbar-nav-left">
|
||||
<a class="navbar-brand" href="/blog">ブログ</a>
|
||||
<a class="navbar-brand" href="/chara">キャラクター</a>
|
||||
<a class="navbar-brand" href="/story">ストーリー</a>
|
||||
<a class="navbar-brand" href="/card">カード</a>
|
||||
<a class="navbar-brand" href="/blog">ブログ</a>
|
||||
<a class="navbar-brand" href="/item">アイテム</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-nav-right">
|
||||
|
Reference in New Issue
Block a user