1
0
web/layouts/partials/content.html

61 lines
1.9 KiB
HTML
Raw Normal View History

2024-04-07 17:50:00 +00:00
2024-04-05 08:44:02 +00:00
<div id="container">
2024-04-07 17:50:00 +00:00
2024-04-05 08:44:02 +00:00
<div class="outer">
<div id="blog-archives" class="category">
<ul class="cp_list">
{{ range .Data.Pages }}
{{ $t := index (split .Permalink "/") 3 }}
2024-05-02 13:21:47 +00:00
{{ if or (eq $t "blog") }}
2024-04-05 08:44:02 +00:00
<li class="top">
2024-04-27 03:19:58 +00:00
<a href="{{.Permalink}}">{{ $t }}</a> <a class="li-link-left" href="{{ .Site.BaseURL }}/{{ $t }}/index.xml"><i class="fa-solid fa-rss"></i></a>
2024-04-05 08:44:02 +00:00
</li>
2024-04-27 03:19:58 +00:00
{{ range $index,$value := (where $.Site.RegularPages.ByDate "Section" $t) }}
2024-04-05 08:46:22 +00:00
2024-04-07 17:50:00 +00:00
{{ 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 }}
</li>
2024-04-05 08:46:22 +00:00
{{ else }}
2024-04-07 17:50:00 +00:00
<li class="blog-list-all" style="display:none;"> <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 }}
</li>
2024-04-05 08:44:02 +00:00
{{ end }}
2024-04-05 08:46:22 +00:00
{{ end }}
<li class="blog-menu"><button onclick="blog_list_open();"><i class="fa-solid fa-angle-down"></i></button></li>
2024-04-05 08:44:02 +00:00
{{ end }}
{{ if or (eq $t "chara") (eq $t "story") (eq $t "card") (eq $t "vrm") }}
2024-04-05 08:46:22 +00:00
<li class="commit">
2024-04-07 17:50:00 +00:00
<a href="#header"><span class="icon-moji_a"></span></a>
2024-04-05 08:46:22 +00:00
</li>
2024-04-05 08:44:02 +00:00
<li class="top">
<a href="{{.Permalink}}">{{.Title}}</a>
</li>
{{ if or (eq $t "card") }}
{{ .Content }}
{{ else }}
{{ .Summary }}
{{ end }}
{{ end }}
2024-04-27 03:19:58 +00:00
2024-04-05 08:44:02 +00:00
{{ end }}
2024-04-05 08:46:22 +00:00
<li class="commit">
2024-04-07 17:50:00 +00:00
<a href="#header"><span class="icon-moji_a"></span></a>
2024-04-05 08:46:22 +00:00
</li>
2024-04-05 08:44:02 +00:00
</ul>
</div>
</div>
</div>
2024-04-07 17:50:00 +00:00
2024-04-27 03:19:58 +00:00
{{ partial "contribution.html" . }}
{{ partial "link.html" . }}
2024-04-07 17:50:00 +00:00
2024-04-05 08:44:02 +00:00
</div>
2024-04-07 17:50:00 +00:00