update
This commit is contained in:
67
layouts/404.html
Normal file
67
layouts/404.html
Normal file
@ -0,0 +1,67 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>Page not found · {{ .Title }}</title>
|
||||
<style type="text/css" media="screen">
|
||||
body {
|
||||
background-color: #f1f1f1;
|
||||
margin: 0;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.container { margin: 50px auto 40px auto; width: 600px; text-align: center; }
|
||||
|
||||
a { color: #990000; text-decoration: none;}
|
||||
|
||||
a:hover { color: #4183c4;}
|
||||
|
||||
h1 { width: 800px; position:relative; left: -100px; letter-spacing: -1px; line-height: 60px; font-size: 60px; font-weight: 100; margin: 0px 0 50px 0; text-shadow: 0 1px 0 #fff; }
|
||||
p { color: rgba(0, 0, 0, 0.5); margin: 20px 0; line-height: 1.6; }
|
||||
|
||||
ul { list-style: none; margin: 25px 0; padding: 0; }
|
||||
li { display: table-cell; font-weight: bold; width: 1%; }
|
||||
|
||||
.logo { display: inline-block; margin-top: 35px; }
|
||||
.logo-img-2x { display: none; }
|
||||
@media
|
||||
only screen and (-webkit-min-device-pixel-ratio: 2),
|
||||
only screen and ( min--moz-device-pixel-ratio: 2),
|
||||
only screen and ( -o-min-device-pixel-ratio: 2/1),
|
||||
only screen and ( min-device-pixel-ratio: 2),
|
||||
only screen and ( min-resolution: 192dpi),
|
||||
only screen and ( min-resolution: 2dppx) {
|
||||
.logo-img-1x { display: none; }
|
||||
.logo-img-2x { display: inline-block; }
|
||||
}
|
||||
|
||||
#suggestions {
|
||||
margin: 35px;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
span.icon-phoenix-world{
|
||||
font-size: 50px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<link rel="stylesheet" href="/bower_components/icomoon/css/icomoon.css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<h1>404</h1>
|
||||
|
||||
<div id="suggestions">
|
||||
|
||||
</div>
|
||||
|
||||
<a href="/">
|
||||
<span class="icon-phoenix-world"></span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
7
layouts/_default/index.json
Normal file
7
layouts/_default/index.json
Normal file
@ -0,0 +1,7 @@
|
||||
{{ $dateFormat := default "Mon Jan 2, 2006" (index .Site.Params "date_format") }}
|
||||
{{ $utcFormat := "2006-01-02T15:04:05Z07:00" }}
|
||||
{{- $.Scratch.Add "index" slice -}}
|
||||
{{- range .Site.RegularPages -}}
|
||||
{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "description" .Description "categories" .Params.categories "contents" .Plain "href" .Permalink "utc_time" (.Date.Format $utcFormat) "formated_time" (.Date.Format $dateFormat)) -}}
|
||||
{{- end -}}
|
||||
{{- $.Scratch.Get "index" | jsonify -}}
|
20
layouts/_default/list.html
Normal file
20
layouts/_default/list.html
Normal file
@ -0,0 +1,20 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
<div id="container">
|
||||
<div class="outer">
|
||||
<div id="blog-archives" class="category">
|
||||
<ul class="cp_list">
|
||||
{{ range .Data.Pages.Reverse }}
|
||||
<li>
|
||||
<a href="{{.Permalink}}">{{.Title}}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer" . }}
|
||||
</body>
|
||||
</html>
|
19
layouts/_default/single.html
Normal file
19
layouts/_default/single.html
Normal file
@ -0,0 +1,19 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ $s := path.Dir (.Permalink | relURL) }}
|
||||
{{ $t := index (split $s "/") 2 }}
|
||||
{{ $o := index (split $s "/") 1 }}
|
||||
|
||||
{{ if eq $t "img" }}
|
||||
{{ partial "img.html" . }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
16
layouts/book/single.html
Normal file
16
layouts/book/single.html
Normal file
@ -0,0 +1,16 @@
|
||||
{{ partial "head.html" . }}
|
||||
<link rel="stylesheet" href="/css/img.css" />
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
<div class="content">
|
||||
{{ with .Resources.Match "book_*.png" }}
|
||||
{{ range $index, $val := . }}
|
||||
<p><a href="https://syui.booth.pm/items/4938622"><img src="{{ .RelPermalink }}"></a></p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
24
layouts/card/single.html
Normal file
24
layouts/card/single.html
Normal file
@ -0,0 +1,24 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ .Content }}
|
||||
|
||||
<hr />
|
||||
<article>
|
||||
<div class="content">
|
||||
{{ with .Resources.Match "*.webp" }}
|
||||
<div class="top-card">
|
||||
<p>
|
||||
{{ range sort . }}
|
||||
<img src="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
8
layouts/index.html
Normal file
8
layouts/index.html
Normal file
@ -0,0 +1,8 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
{{ partial "content.html" . }}
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
34
layouts/partials/content.html
Normal file
34
layouts/partials/content.html
Normal file
@ -0,0 +1,34 @@
|
||||
<div id="container">
|
||||
<div class="outer">
|
||||
<div id="blog-archives" class="category">
|
||||
<ul class="cp_list">
|
||||
{{ range .Data.Pages }}
|
||||
{{ $t := index (split .Permalink "/") 3 }}
|
||||
|
||||
{{ if or (eq $t "blog") }}
|
||||
{{ range $index,$value := first 7 (where $.Site.RegularPages.ByDate.Reverse "Section" "blog") }}
|
||||
<li class="blog-list">
|
||||
<a href="{{.Permalink}}">{{.Title}}</a> <span class="blog-date">{{ .Date.Local.Format "2006-01-02" }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if or (eq $t "chara") (eq $t "story") (eq $t "card") (eq $t "vrm") }}
|
||||
|
||||
<li class="top">
|
||||
<a href="{{.Permalink}}">{{.Title}}</a>
|
||||
</li>
|
||||
|
||||
{{ if or (eq $t "card") }}
|
||||
{{ .Content }}
|
||||
{{ else }}
|
||||
{{ .Summary }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
1
layouts/partials/footer.html
Normal file
1
layouts/partials/footer.html
Normal file
@ -0,0 +1 @@
|
||||
<footer id="footer">© <a href="https://syui.ai">syui</a></footer>
|
39
layouts/partials/head.html
Normal file
39
layouts/partials/head.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!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 }}ai{{ end }}" />
|
||||
<meta property="og:image" content="{{ .Site.BaseURL }}/icon/ai.png" />
|
||||
<meta property="og:url" content="{{ .Site.BaseURL }}" />
|
||||
<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="/bower_components/icomoon/css/icomoon.css" />
|
||||
<link rel="stylesheet" href="/css/style.css" />
|
||||
<link rel="stylesheet" href="/css/svg.css" />
|
||||
<link rel="stylesheet" href="/bower_components/font-awesome/css/all.min.css" />
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "http://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": "{{ .Title }}",
|
||||
"url": "{{ .Site.BaseURL }}"
|
||||
}
|
||||
</script>
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
</head>
|
34
layouts/partials/header.html
Normal file
34
layouts/partials/header.html
Normal file
@ -0,0 +1,34 @@
|
||||
<body>
|
||||
<div class="containerx">
|
||||
{{ $s := path.Dir (.Permalink | relURL) }}
|
||||
{{ $t := index (split $s "/") 2 }}
|
||||
{{ $o := index (split $s "/") 1 }}
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
{{ partial "svg.html" . }}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ if eq $o ""}}
|
||||
|
||||
<span class="menu-right-top">
|
||||
<!--
|
||||
<a class="menu-link-left" href="/bitcoin"><i class="fa-brands fa-bitcoin"></i></a>
|
||||
-->
|
||||
<!--
|
||||
<div id=app></div>
|
||||
<script src=/bitcoin/chunk-vendors.js></script>
|
||||
<script src=/bitcoin/app.js></script>
|
||||
-->
|
||||
|
||||
<a class="menu-link-left-black" href="https://card.syui.ai/ai"><i class="fa-solid fa-copy"></i></a>
|
||||
<a class="menu-link-left-black" href="https://manga.syui.ai"><i class="fa-regular fa-comment-dots"></i></a>
|
||||
<a class="menu-link-left-black" href="https://vrm.syui.ai"><i class="fa-solid fa-cube"></i></a>
|
||||
<a class="menu-link-left-black" href="https://git.syui.ai/ai"><i class="fa-brands fa-git-alt"></i></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>
|
||||
-->
|
||||
</span>
|
||||
{{ end }}
|
15
layouts/partials/navbar.html
Normal file
15
layouts/partials/navbar.html
Normal file
@ -0,0 +1,15 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||||
<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="/story">ストーリー</a>
|
||||
<a class="navbar-brand" href="/chara">キャラクター</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-nav-right">
|
||||
<a class="menu-link-left" href="https://syui.fanbox.cc/shop" target="_blank"><i class="fa-solid fa-bag-shopping"></i></a>
|
||||
<a class="menu-link-left" href="https://bsky.app/profile/yui.syui.ai" target="_blank"><i class="fa-brands fa-bluesky"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
18
layouts/partials/pagination.html
Normal file
18
layouts/partials/pagination.html
Normal file
@ -0,0 +1,18 @@
|
||||
{{ $pages := .Pages }} {{ if .IsHome }} {{ $pages = .Site.RegularPages }} {{ end }} {{ $paginator := .Paginate $pages }} {{ range $paginator.Pages }} {{ .Render "summary"}} {{ end }}
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
{{ $prev := "fa fa-chevron-left"}}
|
||||
{{ $next := "fa fa-chevron-right"}}
|
||||
<nav class="pagination" role="pagination">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a href="{{ .Paginator.Prev.URL }}"><i class="{{ $prev }}"></i></a>
|
||||
{{ else }}
|
||||
<i class="{{ $prev }}"></i>
|
||||
{{ end }}
|
||||
<span> {{ .Paginator.PageNumber }} / {{ .Paginator.TotalPages }} </span>
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}"><i class="{{ $next }}"></i></a>
|
||||
{{ else }}
|
||||
<i class="{{ $next }}"></i>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
18
layouts/partials/prev_next_post.html
Normal file
18
layouts/partials/prev_next_post.html
Normal file
@ -0,0 +1,18 @@
|
||||
{{ $prev := "fa fa-chevron-left"}}
|
||||
{{ $next := "fa fa-chevron-right"}}
|
||||
{{ if or .PrevInSection .NextInSection }}
|
||||
<nav id="article-nav">
|
||||
<div class="previnsection">
|
||||
{{ if .PrevInSection }}
|
||||
<p><i class="fa-solid fa-circle-chevron-left"></i> <a href="{{ .PrevInSection.Permalink }}" id="article-nav-older" class="article-nav-link-wrap">
|
||||
{{ .PrevInSection.Title }}
|
||||
</a></p>
|
||||
{{ end }}
|
||||
{{ if .NextInSection }}
|
||||
<p><i class="fa-solid fa-circle-chevron-right"></i> <a href="{{ .NextInSection.Permalink }}" id="article-nav-newer" class="article-nav-link-wrap">
|
||||
{{ .NextInSection.Title }}
|
||||
</a></p>
|
||||
{{ end }}
|
||||
</div>
|
||||
</nav>
|
||||
{{ end }}
|
3
layouts/partials/search-css.html
Normal file
3
layouts/partials/search-css.html
Normal file
@ -0,0 +1,3 @@
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.22/vue.min.js'></script>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js'></script>
|
||||
<script src='https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.5/lunr.min.js'></script><script src="/search/main.js"></script>
|
7
layouts/partials/svg.html
Normal file
7
layouts/partials/svg.html
Normal file
@ -0,0 +1,7 @@
|
||||
<script type="module" crossorigin src="/svg/index.js"></script>
|
||||
<link rel="stylesheet" href="/svg/index.css">
|
||||
<div id="ai-star-stage2" class="stage">
|
||||
<div class="center">
|
||||
<a href="/"><div class="star"></div></a>
|
||||
</div>
|
||||
</div>
|
8
layouts/partials/vrm.html
Normal file
8
layouts/partials/vrm.html
Normal file
@ -0,0 +1,8 @@
|
||||
<div id="container">
|
||||
<div class="vrm_button">
|
||||
<button><i class="fa-solid fa-cube" id="vrm_button" style="color: #000"></i></button>
|
||||
<div class="vrm" id="vrm_iframe" style="display: none">
|
||||
<iframe src="https://vrm.syui.ai" allowfullscreen frameborder="0" style="border: none"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user