
<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") }}
					<li class="top">
						<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) }}

					{{ 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>
					{{ else }}
					<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>
					{{ end }}
					{{ end }}
					<li class="blog-menu"><button onclick="blog_list_open();"><i class="fa-solid fa-angle-down"></i></button></li>
					{{ end }}

					{{ if or (eq $t "chara") (eq $t "story") (eq $t "card") (eq $t "vrm") }}

					<li class="commit">
						<a href="#header"><span class="icon-moji_a"></span></a>
					</li>

					<li class="top">
						<a href="{{.Permalink}}">{{.Title}}</a>
					</li>
					{{ if or (eq $t "card") }}
					{{ .Content }}
					{{ else }}
					{{ .Summary }}
					{{ end }}
					{{ end }}
					
					{{ end }}

					<li class="commit">
						<a href="#header"><span class="icon-moji_a"></span></a>
					</li>

			</ul>
		</div>
	</div>
</div>

{{ partial "contribution.html" . }}
{{ partial "link.html" . }}

</div>

