mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Remove Emacs artifacts lol
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
{{- extends "layout/default" }}
|
||||
{{- import "blocks/underlinenav" }}
|
||||
{{- block body() }}
|
||||
<!-- Prefetch links -->
|
||||
<link rel="prefetch" href="/discovery/novel">
|
||||
|
||||
<div class="row justify-content-center g-4">
|
||||
<h1 class="mb-0"><i class="bi bi-compass me-2"></i>Discovery</h1>
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<div class="d-flex flex-column flex-md-row align-items-center justify-content-center justify-content-md-between mx-auto">
|
||||
<div class="mb-3 mb-md-0">
|
||||
{{- Type := "discovery" }}
|
||||
{{- path := slice("discovery", "/discovery/novel", "/discovery/users") }}
|
||||
{{- name := slice("Artworks", "Novels", "Users")}}
|
||||
{{- yield UnderlineNav(baseURL="", paths=path, names=name, activeState=Type)}}
|
||||
<div class="d-none">
|
||||
<p>Artworks</p>
|
||||
<p>Novels</p>
|
||||
<p>Users</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TODO: is it actually set to "safe" by default? -->
|
||||
{{- Mode := isset(Queries.mode) ? Queries.mode : "safe" }}
|
||||
{{- url := replaceQuery(.Queries, "mode", "") }}
|
||||
{{- path := slice("all", "safe", "r18") }}
|
||||
{{- name := slice("All", "Safe", "R-18")}}
|
||||
{{- yield UnderlineNav(baseURL=url, paths=path, names=name, activeState=Mode)}}
|
||||
<div class="d-none">
|
||||
<p>All</p>
|
||||
<p>Safe</p>
|
||||
<p>R-18</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="border-neutral-800 opacity-100 rounded mt-0 mb-3">
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="row row-cols-2 row-cols-md-4 row-cols-lg-6 g-4">
|
||||
{{- include "fragments/small-tn" .Artworks }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-center">
|
||||
<a href="" class="custom-btn-secondary-flex">Refresh</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{- end }}
|
||||
@@ -1,23 +0,0 @@
|
||||
{{- extends "layout/default" }}
|
||||
{* {{- import "blocks/pagination" }} *}
|
||||
{{- block body() }}
|
||||
<div class="row justify-content-center g-4">
|
||||
<h1 class="mb-0"><i class="bi bi-palette me-2"></i>pixivision</h1>
|
||||
|
||||
<div class="col-12">
|
||||
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
|
||||
{{- range .Data }}
|
||||
{{- include "fragments/pixivisionArticle" . }}
|
||||
{{- end }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
{{- url := "/pixivision?p=" + .Page }}
|
||||
{{- paginationData := createPaginator(url, "#checkpoint", .Page, -1, 1, 5) }}
|
||||
{{- yield pagination(data=paginationData) }}
|
||||
|
||||
<!-- TODO: not done -->
|
||||
|
||||
</div>
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user