mirror of
https://github.com/KivotosRailway/website.git
synced 2026-11-03 19:07:56 +09:00
Add solitude
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
- let year
|
||||
each post in page.posts.find({ parent: { $exists: false } }).data
|
||||
if(year !== post.date.year())
|
||||
- year = post.date.year()
|
||||
.article-sort-item.year #{year}
|
||||
.article-sort-item
|
||||
a.article-sort-item-img(href=url_for(post.path) title=post.title)
|
||||
img(src=post.cover alt=post.title)
|
||||
.article-sort-item-info
|
||||
a.article-sort-item-title(href=url_for(post.path) title=post.title onclick="window.event.cancelBubble=true;") #{post.title}
|
||||
.article-sort-item-tags
|
||||
each tags in post.tags.data
|
||||
a.article-meta__tags(href=url_for(tags.path) onclick="window.event.cancelBubble=true;")
|
||||
span.tags-punctuation #{tags.name}
|
||||
@@ -0,0 +1,8 @@
|
||||
nav#pagination
|
||||
div.pagination
|
||||
- var options = {mid_size: 1,escape: false,next_text: `<div class="pagination_tips_next">${_p("pagination.next")}</div> <i class="solitude st-arrow-right-bold"></i>`,prev_text: `<i class="solitude st-arrow-left-bold"></i> <div class="pagination_tips_prev">${_p("pagination.prev")}</div>`}
|
||||
!=paginator(options)
|
||||
div.toPageGroup
|
||||
input#toPageText(oninput="value=value.replace(/[^0-9]/g,'')" maxlength="3" title=_p('pagination.to') onkeyup="if (this.value === '0') this.value = ''")
|
||||
a#toPageButton(onclick="sco.toPage()")
|
||||
i.solitude.st-show-right-line
|
||||
Reference in New Issue
Block a user