Hexo+next主题配置踩的坑

下载安装完next主题后才发现一堆的坑。由于next的版本不同。所以有的配置文件和网上的教程不大一样。自己踩了N多坑,于是打算记录一下。于是自己试了好几天才差不多配置好。但是网站图标就是显示不出来。我是真哭辽。 下面开始具体配置:

下载安装next主题

下载next主题,只需输入指令:

git clone https://github.com/theme-next/hexo-theme-next themes/next

但是速度会比较慢。因为众所周知的原因。可以多尝试几下。然后如果要想更新主题的话,可以

cd themes/next
git pull

安装完成后到博客的根目录下的_config.yml文件中更改为next主题即可。

Next主题下_config.yml的配置

SITE设置

title: 填写标题
subtitle: 填写副标题
description: 简介
keywords: 关键词
author: 作者,文章中显示的作者名称
language: 设置语言,zh-CN是简体中文,en是英语

# Site
title: 嵌入式的一只菜鸟
subtitle: ''
description: '永远相信美好的事情即将发生'
keywords:
author: WYW@HD
language: zh-CN
timezone: 'Asia/Shanghai'

URL设置

我用的是国内的码云搭建的博客。url设置的时候一般情况就是设置为你创建的仓库名字。或者就是你博客的网址。root这里的话就写你博客的仓库名字。其余都默认就可以。

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url:  http://xxxxxx/xxxxx
root: /blog2
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:trailing_index: true # Set to false to remove trailing 'index.html' from permalinkstrailing_html: true # Set to false to remove trailing '.html' from permalinks

翻页设置

per_page用于控制每页显示多少篇博客文章。

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:path: ''per_page: 10order_by: -date

Deployment设置

这里的设置就是你上传博客内容到你的仓库的方式。也就是git方式。repo替换为你自己的就可以。获取这个repo在各个平台都是大同小异的。分支的话我们这里填写master.因为初始化仓库默认是master分支。

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:type: 'git'repository:  git@gitee.com:yourname/blog2.gitbranch: master

Next主题下的_config.yml的配置。

网站logo设置:

反正我配置Logo就是不好使,图片路径什么都是正确的,结果就是不好使。有毒。你把你要想要的图片放进\themes\next\source\images这个路径下。但是图片尺寸要正确。下面我推荐一个网站,上面的图标很多。

favicon:small: http://xxxxxx/xxxxxx/images/favicon-16x16-next.pngmedium: http://xxxxxx/xxxxxx/images/favicon-32x32-next.png# apple_touch_icon: /images/apple-touch-icon-next.png# safari_pinned_tab: /images/logo.svg#android_manifest: /images/manifest.json#ms_browserconfig: /images/browserconfig.xml

页脚设置:

footer:# Specify the date when the site was setup. If not defined, current year will be used.since: 2020# Icon between year and copyright info.icon:# Icon name in Font Awesome. See: https://fontawesome.com/v4.7.0/icons/# `heart` is recommended with animation in red (#ff0000).name: heart# If you want to animate the icon, set it to true.animated: true# Change the color of icon, using Hex Code.color: "#808080"# If not defined, `author` from Hexo `_config.yml` will be used.copyright: WYW@HDpowered:# Hexo link (Powered by Hexo).enable: false# Version info of Hexo after Hexo link (vX.X.X).version: falsetheme:# Theme & scheme info link (Theme - NexT.scheme).enable: false# Version info of NexT after scheme info (vX.X.X).version: false

页脚设置就是网页最底下那一部分。鸽了n天后决定接着写。指的是下面图这一部分。

since指的是你博客开始的年份,icon的话默认的是心形。animated设置为true是显示。false则是关闭。colour指的是Icon的颜色。copyright如果没有提到的话则默认用的是你根目录下_config.yml中设置的作者名字,这里我设置的都是一样的。都是一个名字。powered指的是页面下是否显示hexohexo的版本。true就是显示。反之falsetheme也是类似的。

Next主题风格:

# Schemes
#scheme: Muse
#scheme: Mist
# scheme: Pisces
scheme: Gemini

next的主题风格一共是有四种,在这里我用的是最后一种: Gemini。其它类型的风格可能配置后略有不同,自己可以尝试一下。

菜单栏设置:

菜单栏的设置刚开始配置文件中都是注释起来的,自己需要哪个把注释取消掉即可。效果如图所示:

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ceobQoPU-1585462696655)(https://s1.ax1x.com/2020/03/23/877Urd.png)]

# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive.
# Value before `||` delimiter is the target link, value after `||` delimiter is the name of Font Awesome icon.
# When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives).
# External url should start with http:// or https://
menu:home: / || homeabout: /about/ || usertags: /tags/ || tagscategories: /categories/ || tharchives: /archives/ || archive# schedule: /schedule/ || calendar#sitemap: /sitemap.xml || sitemap#commonweal: /404/ || heartbeatlinks: /links/ || link# Enable / Disable menu icons / item badges.
menu_settings:icons: truebadges: true

举个例子,home对应的就是图片上方的首页。那么这个中文名称是在哪个文件更改呢?下面就是在博客根目录下的\themes\next\languages这个路径下的zh-CN.yml.打开后就可以看到了:

menu:home: 首页archives: 时间轴categories: 文章分类tags: 文章标签about: 关于作者search: 搜索schedule: 日历links: 友情链接sitemap: 站点地图commonweal: 公益 404

meau_settings下面的俩个参数默认即可。

侧边栏设置:

# ---------------------------------------------------------------
# Sidebar Settings
# See: https://theme-next.org/docs/theme-settings/sidebar
# ---------------------------------------------------------------sidebar:# Sidebar Position.# position: leftposition: right# Manual define the sidebar width. If commented, will be default for:# Muse | Mist: 320# Pisces | Gemini: 240width: 320# Sidebar Display (only for Muse | Mist), available values:#  - post    expand on posts automatically. Default.#  - always  expand for all pages automatically.#  - hide    expand only when click on the sidebar toggle icon.#  - remove  totally remove sidebar including sidebar toggle.display: post# Sidebar padding in pixels.padding: 18# Sidebar offset from top menubar in pixels (only for Pisces | Gemini).offset: 12# Enable sidebar on narrow view (only for Muse | Mist).onmobile: true# Sidebar Avatar
avatar:# Replace the default image and set the url here.url: /images/avatar.png# If true, the avatar will be dispalyed in circle.rounded:  true# If true, the avatar will be rotated with the cursor.rotated:  true# Posts / Categories / Tags in sidebar.
site_state: true

position设置的是侧边栏的位置,width设置的是宽度,默认即可,avatar指的头像的具体设置,url指的是你头像的路径,你可以把你想用的图像照片放进博客根目录下的\themes\next\source\images这个路径下,但是头像尺寸大小要符合,大小为512*512.rounded:指的是头像是否以圆形展示,true就是开启。rotated指的是把鼠标放在头像上的时候是否旋转。

社交链接:

社交链接下面需要什么把相应的注释去掉即可。加上自己的链接即可。或者可以将它原来的名字修改为你要的。

# Social Links
# Usage: `Key: permalink || icon`
# Key is the link label showing to end users.
# Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon.
social:GitHub: https://github.com/wywaihandan || githubE-Mail: 2838177495@qq.com|| envelopeCSDN: https://me.csdn.net/qq_44219883 ||stack-overflow哔哩哔哩: https://space.bilibili.com/390161354 ||skype#Weibo: https://weibo.com/yourname || weibo#Google: https://plus.google.com/yourname || google#Twitter: https://twitter.com/yourname || twitter#FB Page: https://www.facebook.com/yourname || facebook#StackOverflow: https://stackoverflow.com/yourname || stack-overflow#YouTube: https://youtube.com/yourname || youtube#Instagram: https://instagram.com/yourname || instagram#Skype: skype:yourname?call|chat || skypesocial_icons:enable: trueicons_only: falsetransition: false

打赏设置:

# Reward (Donate)
# Front-matter variable (unsupport animation).
reward_settings:# If true, reward will be displayed in every article by default.enable: trueanimation: truecomment: 坚持原创技术分享,您的支持将鼓励我继续创作!.reward:wechatpay: /images/wechat.jpgalipay: /images/alipay.jpg#paypal: /images/paypal.png#bitcoin: /images/bitcoin.png# Subscribe through Telegram Channel, Twitter, etc.
# Usage: `Key: permalink || icon` (Font Awesome)
follow_me:#Twitter: https://twitter.com/username || twitter#Telegram: https://t.me/channel_name || telegramWeChat: http://wyw_hd.gitee.io/blog2/images/6.jpg || wechat哔哩哔哩: https://space.bilibili.com/390161354?share_medium=android&share_source=copy_link&bbid=XY4332D4EDDC2E23C34503D72EE3B1E71BE02&ts=1582201848748 || rss# RSS: /atom.xml || rss

enable设置为true则是开启打赏设置,comment则是显示的一句话,可以换成自己喜欢的,微信和支付宝的照片依旧放在博客根目录下的\themes\next\source\images中。followe_me下面的设置可以设置你的其他发布渠道,wechat我放的是我的公众号,哔哩哔哩的文章也有,只不过我最近太懒了,鸽了好久,具体设置完后的效果图如图所示:

文章底部评论设置:

# Valine
# For more information: https://valine.js.org, https://github.com/xCss/Valine
valine:enable: trueappid: *************** # Your leancloud application appidappkey: ***************** # Your leancloud application appkeynotify: false # Mail notifierverify: false # Verification codeplaceholder: 留下你的评论吧 # Comment box placeholderavatar: mm # Gravatar styleguest_info: nick,mail,link # Custom comment headerpageSize: 10 # Pagination sizelanguage: # Language, available values: en, zh-cnvisitor: true # Article reading statisticcomment_count: true # If false, comment count will only be displayed in post page, not in home pagerecordIP: true # Whether to record the commenter IPserverURLs: # When the custom domain name is enabled, fill it in here (it will be detected automatically by default, no need to fill in)#post_meta_order: 0

文章底部评论我刚开始用的githubgittalk,后来由于github的服务器在国外,速度太慢了。而且每次用都要初始化下评论,就放弃了gittalk评论。改用valine评论。使用valine需要先注册下账号然后实名认证。然后创建应用得到appidappkey.该网站的链接为:https://valine.js.org/quickstart.html

之后把appidappkey填入即可。使能打开即可。

Github角标

# `Follow me on GitHub` banner in the top-right corner.
github_banner:enable: truepermalink: https://github.com/Siriusqtitle: Follow me on GitHub

enable:用于设置是否在页面右上角显示Github三角标
permalink:后面填写你的Github地址
title:用于设置鼠标移动到图标后显示的文字

返回顶部按钮

back2top:enable: true# Back to top in sidebar.sidebar: true# Scroll percent label in b2t button.scrollpercent: true

enable:用于设置是否开启回到顶部按钮
sidebar:用于设置是否将按钮放到侧边栏中
scrollpercent:用于设置是否显示阅读进度百分比

文章搜索:

可以方便快捷的搜索文章,但是需要安装插件:

具体指令:

npm install hexo-generator-searchdb --save

之后找到以下内容改为下图即可。

# Local Search
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb
local_search:enable: true# If auto, trigger search by changing input.# If manual, trigger search by pressing enter key or search button.trigger: auto# Show top n results per article, show all results by setting to -1top_n_per_article: 1# Unescape html strings to the readable one.unescape: false# Preload the search data when the page loads.preload: false

动态背景

Next主题默认提供了三种动态背景

  • Canvas-nest
  • JavaScript 3D library
  • Canvas-ribbon

Canvas-nest

这是在网页背景显示的动态效果。

安装

切换到Next主题文件夹

cd themes/next

安装模块

git clone https://github.com/theme-next/theme-next-canvas-nest source/lib/canvas-nest

修改配置文件

打开Next主题路径下的配置文件_config.yml修改下列代码

# Canvas-nest
# Dependencies: https://github.com/theme-next/theme-next-canvas-nest
canvas_nest:enable: trueonmobile: true # 是否在手机上显示color: "255,51,51" # RGB颜色设置opacity: 0.5 # 线条透明度zIndex: -1 # 显示级别count: 160 # 线条的数量,越多越卡

如果想使用CDN加速的话需要设置

vendors:...canvas_nest: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@1.0.0/canvas-nest.min.jscanvas_nest_nomobile: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@1.0

网站运行时间

打开.\themes\next\layout\_partials\footer.swig并添加下列代码

<div>
<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
<script>var now = new Date();function createtime() {var grt= new Date("03/04/2020 00:00:00");now.setTime(now.getTime()+250);days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days);hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours);if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;}seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;}document.getElementById("timeDate").innerHTML = "本站已安全运行 "+dnum+" 天 ";document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒";}
setInterval("createtime()",250);
</script>
</div>

上面的代码可以修改为你创建博客的时间,

访客统计 :

# Show Views / Visitors of the website / page with busuanzi.
# Get more information on http://ibruce.info/2015/04/04/busuanzi
busuanzi_count:enable: truetotal_visitors: truetotal_visitors_icon: usertotal_views: truetotal_views_icon: eyepost_views: truepost_views_icon: eye

next主题中已经内置了访客统计的功能,所以这里我们只需开启就行。

文章目录:

文章目录我们用markdown写东西的时候会有一级标题,二级标题,文章目录就是由这些构成的。然后网上有的教程是让修改那个_custom文件。但是那个文件这个版本的next实际是没有的,然后有另外一种方法,就是在根目录下source\data新建一个styles.styl文件。然后找到next主题下的:

# Define custom file paths.
# Create your custom files in site directory `source/_data` and uncomment needed files below.
custom_file_path:#head: source/_data/head.swig#header: source/_data/header.swig#sidebar: source/_data/sidebar.swig#postMeta: source/_data/post-meta.swig#postBodyEnd: source/_data/post-body-end.swig#footer: source/_data/footer.swig#bodyEnd: source/_data/body-end.swig#variable: source/_data/variables.styl#mixin: source/_data/mixins.stylstyle: source/_data/styles.styl

将style前的注释取消掉即可。接下来就可以编辑在styles.styl编辑一些东西:比如网页背景以及透明度。

//文章目录默认展开
.post-toc .nav .nav-child { display: block; }
.post-toc ol {  font-size : 13px;
}

接下来初始化文章目录我们来到主题配置文件位于themes/next/_config.yml

可以找到如下:

# Table of Contents in the Sidebar
# Front-matter variable (unsupport wrap expand_all).
toc:enable: true# Automatically add list number to toc.number: true# If true, all words will placed on next lines if header width longer then sidebar width.wrap: true# If true, all level of TOC in a post will be displayed, rather than the activated part of it.expand_all: true# Maximum heading depth of generated toc.max_depth: 6

按照上面配置即可。

网站背景:

写的我自己要吐了。网站没有背景其实真的很空洞,所以我们可以加上背景并设置透明度…肝不动了。。。。明天再说。接着来写了。关于主题配置的话网上有好多说的仍旧是那个_custom文件。但是这个next主题是没有这个文件的。所以我们仍旧在style.styl文件中配置。配置内容如下:

body {background:url(http://***********/******/images/bg.jpg);//图片路径background-repeat: no-repeat;//是否重复平铺background-attachment:fixed;//是否随着网页上下滚动而滚动,fixed为固定background-position:50% 50%;//图片位置background-size: cover;//图片展示大小-webkit-background-size: cover;-o-background-size: cover;-moz-background-size: cover;-ms-background-size: cover;opacity: 0.6;//设置整个页面的透明度。该透明度如果不加在这里会出现bug,bug就是菜单栏无法点击。#footer > div > div {color:#000000;//底部文字颜色}
}
.header-inner {background: #fff;//设置侧边栏透明opacity: 1;//这里设置为1,否则搜索栏会消失
}
.main-inner {background: #fff;opacity: 1;
}

图片的url照着替换为你博客的网址+images即可。

文章分类以及标签:

还记得_config.yml中有关于meau的设置把。我们如果想将文章分类以及添加标签的话。首先在根目录执行 hexo new page categories。之后你会发现在博客根目录下source文件夹会生成一个categories文件夹。我们进入这个文件夹。用VSCODE打开里面的index.md进行编辑,在当中添加type类型。

---
title: categories
date: 2020-02-19 22:27:43
type: categories
---

标签的操作也是类似这样。输入指令 hexo new page tags。接下来编辑index.md这个文件即可。添加type属性即可。

以上完成后我们就可以在文章中添加分类以及标签了。类似这样:

---
title: hexo+next主题配置
date: 2020-03-04 23:22
categories: hexo博客主题配置
tags: Next主题美化
mathjax: true
---

这样我们就可以查看我们自己文章的分类以及标签了。

友情链接links:

菜单栏中还有一项友情链接。这里可以放上常用的网站。具体设置如下:首先在根目录下\themes\next\layout新建一个links.swig并添加如下内容:

{% block content %}{######################}{### LINKS BLOCK ###}{######################}<div id="links"><style>#links{margin-top: 5rem;}.links-content{margin-top:1rem;}.link-navigation::after {content: " ";display: block;clear: both;}.card {width: 300px;font-size: 1rem;padding: 10px 20px;border-radius: 4px;transition-duration: 0.15s;margin-bottom: 1rem;display:flex;}.card:nth-child(odd) {float: left;}.card:nth-child(even) {float: right;}.card:hover {transform: scale(1.1);box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);}.card a {border:none;}.card .ava {width: 3rem!important;height: 3rem!important;margin:0!important;margin-right: 1em!important;border-radius:4px;}.card .card-header {font-style: italic;overflow: hidden;width: 236px;}.card .card-header a {font-style: normal;color: #2bbc8a;font-weight: bold;text-decoration: none;}.card .card-header a:hover {color: #d480aa;text-decoration: none;}.card .card-header .info {font-style:normal;color:#a3a3a3;font-size:14px;min-width: 0;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}</style><div class="links-content"><div class="link-navigation">{% for link in theme.mylinks %}<div class="card"><img class="ava" src="{{ link.avatar }}"/><div class="card-header"><div><a href="{{ link.site }}" target="_blank"> {{ link.nickname }}</a><a href="{{ link.site }}" target="_blank"><span class="focus-links">关注</span></a></div><div class="info">{{ link.info }}</div></div></div>{% endfor %}</div>{{ page.content }}</div></div>{##########################}{### END LINKS BLOCK ###}{##########################}
{% endblock %}

然后修改 hexo/themems/next/layout/page.swig 文件,在

复制

文件位置:hexo/themems/next/layout/page.swig#}{% elif page.type === "tags" and not page.title %}{##}{{ __('title.tag') + page_title_suffix }}{#

位置添加如下代码:

复制

<!-- 友情链接-->
#}{% elif page.type === 'links' and not page.title %}{##}{{ __('title.links') + page_title_suffix }}{#

然后还是在这个 page.swig 文件中,引入刚才新建的 swig 页面:

复制

<!-- 友情链接-->
{% elif page.type === 'links' %}{% include 'links.swig' %}

这个代码位置可以放到下面

复制

    {% elif page.type === 'categories' %}<div class="category-all-page"><div class="category-all-title">{{ _p('counter.categories', site.categories.length) }}</div><div class="category-all">{{ list_categories() }}</div></div>
+      {% elif page.type === 'links' %}
+          {% include 'links.swig' %}{% else %}{{ page.content }}{% endif %}</div>

然后我们使用 GitBash 新建一个菜单栏:

复制

命令位置:hexo根目录hexo new page "links"

这样在 hexo/source 目录下会生成一个 links 文件夹,打开其中的 index.md 文件,在标题头中写入 type = "links" 这个属性头,如下:

复制

---
title: 友情链接
date: 2019-06-28 20:46:16
+ type: "links"
---

如果需要关闭这个页面的评论的话,可以设置如下:

复制

---
title: 友情链接
date: 2019-06-28 20:46:16
type: "links"
+ comments: false
---

最后,我们添加友链的话,需要在主题配置文件根目录下/themes/next/_config.xml 文件末尾添加:

mylinks:- nickname: CSDNavatar:  http://wyw_hd.gitee.io/blog2/images/csdn.pngsite: https://www.csdn.net/info: 各类知识都有- nickname: 电子开源网avatar: http://wyw_hd.gitee.io/blog2/images/naruto.pngsite: http://openedv.com/info: 正点原子STM32系列知识- nickname: 哔哩哔哩avatar:  http://wyw_hd.gitee.io/blog2/images/jake.pngsite: https://www.bilibili.com/info: 各类教学视频都有啊,学习的小破站- nickname: githubavatar:  http://wyw_hd.gitee.io/blog2/images/hah.pngsite: https://github.com/info: 上面各种开源代码。值得学习

然后我们还需要在该配置文件下添加links即可;

# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive.
# Value before `||` delimiter is the target link, value after `||` delimiter is the name of Font Awesome icon.
# When running the site in a subdirectory (e.g. yoursite.com/blog), remove the leading slash from link value (/archives -> archives).
# External url should start with http:// or https://
menu:home: / || homeabout: /about/ || usertags: /tags/ || tagscategories: /categories/ || tharchives: /archives/ || archive# schedule: /schedule/ || calendar#sitemap: /sitemap.xml || sitemap#commonweal: /404/ || heartbeat
添加:  links: /links/ || link# Enable / Disable menu icons / item badges.
menu_settings:icons: truebadges: true

阅读全文按钮开启:

我们首先找到在next主题下的_config.yml代码:

  auto_excerpt:enable: falselength: 150

然后把false改为true即可。length是显示摘要的长度。然后在文章添加 这个标签即可。

感觉写的差不多了。坑是有点多。踩的多就明白了。希望疫情早日结束,能够开学早点见到她。嘿嘿。

参考博客

1:next主题美化

有时间再把这个坑再填下。欢迎来到我的博客http://wyw_hd.gitee.io/blog2/。会有一些技术类的很菜的个人总结。

Hexo+next主题配置踩的坑相关推荐

  1. Hexo bamboo主题配置

    Hexo bamboo主题配置 本文内容出自 yuang01 如需了解更多可查看 https://hexo-theme-bamboo.netlify.app/ Front-matter(文章)配置 配 ...

  2. Hexo 个性化主题配置

    接上文:基于 Hexo + GitHub 的个人博客搭建,这篇是写配置 next 个性化主题的. 只记录自己使用的一些配置,不定期更新. 有两个 _config.yml 文件,根目录的是站点配置文件, ...

  3. Hexo+icarus主题配置

    下载icarus主题 飞鱼的博客 进入博客主目录,点击鼠标右键Git Bash Here,进入命令行界面 输入: git clone https://github.com/ppoffice/hexo- ...

  4. 使用 github 仓库搭建 Hexo教程,Hexo配置文件解读,Hexo安装next主题及主题配置,美化

    这是之前写的文章了,重新补一补,把另外写的都和在一起了,出问题方便找 搭建Hexo 准备 安装 nodejs 安装 git 可以看我之前的博客,好像有写安装方法 安装hexo-cli 中文官网 安装是 ...

  5. mac git使用与配置踩过的坑

    #mac git使用与配置踩过的坑 标题mac配置git ssh密钥 参考链接mac配置git ssh key go get安装失败的解决方法 go get约等于git clone+go instal ...

  6. Hexo的Next主题配置

    使用Next主题 在这里Downloads Next主题代码 将下载的代码放在myBlog/theme/next目录下 设置站点myBlog/_config.yml的theme字段值为next 生成新 ...

  7. hexo个人博客搭建(二)butterfly主题配置

    Butterfly主题安装文档(二)之主题配置 一.回顾安装butterfly主题 1.在hexo项目根目录下执行操作clone主题 git clone -b master https://githu ...

  8. hexo的安装配置以及主题更换保姆级教程

    目录 1.首先是本地安装个配置hexo 2.进入你需要创建hexo的文件夹中,打开终端配置hexo项目文件夹 注意:更换主题重点了解themes这个主题文件夹. 3.新建文章及预览 4.更换主题环节 ...

  9. GitHub+Hexo搭建自己的Blog之(3)-主题配置(Next)

    GitHub+Hexo搭建自己的Blog之-主题配置(Next) 前言 Blog的环境全部搭建完毕了,但是还没有内容,而且hexo默认的主题是不是感觉挺丑的,其实hexo给我们提供了很多主题模板,总有 ...

最新文章

  1. 关于软件产业的两个契机
  2. eff java_eff java 15条
  3. ADC的参数分析以及采样分析
  4. 从netty-example分析Netty组件
  5. [原创]Logo与Banner
  6. jdbctemplate 开启事务_Spring(四):事务管理
  7. 派单o2o全开源版 v11.6.0 全新UI版小程序模块
  8. js 原生对象排序
  9. 大数据之-Hadoop之HDFS_Fsimage和Edits文件的解析---大数据之hadoop工作笔记0071
  10. sed修炼系列(三):sed高级应用之实现窗口滑动技术
  11. mpg123解码相关
  12. 三年JAVA开发经验如何做到年薪35万
  13. 酷派W711刷机教程
  14. 其实 Gradle Transform 就是个纸老虎 —— Gradle 系列(4)
  15. 2E07-view-lists-Collapsed
  16. 利用公式实现RGB图转化为灰度图
  17. 文本分类——常用经典技术解析(jieba,word2vec,样本不平衡问题)
  18. library sort(图书馆排序)
  19. windows服务器443端口被占用---云锁
  20. 初代网红绿茶餐厅闯关IPO:翻台率萎靡、上市难回春

热门文章

  1. 基于Cisco Packet Tracer的中小型网吧组网设计方案
  2. ORACLE 几种同步灾备手段(OGG,ADG,DSG,高级复制,流复制,logmnr)
  3. flink 分词程序代码(批处理和实时)
  4. MODBUS-RTU协议主机和从机代码STM32 包含2个程序代码,主机和从机
  5. 【docker系列】docker深入浅出之安装教程
  6. tableView的懒懒的跳转方式,加载数据源方式
  7. Win10 资源管理器闪退-解决方法
  8. 【云原生】云原生在网络安全领域的应用
  9. Android 获取经纬度。2018年写
  10. 第三方android 模拟器哪个好用吗,安卓模拟器哪个好 哪个电脑安卓模拟器好用...