IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> JavaScript知识库 -> Hexo搭建个人博客 -> 正文阅读

[JavaScript知识库]Hexo搭建个人博客

引用:https://blog.csdn.net/yin188103/article/details/104545544
他用的gitee ,但是gitee需要实名认证,果断放弃

windows上安装Hexo

Hexo需要提前安装
node.js 和git

npm install -g hexo-cli
设置镜像
npm config set registry https://registry.npm.taobao.org
npm info underscore
新建一个空目录,并cd进目录执行初始化
hexo init
init完成后执行
npm install
安装完成后,hexo server 启动服务器
localhost:4000 访问

新建博客

hexo new  [layout]<title>

生成网页文件

hexo generator

启动服务器

hexo server

使用icarus主题

主题地址:https://github.com/ppoffice/hexo-theme-icarus
下载icarus主题,将主题解压到themes文件夹,,
在这里插入图片描述
修改配置文件 _config.yml 将主题改为icarus,并定义站点的基本信息

# Site
title: waterkid  
subtitle: 'hexo博客'
description: '个人技术博客'
keywords: java,web
author: chenjie
language: zh-CN
timezone: Asia/Shanghai

在icarus主题的配置文件 _config.yml 中设置博客头像,昵称签名等:

## Navigation bar link settings
# Navigation bar link settings
navbar:
    # Navigation bar menu links
    menu:
        主页: /
        归档: /archives
        分类: /categories
        标签: /tags
        关于: /about
 
 
article:
    # Code highlight settings
    highlight:
        # Code highlight themes
        # https://github.com/highlightjs/highlight.js/tree/master/src/styles
        theme: atom-one-light
        # Show code copying button
        clipboard: true
        # Default folding status of the code blocks. Can be "", "folded", "unfolded"
        fold: unfolded
    # Whether to show article thumbnail images
    thumbnail: true
 
 
# Share plugin settings
# https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share
share:
    # Share plugin name
    type: sharejs
 
 
# Sidebar widget settings
# https://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/
widgets:
    -
        # Widget name
        type: profile
        # Where should the widget be placed, left or right
        position: left
        # Author name to be shown in the profile widget
        author: waterkid
        # Title of the author to be shown in the profile widget
        author_title: 人之所以能,是相信能
        # Author's current location to be shown in the profile widget
        location: 成都
        # Path or URL to the avatar to be shown in the profile widget
        avatar: /images/1.png

写博客设置分类,标签

title: 第一篇博客
date: 2021-09-20 21:40:52
thumbnail: /images/1.png
tags: java
categories: hello

将博客和github绑定在一起

在github上开启网页展示项目:

在配置文件中设置远程地址:
在这里插入图片描述

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://water-kid.github.io
root: /blog
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

访问:
在这里插入图片描述


给博客绑定自己的域名:
设置为cname,,将以前的网站指定到这个网站
在这里插入图片描述
配置文件修改为现在的域名:
在这里插入图片描述

在github上设置你要绑定自己的域名:
在这里插入图片描述
在这里插入图片描述

  JavaScript知识库 最新文章
ES6的相关知识点
react 函数式组件 & react其他一些总结
Vue基础超详细
前端JS也可以连点成线(Vue中运用 AntVG6)
Vue事件处理的基本使用
Vue后台项目的记录 (一)
前后端分离vue跨域,devServer配置proxy代理
TypeScript
初识vuex
vue项目安装包指令收集
上一篇文章      下一篇文章      查看所有文章
加:2021-09-28 00:08:30  更:2021-09-28 00:08:36 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/18 22:06:30-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码