lensfrex 1 year ago
parent 6ebbf95df6
commit 1c759e4cf7
Signed by: lensfrex
GPG Key ID: 947ADABD8533C476
  1. 54
      layout/archive.pug
  2. 3
      layout/includes/layout.pug
  3. 4
      layout/page.pug
  4. 2
      layout/post.pug

@ -1,54 +1,6 @@
extends includes/layout.pug
block content
- var categoriesList = list_categories({ show_count: false })
- var tagsList = list_tags({ show_count: false })
- var archivesList = list_archives({ show_count: false })
div.archive
if !is_year()
h1 Archives
if theme.atom
p The feed is available via 
a(href=theme.atom) atom
span .
br
aside
h2 Categories
if categoriesList
!= categoriesList
else
p None.
br
aside
h2 Tags
if tagsList
!= tagsList
else
p None.
br
aside
h2 Archives
if archivesList
!= archivesList
else
p None.
br
else
h1= page.month + '/' + page.year
- page.posts.each(function(article){
.archive-list-item
a(href=url_for(article.path))= article.title
time(datetime=date_xml(article.date))= date(article.date)
- })
#paginator!= paginator()
.index-content
include includes/_partials/left_declaration.pug
include includes/_partials/post_list/post_list.pug

@ -37,6 +37,9 @@ html(lang=config.language)
block content
.right-content
+information_card({name: '全站总字数', value: totalcount(site)})
//- if is_page() || is_post()
//- .toc
//- != toc(page.content)
footer#footer.footer
include ./_partials/footer.pug

@ -9,6 +9,7 @@ block content
.article-container
.article-header
- const has_cover = (page.cover !== undefined && page.cover !== null && page.cover != '')
a.cover-container(data-fancybox data-src=page.cover)
img.post-cover(src=has_cover ? page.cover : "/img/no_image.svg")
.article-info
@ -32,7 +33,7 @@ block content
span.author #{author}
hr
.main-content
#main-content.main-content
!= page.content
hr
@ -47,4 +48,3 @@ block content
pageview: true,
path: document.location.pathname,
});

@ -48,5 +48,3 @@ block content
pageview: true,
path: document.location.pathname,
});
Loading…
Cancel
Save