Skip to content

thianda91/thianda91.github.io

Repository files navigation

X.Da 的博客

修改内容

  1. _includes\header.html增加sub-title显示site.description
<div class="site-sub-title">{{ site.description }}</div>
  1. _sass\components\_header.scss增加样式
& > .site-sub-title {
      padding-left: 20px;
      display: inline-block;
      font-size: map-get($base, font-size-h4-xs);
      line-height: 1.5;
}
  1. _sass\skins\_default.scss中:

$main-color-1修改为绿色:#50cf4d

  1. _sass\common\_variables.scss中:

content-max-width改为1050px

  1. 文章模板_layouts\atticle.html
  • <footer>中的<span> dateModified(page.modify_date)移动到.article__content前。并添加 class :.dateModified

  • .article__footer前面新增:

<hr style="background-color:#50cf4d;height:1px;width:30%;border:none;">
  1. _sass\components\_main.scss
  • 新增.dateModified,其color$main-color-1
  • .full-widthwidth改为95%
  1. 主页摘要的下边框:

_includes\home.html中在</article>后面添加:

<div class="xda__border"></div>
  1. _sass\layout\_home.scss注释掉bottom的相关样式并添加:
& > .xda__border {
    margin-top: 5px;
    height: 3px;
    background: linear-gradient(to right, #00cf4d 0%, #004c83 50%, #00cf4d 100%);
}
  1. footer增加cnzz统计
  2. 修改文章排序按更新时间
修改每一个`_posts/`中的 .md 文件,在 yaml 头中
  将 date 替换成 created_date
  将 modify_date 替换成 date
  没有 created_date/date 的,补充 created_date/date

​ 修改模板:

在`_includes/article-info.html`、 `_includes/article.html`中
  搜索 page.date 酌情替换为 page.created_date
  酌情将多个 page.modify_date 替换为 page.date
#在`_includes/scripts/article-list.html`中
#  搜索 _post.date 替换为 _post.created_date
  1. 修改三方 css (三方访问过慢)
在 `_data/variables.yml` 中
原:
https://use.fontawesome.com/releases/v5.0.13/css/all.css
修改到:
`https://cdn.bootcdn.net/ajax/libs/font-awesome/5.14.0/css/all.css`