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. 6
      layout/page.pug
  4. 2
      layout/post.pug

@ -1,54 +1,6 @@
extends includes/layout.pug extends includes/layout.pug
block content block content
- var categoriesList = list_categories({ show_count: false }) .index-content
- var tagsList = list_tags({ show_count: false }) include includes/_partials/left_declaration.pug
- var archivesList = list_archives({ show_count: false }) include includes/_partials/post_list/post_list.pug
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()

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

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

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