diff options
| -rw-r--r-- | layout/archive.ejs | 44 | ||||
| -rw-r--r-- | scripts/feed.js | 3 | 
2 files changed, 25 insertions, 22 deletions
| diff --git a/layout/archive.ejs b/layout/archive.ejs index a15573f..620feb2 100644 --- a/layout/archive.ejs +++ b/layout/archive.ejs @@ -1,21 +1,25 @@ -<div class="archive"> -    <% let lastyear = 0; let lastmonth = -1; %> -    <aside class="menu"> -        <% site.posts.sort('date', -1).each(function(post) { %> -            <% let year = post.date.year(); let month = post.date.month(); %> -            <% if (lastyear !== year || lastmonth !== month) { %> -                <% if (lastyear !== 0 || lastmonth !== -1){ %>  -                    </ul> -                <% } %> -                <p class="menu-label"><%- date(post.date, "YYYY.MMM"); %></p> -                <ul class="menu-list"> -                <% lastyear = year; lastmonth = month; %> -            <% } %> -            <li> -                <a class="title" href="<%- url_for(post.path) %>"> -                    <%= post.title %> -                </a> -            </li> -        <% }) %> -    </aside> +<div class="columns"> +    <div class="column is-8 is-offset-2"> +        <div class="archive"> +            <% let lastyear = 0; let lastmonth = -1; %> +            <aside class="menu"> +                <% site.posts.sort('date', -1).each(function(post) { %> +                    <% let year = post.date.year(); let month = post.date.month(); %> +                    <% if (lastyear !== year || lastmonth !== month) { %> +                        <% if (lastyear !== 0 || lastmonth !== -1){ %>  +                            </ul> +                        <% } %> +                        <p class="menu-label"><%- date(post.date, "YYYY.MMM"); %></p> +                        <ul class="menu-list"> +                        <% lastyear = year; lastmonth = month; %> +                    <% } %> +                    <li> +                        <a class="title" href="<%- url_for(post.path) %>"> +                            <%= post.title %> +                        </a> +                    </li> +                <% }) %> +            </aside> +        </div> +    </div>  </div>
\ No newline at end of file diff --git a/scripts/feed.js b/scripts/feed.js index 5bf025b..1b1b368 100644 --- a/scripts/feed.js +++ b/scripts/feed.js @@ -32,7 +32,7 @@ hexo.extend.generator.register("feed", (locals) => {      const feed = new podcast({          title: config.title,          description: config.description, -        copyright: theme.copyright, +        copyright: config.title + ' ' + theme.copyright,          language: config.language.slice(0, 2),          siteUrl: config.url,          imageUrl: theme.logo.rss, @@ -76,7 +76,6 @@ hexo.extend.generator.register("feed", (locals) => {              itunesAuthor: post.podcast.authors.join(', '),              itunesExplicit: theme.rss.config.explicit,              itunesSubtitle: post.podcast.subtitle, -            itunesSummary: hstrip(description),              itunesDuration: post.podcast.duration          });      }); | 
