#todolist-box .page-top-card(style='background-image: url(/img/todo.webp);') .content-item-tips 想做清单 span.content-item-title ToDoList .content-bottom .tips 要做的事还有很多,想做的事源源不断 #todolist-main #todolist-left each i in site.data.todolist if i.seat == 'left' .todolist-item h3.todolist-title=i.class_name ul.todolist-ul each item in i.todo_list li.todolist-li if item.completed i.fa-regular.fa-circle-check else i.fa-regular.fa-circle span=item.content #todolist-right each i in site.data.todolist if i.seat == 'right' .todolist-item h3.todolist-title=i.class_name ul.todolist-ul each item in i.todo_list li.todolist-li if item.completed i.fa-regular.fa-circle-check else i.fa-regular.fa-circle span=item.content
修改\layout\page.pug
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
case page.type when 'tags' include includes/page/tags.pug include includes/page/default-page.pug when 'link' include includes/page/flink.pug when 'categories' include includes/page/categories.pug include includes/page/default-page.pug when 'essay' include includes/page/essay.pug + when 'todolist' + include includes/page/todolist.pug default include includes/page/default-page.pug