第三次作业题目和答案(未公布)
This commit is contained in:
commit
b01ba87404
102 changed files with 8693 additions and 0 deletions
8
themes/landscape/layout/_widget/archive.ejs
Normal file
8
themes/landscape/layout/_widget/archive.ejs
Normal file
|
@ -0,0 +1,8 @@
|
|||
<% if (site.posts.length){ %>
|
||||
<div class="widget-wrap">
|
||||
<h3 class="widget-title"><%= __('archive_a') %></h3>
|
||||
<div class="widget">
|
||||
<%- list_archives({show_count: theme.show_count, type: theme.archive_type}) %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
8
themes/landscape/layout/_widget/category.ejs
Normal file
8
themes/landscape/layout/_widget/category.ejs
Normal file
|
@ -0,0 +1,8 @@
|
|||
<% if (site.categories.length){ %>
|
||||
<div class="widget-wrap">
|
||||
<h3 class="widget-title"><%= __('categories') %></h3>
|
||||
<div class="widget">
|
||||
<%- list_categories({show_count: theme.show_count}) %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
14
themes/landscape/layout/_widget/recent_posts.ejs
Normal file
14
themes/landscape/layout/_widget/recent_posts.ejs
Normal file
|
@ -0,0 +1,14 @@
|
|||
<% if (site.posts.length){ %>
|
||||
<div class="widget-wrap">
|
||||
<h3 class="widget-title"><%= __('recent_posts') %></h3>
|
||||
<div class="widget">
|
||||
<ul>
|
||||
<% site.posts.sort('date', -1).limit(5).each(function(post){ %>
|
||||
<li>
|
||||
<a href="<%- url_for(post.path) %>"><%= post.title || '(no title)' %></a>
|
||||
</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
8
themes/landscape/layout/_widget/tag.ejs
Normal file
8
themes/landscape/layout/_widget/tag.ejs
Normal file
|
@ -0,0 +1,8 @@
|
|||
<% if (site.tags.length){ %>
|
||||
<div class="widget-wrap">
|
||||
<h3 class="widget-title"><%= __('tags') %></h3>
|
||||
<div class="widget">
|
||||
<%- list_tags({show_count: theme.show_count}) %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
8
themes/landscape/layout/_widget/tagcloud.ejs
Normal file
8
themes/landscape/layout/_widget/tagcloud.ejs
Normal file
|
@ -0,0 +1,8 @@
|
|||
<% if (site.tags.length){ %>
|
||||
<div class="widget-wrap">
|
||||
<h3 class="widget-title"><%= __('tagcloud') %></h3>
|
||||
<div class="widget tagcloud">
|
||||
<%- tagcloud() %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
Loading…
Add table
Add a link
Reference in a new issue