GithubHelp home page GithubHelp logo

fi3ework / hexo-theme-archer Goto Github PK

View Code? Open in Web Editor NEW
1.5K 25.0 274.0 23.34 MB

🎯 A smart and modern theme for Hexo.

Home Page: https://fi3ework.github.io/hexo-theme-archer

License: MIT License

JavaScript 25.50% Shell 0.03% EJS 32.09% SCSS 42.38%
hexo-theme hexo hexo-blog hexo-theme-archer

hexo-theme-archer's Introduction

hexo-theme-archer

preview

在线预览

🎯 主题预览:Demo

文档

说明

由于作者精力有限,无法保证此主题继续维护,欢迎您 Fork 👋🏻 本仓库或申请成为维护者 👩‍🔧

  • 本主题受 yilia 主题和 huxpro 主题的启发,结合了前者的 sidebar 设计及后者的 UI 设计。通过 sidebar 能够快速执行 archive, tag 以及 categories 导航。
  • 兼容性:现代浏览器及 IE10+。
  • 有任何使用上的问题欢迎发起 issue

快速安装

拉取 Archer 主题文件到 themes/archer 目录:

git clone https://github.com/fi3ework/hexo-theme-archer.git themes/archer --depth=1

如果您没有安装 Git 工具,也可以在 Hexo 根目录下手动创建 themes/archer 文件夹,然后将此仓库的所有代码下载到该目录下。

仓库的 dev 分支包含正在开发中的主题代码,如果您是进阶开发者或追新用户,能够承受代码的不足之处和低稳定性,并乐于关注我们开发的最新进展,可以品尝此分支:git clone -b dev https://github.com/fi3ework/hexo-theme-archer.git themes/archer --depth=1

Archer 主题依赖于 hexo-generator-json-content 插件生成侧边栏索引,需要在 Hexo 根目录安装并配置此插件:

npm install hexo-generator-json-content

_config.yml 中添加如下字段:

jsonContent:
  meta: true
  pages: false
  posts:
    title: true
    date: true
    path: true
    text: false
    raw: false
    content: false
    slug: false
    updated: false
    comments: false
    link: false
    permalink: true
    excerpt: false
    categories: true
    tags: true

最后配置 _config.yml,设置 Hexo 主题为 Archer:

theme: archer

您成功设置了博客主题 🎇!现在就执行 hexo s 命令,在本地预览主题效果吧。

主题个性化配置

现在您的项目目录结构应当如下所示:

. # 「Hexo 根目录」
├── themes
│   └── archer # 「Archer 主题目录」
│       └── _config.yml # Archer 主题配置文件
└── _config.yml # Hexo 配置文件

您可以通过 hexo -v 命令,或在 Hexo 根目录下的 package.json 中查看您当前使用的 Hexo 版本。

  • 如果 Hexo 版本 >= 5.0.0,建议复制 Archer 主题目录下的 _config.yml 到 Hexo 根目录,并命名为 _config.archer.yml,接下来修改此文件即可对主题进行配置。现在,您可以删除 Archer 主题目录下的 _config.yml 文件,或将它重命名为 _config.yml.template,避免配置合并或冲突。
  • 如果 Hexo 版本 >= 2.8.2,修改 Archer 主题目录下的 _config.yml 文件即可对主题进行配置。
  • 如果 Hexo 版本 < 2.8.2,请参考 Archer 主题目录下的 _config.yml 中的配置,在 Hexo 根目录下的 _config.yml 添加相应字段即可进行配置。

上面三种情况的 Archer 主题配置文件 _config.archer.yml_config.yml,为了与 Hexo 根目录下的全局配置文件 _config.yml 作区分,在后面的介绍中统称为 Archer 主题目录下的 _config.yml

可选的 Archer 主题配置内容如下:

这个维基页面包含了主题配置属性的完整中文参考。

启用字数统计

在 Hexo 根目录下安装依赖插件:

npm install hexo-wordcount

配置 Archer 主题目录下的 _config.yml 启用字数统计能力:

reading_info: true

现在,字数统计信息将显示在博客页面的标题下方。

配置 About 页面

在 Hexo 根目录下执行如下命令:

hexo new page "about"

在 Hexo 根目录下 source/about/index.md 中添加以下内容:

---
title: 您的自我介绍标题
layout: about
---
您的自我介绍正文

其中 layout: about 字段为必要的不可修改为其它值。

配置 Archer 主题目录下的 _config.yml 以开启 About 页面:

about:
  enable: true
  image: '/intro/about-page.jpg'

配置 404 页面

在 Hexo 根目录下 source 中创建 404.md,添加字段如下:

---
layout: 404
title: "[404]"
description: "May the Force be with you :&#41;"
---

其中 Front-matter 的 layout: 404 字段为必要的不可修改为其它值,title 字段为您自定义的标题,description 字段为 404 页面的自定义描述。

您可以通过配置 Archer 主题目录下的 _config.yml 来修改 404 页面的背景图片:

_404_image: '/intro/404-bg.jpg'

启用 RSS 订阅

在 Hexo 根目录下安装依赖插件:

npm install hexo-generator-feed --save

配置 Archer 主题目录下的 _config.yml

social:
  rss: /atom.xml

启用 Mermaid

Mermaid 是一款基于 JavaScript 的流程图和图表工具,它使用 Markdown 定义并渲染各种图表,帮助构建软件工程或各类技术文档。

为了启用 Mermaid,您需要首先在 Hexo 根目录下安装 hexo-filter-mermaid-diagrams 依赖插件:

npm install hexo-filter-mermaid-diagrams --save

配置 Archer 主题目录下的 _config.yml以启用 Mermaid:

mermaid:
  enable: true
  version: 8.11.0
  theme: dark

测试 Mermaid 是否启用成功,您可以在任意文章中添加下面的内容(您需要取消缩进):

    ``` mermaid
    graph TD;
      A-->B;
      A-->C;
      B-->D;
      C-->D;
    ```

❗️❗️❗️ 注意:如果您需要使用类图,请编辑您 Hexo 根目录下的 _config.yml,设置 external_link: false。请确保这个设置对您原来的页面功能没有影响,这是 Hexo 本身的 bug。

启用 LaTeX 数学公式

这个维基页面包含启用 LaTeX 数学公式支持的完整介绍。

Archer 主题已经内置了 MathJax,但是您需要替换 Hexo 默认的 Markdown 渲染引擎来支持解析 LaTeX 数学公式语法。此示例中将替换为 hexo-renderer-pandoc

请留意:替换渲染引擎为 hexo-renderer-pandoc 会带来编写上的区别,可能导致一些潜在的问题。

首先,确保系统中已经安装pandoc,版本不低于 2.0。

在 Hexo 根目录下执行下面的命令:

# 卸载默认的渲染引擎
npm uninstall hexo-renderer-marked --save
# 安装 hexo-renderer-pandoc
npm install hexo-renderer-pandoc --save

配置 Archer 主题目录下的 _config.yml 以启用 LaTeX 数学公式:

math:
  mathjax:
    enable: true
    version: 3.2.0

Archer 默认不启用 MathJax 渲染 LaTeX 数学公式,因此需要在文章的 Front-matter 中添加 mathjax: true 字段。

测试是否启用成功,您可以在这篇文章中添加下面的内容:

\begin{equation}
\left\{
\begin{array}{lr}
x=\dfrac{3\pi}{2}(1+2t)\cos(\dfrac{3\pi}{2}(1+2t)), & \\
y=s, & 0 \leq s \leq L,|t| \leq1. \\
z=\dfrac{3\pi}{2}(1+2t)\sin(\dfrac{3\pi}{2}(1+2t)), &  
\end{array}
\right.
\end{equation}

启用自定义字体

实验性功能,自定义字体依赖于 CSS Variables 能力,存在浏览器兼容性问题

配置 Archer 主题目录下的 _config.yml 启用自定义字体能力:

custom_font:
  enable: true
  name: 'Noto Sans SC:n3,n4,n5,n7'
  url: 'https://fonts.googleapis.cnpmjs.org/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap'

其中,name 为引入的自定义字体名称。: 后跟引入字体的变体和字重,使用 , 间隔。例如 name: 'Noto Sans SC:i5,n7' 表示引入 Noto Sans SC 的斜体 500 字重和正常 700 字重。

url 为引入的自定义字体的 CDN 链接或本地链接。

文章撰写增强

Archer 主题为您撰写的文章提供了一些增强的展示内容。

请注意,这些增强的展示内容仅保证在 Archer 主题中能够顺利渲染显示。

文章属性配置。在文章的 Front-matter 处配置:

正文内容增强。在编写正文时根据自己的需要使用:

置顶文章

Archer 主题在主页为置顶的文章显示一个小标记。

在默认情况下,Hexo 使用 hexo-generator-index 生成文章索引。假如您需要置顶某篇文章,只需要在它的 Front-matter 处添加 sticky 属性即可:

---
title: Hello World
date: 2013/7/13 20:46:25
sticky: 100
---

您可以在 Hexo 根目录下的 package.json 中找到您是否使用 hexo-generator-index 插件作为项目依赖。

假如您使用其它的插件生成索引,也可以手动添加 top 属性以显示小标记:

---
title: Hello World
date: 2013/7/13 20:46:25
top: true
---

隐藏文章目录

在默认情况下,使用宽屏幕阅读文章时,会在文章右侧显示其目录信息。

您可以通过配置 Archer 主题目录下的 _config.yml全局关闭文章目录:

toc: false

或者,您也可以指定某些文章不显示目录。只需要在文章的 Front-matter 部分设置 toc 属性即可:

---
title: Hello World
date: 2013/7/13 20:46:25
toc: false
---

当然,在全局关闭文章目录的情况下,您也可以在文章中手动设置 toc: true,以显示该文章的目录。

浮动元素

Archer 主题内置了对浮动元素的样式表支持。

  • archer-float-left:设置元素靠左浮动。
  • archer-float-right:设置元素靠右浮动。

浮动元素仅在桌面端生效。在移动端中,浮动元素将恢复正常文档流。

例如:

Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna. Maecenas massa vel lacinia pellentesque lorem ipsum dolor.

<div class="archer-float-right">
  <img src="https://cdn.jsdelivr.net/gh/fi3ework/hexo-theme-archer/source/avatar/Misaka.jpg" alt="this is a float image!">
</div>

Nullam et orci eu lorem consequat tincidunt. Vivamus et sagittis libero. Nullam et orci eu lorem consequat tincidunt vivamus et sagittis magna sed nunc rhoncus condimentum sem. In efficitur ligula tate urna.

更新主题

主题的更新内容发布在仓库的 Release 页面。

提供两种方法供参考:

  • 使用 git 命令进行更新,但是可能需要手动合并代码,解决冲突;
  • 备份重要文件后重新克隆,简单粗暴。

使用 git 命令

在 Archer 主题目录下先执行 git stash 将本地的修改暂存,然后执行 git pull 获取主题的最新版本,再执行 git stash pop 将本地的修改还原,如果合并冲突报错 CONFLICT,手动合并解决冲突即可。

如果自定义了主题,解决冲突后,执行 npm run build 重新生成主题即可。

重新克隆主题

首先备份 Archer 主题目录下所有您自定义过的文件(包括 _config.ymlsource 文件夹下添加的文件等),然后删除 Archer 主题目录,再重新安装,最后将备份的文件替换到原来的位置即可。

许可证

MIT

hexo-theme-archer's People

Contributors

alwaystest avatar billxc avatar cherrs avatar dependabot[bot] avatar fi3ework avatar kiss4u avatar lolipopj avatar lulu010722 avatar pfrankw avatar polo2ro avatar removeif avatar rep00c avatar rezeros avatar secsilm avatar shinchven avatar stardemo avatar stark-x avatar stark-x-za avatar thejiawen avatar vsxd avatar wonderer80 avatar zhullyb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-archer's Issues

添加豆瓣 链接入口

麻烦可以添加豆瓣入口吗?
social:
douban:https:\www.douban.com
没有显示豆瓣的 icon

分类

请问怎么开启分类啊, categories: true 然后页面需要做哪些操作?

文章列表摘要如何自定义?

ERROR Script load failed: scripts/main.js
ReferenceError: document is not defined
    at Object.defineProperty.value (/Users/jiiiiiin/Documents/Atom/hexo/blog/scripts/main.js:1:532)
    at t (/Users/jiiiiiin/Documents/Atom/hexo/blog/scripts/main.js:1:172)
    at Object.defineProperty.value (/Users/jiiiiiin/Documents/Atom/hexo/blog/scripts/main.js:1:294)
    at t (/Users/jiiiiiin/Documents/Atom/hexo/blog/scripts/main.js:1:172)
    at /Users/jiiiiiin/Documents/Atom/hexo/blog/scripts/main.js:1:252
    at /Users/jiiiiiin/Documents/Atom/hexo/blog/scripts/main.js:1:257
    at /Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/hexo/lib/hexo/index.js:232:12
    at tryCatcher (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:638:18)
    at Promise._resolveCallback (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:432:57)
    at Promise._settlePromiseFromHandler (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:524:17)
    at Promise._settlePromise (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:693:18)
    at Promise._fulfill (/Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/promise.js:638:18)
    at /Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/bluebird/js/release/nodeback.js:42:21
    at /Users/jiiiiiin/Documents/Atom/hexo/blog/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
[master ad79678] Site updated: 2018-01-28 22:05:11

执行任何命令都先报这个错,但是还是可以正常执行。请问有遇到过么?

然后我还想问一下如果,文章列表不需要“摘要”能配置之后去掉么?

或者说能指定摘要内容?

It is a recommend Markdown edit for Hexo !

If you used Hexo, HexoEditor will be your choice !

Language: 🇺🇸 🇨🇳 🇷🇺

This is markdown editor for Hexo.

Built with Electron.

Inherit Moeditor, I want to fix it appropriate to Hexo Blog!

Features

  • HexoEditor
    • Hexo Post Preview same as in Browser
    • Hexo Tag/Filter/Renderer support
    • Custom tag support
    • Use Hexo _config.yml support
      • highlight setting
      • theme tag support
    • --------- v1.1.8 (2017-12-29) ---------
    • Quick New Post in hexo source
    • Quick Modify File Name (In Hexo Post Edit)
    • Shortcut Support
    • Editor Line number Show/Hide
    • Auto Show/Hide Scroll
    • Scorll Together/None
  • HexoEditor (Inherit Moeditor)
    • GitHub Flavored Markdown
    • TeX math expressions
    • UML diagrams
    • Code highlight in editor
    • Read/Write/Preview mode
    • Custom font / line height / font size
    • Custom themes
    • Code highlight themes (powered by highlight.js)
    • Auto reload
    • Localization
    • Focus mode

I want to add the theme to default theme settings and need your help !

Disqus 無法加載

作者您好,
我直接在主題的 _config.yml 中加入 disqus_shortname 卻出現加載失敗,
根據官方的建議,this.page.url 要設定成絕對路徑才行,

目前我暫時將disqus.ejs修改為
this.page.url = "http://aszx4510.github.io<%- url_for(page.path) %>";
目前可以正常運作了,可以參考我的blog
但這方法只是暫時的,
小弟我不熟 javascript,沒辦法幫忙修正,
麻煩你改為正確的語法囉 :D

white screen of death while deploying to gitlab

This is probably a gitlab specific issue, just posting here if anyone can help on this. hexo deploy throws the below error :
ERROR Plugin load failed: hexo-generator-json-content

however all npm commands ended with 'ok'.

很喜欢archer,非常棒,希望增加自定义功能

希望增加自定义字段设置:
1.每个界面设置顶部的banner显示和隐藏
2.顶部的banner高度
3.底部上一篇和下一篇文章的切换更换成箭头或者枚举
因为很喜欢,所以希望能采纳建议,谢谢!

"返回顶部"标签透明度问题

您好,我使用的是上一版(2/4之前)的模板,当我试图通过修改 _common.scss 文件,使“返回顶部”的标签也显示为半透明时,把
background-color: white;
修改为
background-color: rgba(255, 255, 255, 0.7);
然而最终是无效的。
请问正确的修改姿势是怎样的?
thanks

再问一下,文章分享是有开关设置的吗?

不好意思还有一个小问题,就是文章分享的功能貌似不能像demo那样显示一些分享渠道出来

</div>
--
  |  
  | <script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "1", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] \|\| body).appendChild(createElement('script')).src = "/static/api/js/share.js"];</script>
  | <div class="post-intro-meta">
  | <span class="post-intro-calander iconfont-archer">&#xe676;</span>
  | <span class="post-intro-time">2018/02/23</span>
  |  
  | <span id="busuanzi_container_page_pv" class="busuanzi-pv">
  | <span class="iconfont-archer">&#xe604;</span>
  | <span id="busuanzi_value_page_pv"></span>
  | </span>
  |  
  | <span class="shareWrapper">
  | <span class="iconfont-archer shareIcon">
  | &#xe601;
  | </span>
  | <span class="bdsharebuttonbox">
  | <a href="#" class="bds_more shareText" data-cmd="more">Share</a>
  | </span>
  | </span>
  | </div>
  |  
  | </div>
  | </div>

网页源码是这样的,配置文件好像也没有什么设置,找过issue也是改了bug,但是我好像第一次部署也没发现这个功能可以用

关于hexo-generator-json-content...

不好意思,刚开始接触hexo。。
按照文档安装了hexo-generator-json-content,在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
  posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true

然后查看网页源码的时候,在底部发现这一段:

‘’‘

--   | 缺失模块。
  | 1、请确保node版本大于6.2
  | 2、在博客根目录(注意不是archer根目录)执行以下命令:
  | npm i hexo-generator-json-content --save
  | 3、在根目录_config.yml里添加配置:   |
  | jsonContent:
  | meta: false
  | pages: false
  | posts:
  | title: true
  | date: true
  | path: true
  | text: false
  | raw: false
  | content: false
  | slug: false
  | updated: false
  | comments: false
  | link: false
  | permalink: false
  | excerpt: false
  | categories: false
  | tags: true
  |

’‘’

--   | 缺失模块。
  | 1、请确保node版本大于6.2
  | 2、在博客根目录(注意不是archer根目录)执行以下命令:
  | npm i hexo-generator-json-content --save
  | 3、在根目录_config.yml里添加配置:   |
  | jsonContent:
  | meta: false
  | pages: false
  | posts:
  | title: true
  | date: true
  | path: true
  | text: false
  | raw: false
  | content: false
  | slug: false
  | updated: false
  | comments: false
  | link: false
  | permalink: false
  | excerpt: false
  | categories: false
  | tags: true
  |

嗯。。。虽然此主题在使用上暂时没遇上什么问题。。

但是。。看着糟心啊。。

并且。。。。作者你的演示博客也是一样有这个问题。。请问怎么解决呢?还是说没影响呢。

浏览界面比例放大时,CATALOG与博文内容重叠问题

PC网页端阅读博文,放大浏览界面时,右边的CATALOG会和博文内容相交(交叠)在一起。当放大到一定比例时,右边的CATALOG才会消失。另外移动端sidebar用移动端chrome浏览器和小米浏览器会显示,但是UC和夸克浏览器并不能显示(注:UC和夸克的内核是一样的)

数学公式支持

你好,非常喜欢你的主题,但是有一个问题是怎么支持数学公式 mathjax 呢?我装了 hexo-math 还是不行。谢谢 😄

请问怎么才能增加latex公式支持啊

自己试着装了hexo-math包,结果类似这种$Y=X^2$的公式没有渲染,$$Y=x^2$$这种的就变成了<script type="math/tex; mode=display">J = 1/2m \sum_{i=1}^{m}[W^TX-Y]^2</script>这个样的,在页面中没有显示。看到页面中也有引用Mathjax.js,不知道为什么会这样……求帮助

大佬 最新版的hexo g有报错

INFO  Start processing
INFO  Files loaded in 578 ms
ERROR /home/cjj0596/hexo/themes/archer/layout/layout.ejs:25
    23|             <% } %>
    24|         </div>
 >> 25|         <%- partial('_partial/base-footer', {}, {cache: true}) %>
    26|     </div>
    27|     <!-- toc -->
    28|     <% if(is_post() && theme.toc) { %>

/home/cjj0596/hexo/themes/archer/layout/_partial/base-footer.ejs:5
    3|     <% if(theme.social) { %>
    4|     <div class="social">
 >> 5|         <%- partial('base-social') %>
    6|     </div>
    7|     <% } %>
    8|     <!-- powered by Hexo  -->

/home/cjj0596/hexo/themes/archer/layout/_partial/base-social.ejs:9
    7|                 <span class="iconfont-archer <%- name %>" title=<%- name %>>
    8|                   <% var path = theme.social[name] %>
 >> 9|                   <img class="profile-qr" src="<%- url_for(path) %>" />
    10|                 </span>
    11|             <% } else { %>
    12|                 <a href="<%- url_for(theme.social[name]) %>" class="iconfont-archer <%- name %>" target="_blank" title=<%- name %>></a>

path.substring is not a function
TypeError: /home/cjj0596/hexo/themes/archer/layout/layout.ejs:25
    23|             <% } %>
    24|         </div>
 >> 25|         <%- partial('_partial/base-footer', {}, {cache: true}) %>
    26|     </div>
    27|     <!-- toc -->
    28|     <% if(is_post() && theme.toc) { %>

/home/cjj0596/hexo/themes/archer/layout/_partial/base-footer.ejs:5
    3|     <% if(theme.social) { %>
    4|     <div class="social">
 >> 5|         <%- partial('base-social') %>
    6|     </div>
    7|     <% } %>
    8|     <!-- powered by Hexo  -->

过年前用的都好好的,最近更新了一次(我整个主题文件夹删了重新拉下来再配置)发现如上错误

更新主题的问题

主题作者如果对主题有新代码提交,除了重新下载整个代码,有木有更新的方法呢

表格和框图

您好,
我平常使用typora进行markdown的编辑,在创建博客的时候遇到了下面两个问题

  1. 表格的渲染有问题,没有边框
  2. 用mermaid做的框图无法渲染,不知道这个是不是需要另外的插件,试了一个hexo-tag-mermaid还是不行,不知道作者有没有打算支持mermaid
    希望您有空可以看一看,非常感谢您的工作,这个主题还是很nice的

移动端部分浏览器,顶部banner的标题不能显示,也没有蒙版

pull最新代码后,侧边栏确实正常啦 : -),比例放大也fix了。有个小提议:PC端在放大页面比例时,侧边栏会露出一小部分,然后缩回去(消失),不知道能不能优化一下放大页面比例时的体验。

另外,移动端部分浏览器(UC浏览器以及夸克浏览器),顶部banner的标题不能显示,也没有蒙版。如下图所示。未更新代码前,这两个浏览器可以正常显示。
screenshot_20171017-133318
screenshot_20171017-133311

下图为正常时的效果
screenshot_20171017-133432

修改问题

你好,

  1. 进入发布好了的文章之后下拉上拉,会有一个半透明的遮罩在最顶部,显示标题。我感觉整个页面的阅读空间被压缩了,怎么才能去掉这个功能呢?
  2. 可以自己改变首页或文章里面的字体么?
  3. 文章里面banner上的标题字体在哪里能调小么?因为如果标题太长久会显示不全了
  4. 页面最右侧感觉有一条缝

如何启用分享以及QR Code

我看到在 /layout/_partial/ 下是有 bae-share 和 base-qr-box 的,但是实际上我的 DEMO 上没有发现有启用到这两个,而且也没在文档说明怎么启用,请问一下相应的启用方法。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.