使用githubpages主题NexT的语法

作者 : 开心源码 本文共3063个字,预计阅读时间需要8分钟 发布时间: 2022-05-12 共191人阅读

标题图

使用githubpages主题NexT的语法

NexT

前言

不知道为啥?网站总是不出现?

增加「标签」页面

title: 标签测试文章tags:  - Testing  - Another Tag---

新建页面:
设置页面类型:

$ hexo new page tagstitle: 标签date: 2014-12-22 12:39:04type: "tags"---menu:  home: /  archives: /archives  tags: /tags

增加「分类」页面

$ hexo new page categoriestitle: 分类date: 2014-12-22 12:39:04type: "categories"---menu:  home: /  archives: /archives  categories: /categories

设置字体

font:  enable: true  # 外链字体库地址,例如 //fonts.googleapis.com (默认值)  host:  # 全局字体,应用在 body 元素上  global:    external: true    family: Monda  # 标题字体 (h1, h2, h3, h4, h5, h6)  headings:    external: true    family: Roboto Slab  # 文章字体  posts:    external: true    family:  # Logo 字体  logo:    external: true    family: Lobster Two    size: 24  # 代码字体,应用于 code 以及代码块  codes:    external: true    family: PT Mono

设置代码高亮主题

# Code Highlight theme# Available value: normal | night | night eighties | night blue | night bright#  chriskempson/tomorrow-themehighlight_theme: normal

侧边栏社交链接

# Social linkssocial:  GitHub:  your-user-name  Twitter: https://twitter.com/your-user-name  微博: http://weibo.com/your-user-name  豆瓣: http://douban.com/people/your-user-name  知乎: http://www.zhihu.com/people/your-user-name  # 等等# Social Iconssocial_icons:  enable: true  # Icon Mappings  GitHub: github  Twitter: twitter  微博: weibo

开启打赏功能

reward_comment: 坚持原创技术分享,您的支持将鼓励我继续创作!wechatpay: /path/to/wechat-reward-imagealipay: /path/to/alipay-reward-image

友情链接

# titlelinks_title: Linkslinks:  MacTalk: http://macshuo.com/  Title: http://example.com/

腾讯公益404页面

<!DOCTYPE HTML><html><head>  <meta http-equiv="content-type" content="text/html;charset=utf-8;"/>  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />  <meta name="robots" content="all" />  <meta name="robots" content="index,follow"/>  <link rel="stylesheet" type="text/css" href="https://qzone.qq.com/gy/404/style/404style.css"></head><body>  <script type="text/plain" src="http://www.qq.com/404/search_children.js"          charset="utf-8" homePageUrl="/"          homePageName="回到我的主页">  </script>  <script src="https://qzone.qq.com/gy/404/data.js" charset="utf-8"></script>  <script src="https://qzone.qq.com/gy/404/page.js" charset="utf-8"></script></body></html>

站点建立时间

配置示例since: 2013

设置「动画效果」「背景动画」

use_motion: true  # 开启动画效果use_motion: false # 关闭动画效果canvas_nest 配置示例# canvas_nestcanvas_nest: true //开启动画canvas_nest: false //关闭动画three_waves 配置示例# three_wavesthree_waves: true //开启动画three_waves: false //关闭动画

第三方

Facebook Comments

# Facebook comments plugin# This plugin depends on Facebook SDK.# If facebook_sdk.enable is false, Facebook comments plugin is unavailable.facebook_comments_plugin:enable: falsenum_of_posts: 10  # min posts num is 1width: 100%       # default width is 550pxscheme: light     # default scheme is light (light or dark)

内置标签

标签调用方法<!-- HTML方式: 直接在 Markdown 文件中编写 HTML 来调用 --><!-- 其中 class="blockquote-center" 是必需的 --><blockquote class="blockquote-center">blah blah blah</blockquote><!-- 标签 方式,要求版本在0.4.5或者以上 -->{% centerquote %}blah blah blah{% endcenterquote %}<!-- 标签别名 -->{% cq %} blah blah blah {% endcq %}

容器宽度限制的图片

标签调用方法<!-- HTML方式: 直接在 Markdown 文件中编写 HTML 来调用 --><!-- 其中 class="full-image" 是必需的 --><img src="/image-url" class="full-image" /><!-- 标签 方式,要求版本在0.4.5或者以上 -->{% fullimage /image-url, alt, title %}<!-- 别名 -->{% fi /image-url, alt, title %}

假如看了觉得不错

点赞!转发!

达叔小生:往后余生,唯独有你
You and me, we are family !
90后帅气小伙,良好的开发习惯;独立思考的能力;主动并且善于沟通
简书博客: 达叔小生
https://www.songma.com/u/c785ece603d1

结语

  • 下面我将继续对 其余知识 深入讲解 ,有兴趣可以继续关注
  • 小礼物走一走 or 点赞

上一篇 目录 已是最后

说明
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » 使用githubpages主题NexT的语法

发表回复