Hexo using

21.Chrome打不开远程了.过了一会好了

20.字体设置了,本地好使,远程部署要等一段时间才好使.

19.图片不显示,因为没有后缀

18.更改文本对齐

1
themes/next/source/css/_schemes/Mist/_posts-expanded.styl

17.设置字体 2019-06-25 09:13:38

  1. root//themes/next/source/css/_variables/custom.style

  2. 加!important.否则会被覆盖.

  3. 更改 css,不需要重启服务器,直接刷新就好.

  4. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51

    h1 {
    font-size: 36px !important;
    }
    @media (max-width: 767px) {
    h1 {
    font-size: 24px !important;
    }
    }
    h2 {
    font-size: 32px !important;
    }
    @media (max-width: 767px) {
    h2 {
    font-size: 20px !important;
    }
    }
    h3 {
    font-size: 28px !important;
    }
    @media (max-width: 767px) {
    h3 {
    font-size: 18px !important;
    }
    }
    h4 {
    font-size: 24px !important;
    }
    @media (max-width: 767px) {
    h4 {
    font-size: 16px;
    }
    }
    h5 {
    font-size: 20px;
    }
    @media (max-width: 767px) {
    h5 {
    font-size: 14px !important;
    }
    }
    h6 {
    font-size: 16px !important;
    }
    @media (max-width: 767px) {
    h6 {
    font-size: 12px !important;
    }
    }
    $font-family-headings = "Kaiti SC",Georgia, sans
    $font-family-base = "Kaiti SC","Microsoft YaHei", Verdana, sans-serif

16.设置主题 2019-06-25 09:11:07

  1. root/_config.yml

  2. theme: next

  3. 当前主题是 next

1.Using Mist

1.1.Menu on top is tighter.

1.2.Best for now.

2.Chaged bg and text color both darker.

2.1. bg = $greyYellow = #DBD8C7, image make bg gone.

2.2. textColor = $green = #40B644

3.Using Mist instead of Muse

Muse head take too much space.

4.Using Pisces

4.1. menu show all the time.

4.2. Menu on the right is better.

5.DaoVoice contact-in-time Invite-Code

5.1.If you are registering DaoVoice, you can use my invite code: 5a709d75

6.post-meta-item

7.modified some css worked on local site, not working on server.

7.1.Working now!

Header background clear!

Menu color!

Body width, text-alignment, fonts bigger.2018-12-09 12:31:07

11.Post order sorting. add to node_modules/hexo-generator-index/lib/generator.js

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//added 
posts.data = posts.data.sort(function(a, b) {
if(a.top && b.top) {
if(a.top == b.top) return b.date - a.date;
else return b.top - a.top;
} else if(a.top && !b.top) {
return -1;
} else if(!a.top && b.top) {
return 1;
}
else return b.date - a.date;
});
// add to here on top of return
return pagination(path, posts, {
perPage: config.index_generator.per_page,
layout: ['index', 'archive'],
format: paginationDir + '/%d/',
data: {
__index: true
}
});

11.1.scheme using mist

12.nginx passed

1
2
3
auth_basic "nginx basic http test for ttlsa.com";
auth_basic_user_file conf/htpasswd;
autoindex on;

13.change background image

  1. Top set to 0

  2. changing background

    1. 添加背景图片

      将背景图片命名为background.jpg并放入博客根目录/source/images文件夹中
      打开博客根目录/themes/next/source/css/_custom/custom.styl文件
      加入如下代码:

      1
      2
      3
      4
      5
      6
      7
      // Custom styles.
      body {
      background-image: url(/images/background.jpg);
      background-attachment: fixed;
      background-repeat: no-repeat;

      }
    2. undo step 1

    3. change color

  3. change title

    1. 1
      vi _config.yml 14

14.installed Hexo on Mojave

  1. https://nodejs.org/en/ install nodes

  2. Install hero

  3. 1
    2
    3
    npm install hexo-cli -g
    hexo g
    hexo s

15.修改文章一到六级标题字体为微软雅黑,并且不加粗

1
\themes\landscape-plus\source\css\_extend.styl