diff --git a/package/hexo-theme-async/_config.yml b/package/hexo-theme-async/_config.yml index 7921b200..bf484f06 100644 --- a/package/hexo-theme-async/_config.yml +++ b/package/hexo-theme-async/_config.yml @@ -159,6 +159,10 @@ footer: # custom_text: +# archive +archive: + type: more # less more + # Reward (Donate) # If enable true, reward would be displayed in every posts and pages by default. # You can show or hide reward in a specific page throuth `reward: true | false` in Front Matter. diff --git a/package/hexo-theme-async/layout/_partial/page/archive.ejs b/package/hexo-theme-async/layout/_partial/page/archive.ejs index 0cc170cb..0fd4c292 100644 --- a/package/hexo-theme-async/layout/_partial/page/archive.ejs +++ b/package/hexo-theme-async/layout/_partial/page/archive.ejs @@ -42,30 +42,40 @@
-
-
-
+
+ <% if(theme.archive.type === 'less'){ %> +
<%= element.title %>
-
-
    -
  • <%= date(element.date,'MM/DD') %>
  • -
  • <%= date(element.date,'hh:mm') %>
  • - <% if(theme.wordcount.enable && theme.wordcount.count){ %> -
  • <%= wordcount(element.content) %>
  • - <% } %> -
-
-
- <%if(element.excerpt){%> -
- <%- element.excerpt %> + <% } else {%> +
+
+
+ + <%= element.title %> + +
+
+
    +
  • <%= date(element.date,'MM/DD') %>
  • +
  • <%= date(element.date,'hh:mm') %>
  • + <% if(theme.wordcount.enable && theme.wordcount.count){ %> +
  • <%= wordcount(element.content) %>
  • + <% } %> +
+
+
- <%}%> + <%if(element.excerpt){%> +
+ <%- element.excerpt %> +
+ <%}%> + <% } %>
<% }) %> diff --git a/package/hexo-theme-async/source/css/_components/timeline.less b/package/hexo-theme-async/source/css/_components/timeline.less index 89311962..7bcfe3ff 100644 --- a/package/hexo-theme-async/source/css/_components/timeline.less +++ b/package/hexo-theme-async/source/css/_components/timeline.less @@ -92,5 +92,10 @@ margin-bottom: 0; } } + + &.less { + padding : 20px 30px; + margin-bottom: 20px; + } } } \ No newline at end of file