1
0
This commit is contained in:
2024-04-27 12:19:58 +09:00
parent 377b84b858
commit 00a043d737
10 changed files with 76 additions and 31 deletions

View File

@ -12,9 +12,9 @@
.container { margin: 50px auto 40px auto; width: 600px; text-align: center; }
a { color: #990000; text-decoration: none;}
a { color: #313131; text-decoration: none;}
a:hover { color: #4183c4;}
a:hover { color: #fff700;}
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; }
@ -40,12 +40,12 @@
color: #ccc;
}
span.icon-phoenix-world{
font-size: 50px;
}
span.icon-ai {
font-size: 50px;
}
</style>
<link rel="stylesheet" href="/bower_components/icomoon/css/icomoon.css" />
<link rel="stylesheet" href="https://syui.ai/bower_components/icomoon/style.css" />
</head>
<body>
@ -54,11 +54,10 @@ span.icon-phoenix-world{
<h1>404</h1>
<div id="suggestions">
</div>
<a href="/">
<span class="icon-phoenix-world"></span>
<span class="icon-ai"></span>
</a>
</div>

View File

@ -1,6 +1,7 @@
{{ partial "head.html" . }}
{{ partial "navbar.html" . }}
{{ partial "header.html" . }}
<div id="container">
<div class="outer">
<div id="blog-archives" class="category">
@ -15,6 +16,7 @@
</div>
</div>
</div>
</div>
{{ partial "footer" . }}
</body>

View File

@ -7,12 +7,12 @@
{{ range .Data.Pages }}
{{ $t := index (split .Permalink "/") 3 }}
{{ if or (eq $t "blog") }}
{{ if or (eq $t "blog") (eq $t "novel") }}
<li class="top">
<a href="{{.Permalink}}">blog</a> <a class="li-link-left" href="{{ .Site.BaseURL }}/blog/index.xml"><i class="fa-solid fa-rss"></i></a>
<a href="{{.Permalink}}">{{ $t }}</a> <a class="li-link-left" href="{{ .Site.BaseURL }}/{{ $t }}/index.xml"><i class="fa-solid fa-rss"></i></a>
</li>
{{ range $index,$value := (where $.Site.RegularPages.ByDate "Section" $t) }}
{{ range $index,$value := (where $.Site.RegularPages.ByDate.Reverse "Section" "blog") }}
{{ if lt $index 3 }}
<li class="blog-list-first" style="display:block;"> <a href="{{.Permalink}}">{{.Title}}</a> <span class="blog-date">{{ .Date.Local.Format "2006-01-02" }}</span>
{{ with .Params.tags }}{{ range . }}<button class="tag"><a href="/tags/{{ . }}/">{{ . }}</a>{{ end }}</button>{{ end }}
@ -23,7 +23,6 @@
</li>
{{ end }}
{{ end }}
<li class="blog-menu"><button onclick="blog_list_open();"><i class="fa-solid fa-angle-down"></i></button></li>
{{ end }}
@ -42,25 +41,20 @@
{{ .Summary }}
{{ end }}
{{ end }}
{{ end }}
<li class="commit">
<a href="#header"><span class="icon-moji_a"></span></a>
<!--
<i class="fa-solid fa-code-branch"></i>
<i class="fa-solid fa-code-commit"></i>
<i class="fa-solid fa-code-merge"></i>
-->
</li>
</ul>
</div>
</div>
</div>
{{ partial "contribution.html" . }}
{{ partial "link.html" . }}
</div>

View File

@ -0,0 +1,32 @@
<script type="text/javascript" src="https://syui.ai/bower_components/d3/d3.min.js"></script>
<script type="text/javascript" src="https://syui.ai/bower_components/cal-heatmap/cal-heatmap.min.js"></script>
<link rel="stylesheet" href="https://syui.ai/bower_components/cal-heatmap/cal-heatmap.css" />
<div id="example-b"></div>
<script type="text/javascript">
var currentTime = new Date();
var year = currentTime.getFullYear()
var cal = new CalHeatMap();
cal.init({
itemSelector: "#example-b",
domain: "month",
data: "https://syui.ai/json/cal.json",
start: new Date(year, 0),
cellSize: 9,
range: 13,
legendColors: ["#fff700", "#817d01"],
previousSelector: "#example-b-PreviousDomain-selector",
nextSelector: "#example-b-NextDomain-selector",
legend: [2, 4, 6, 8],
});
</script>
<style>
div#example-b{
background: #f1f1f1;
margin-right: auto;
margin-left: auto;
}
.cal-heatmap-container {
width: 100%;
}
</style>

View File

@ -33,6 +33,7 @@
</div>
<span class="menu-right-top">
<!--

View File

@ -0,0 +1,6 @@
<div class="sns-link">
<p>
<i class="fa-brands fa-bluesky"></i> <a href="https://bsky.app/profile/yui.syui.ai" target="_blank" class="bluesky-icon">yui.syui.ai</a>
</p>
<p><i class="fab fa-mastodon"></i> <a rel="me" href="https://mstdn.syui.ai/@ai" target="_blank">@ai@syui.ai</a>
</div>