Giter Site home page Giter Site logo

yenyuhsuan / hexo-theme-beantech Goto Github PK

View Code? Open in Web Editor NEW
439.0 8.0 105.0 13.17 MB

:sparkles: Ported theme of Hux Blog by Kaijun, Modified by YuHsuan :sparkles:

Home Page: http://beantech.org

License: Apache License 2.0

CSS 23.59% JavaScript 10.89% EJS 52.55% Stylus 12.96%

hexo-theme-beantech's Introduction

Ported Theme of Hux Blog, Thank Huxpro for designing such a flawless theme.

This BeanTech theme created by YuHsuan modified from the original Porter Kaijun

BeanTech Desktop

Usage

I publish the whole project for your convenience, so you can just follow the instruction down below, then you can easily customiz your own blog!

Let's begin!!!

Init

git clone https://github.com/YenYuHsuan/hexo-theme-beantech.git ./hexo-beantech
cd hexo-beantech
npm install

Modify

Modify _config.yml file with your own info. Especially the section:

Deployment

Replace to your own repo!

deploy:
  type: git
  repo: https://github.com/<yourAccount>/<repo>
  branch: <your-branch>

Sidebar settings

Copy your avatar image to <root>/img/ and modify the _config.yml:

sidebar: true    # whether or not using Sidebar.
sidebar-about-description: "<your description>"
sidebar-avatar: img/<your avatar path>

and activate your personal widget you like

widgets:         # here are widget you can use, you can comment out
- featured-tags
- short-about
- recent-posts
- friends-blog
- archive
- category

if you want to add sidebar widget, please add at layout/_widget.

Signature Setup

Copy your signature image to <root>/img/signature and modify the _config.yml:

signature: true   # show signature
signature-img: img/signature/<your-signature-ID>

Go to top icon Setup

My icon is using iron man, you can change to your own icon at css/image.

Post tag

You can decide to show post tags or not.

home_posts_tag: true

home_posts_tag-true

home_posts_tag: false

home_posts_tag-false

Markdown render

My markdown render engine plugin is hexo-renderer-markdown-it.

# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/wiki
markdown:
  render:
    html: true
    xhtmlOut: false
    breaks: true
    linkify: true
    typographer: true
    quotes: '“”‘’'

and if you want to change the header anchor 'ℬ', you can go to layout/post.ejs to change it.

async("//cdn.bootcss.com/anchor-js/1.1.1/anchor.min.js",function(){
        anchors.options = {
          visible: 'hover',
          placement: 'left',
          icon: 'ℬ'
        };
        anchors.add().remove('.intro-header h1').remove('.subheading').remove('.sidebar-container h5');
    })

Hexo Basics

Some hexo command:

hexo new post "<post name>" # you can change post to another layout if you want
hexo clean && hexo generate # generate the static file
hexo server # run hexo in local environment
hexo deploy # hexo will push the static files automatically into the specific branch(gh-pages) of your repo!

Have fun ^_^

Please Star this Project if you like it! Follow would also be appreciated! Peace!

hexo-theme-beantech's People

Contributors

yenyuhsuan 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

hexo-theme-beantech's Issues

How to hide the toc-nav-number ?

Depends on the user writing habit, some of u like to write title with numbers

1. H1

1-1 H2

but after generating toc, it'll number the title twice

1.1. H1
     1.1 1-1 H2

so create an on/off variable to show/hide toc-nav-number can be the solution

thx to @huweihuang for finding out this issue

Content's link show 'undefine'

The post widget 'sidebar' can list the toc of the article, but the end of the link show '#undefined', thus when I click the link, it can not slide to the right position of the article. Any one can tell me why please ?

Can tags and category stay together ?

Hi ,
Can tags and category stay together ?
When I turn on Tags, my source direction did not g direction Category.
And my blog page shows error that shows it can not find directory Category.

So can I turn on Tags and Category together ?
If yes,What should I do ?

Thanks.
Brs .

请问首页文章怎么自定义展示字数呢?

您的这个主题真的非常棒,我很喜欢。
但是在我以前用过的next主题,可以在文章里加入<!--more-->,这个之前的为文章的缩略,之后的就是全文。
举个例子:article.md

--
title: "test"
date: 2017-05-31 22:50:00
catalog: true
header-img: "img/header_img/Iron-Man-3.jpg"
subtitle: "test"
tags:
- hexo
catagories:
- hexo
---
首页展示部分

<!--more-->

正文

## 1.test1

blabla
## 2.test2
blabla

希望您能对这个提供支持。因为这样会显得主页非常简洁。

再次感谢您为我们提供这么优美的主题。

home主页的文章支持置顶功能

希望可以在page里面加个参数来设置是否置顶,默认为false不置顶。而置顶的文章根据置顶编辑的顺序显示在home主页上。
因为目前的文章是根据时间排序,即home主页显示的是最新的文章,但有时候想把主页的文章设置为推荐文章(置顶文章)而不是最新post的文章。谢谢!具体可参考我的博客home主页:http://www.huweihuang.com/

latex

请问怎么兼容latex表达呢

Toc feature seems not working

image
It does not scroll to the clicked header. It returns #undefined. I saw some issues which is similar to mine but they were written in Chinese (or sth like that), I can not understand what their meanings. So it is nice if you can clarify me again. Thank so much

/tags页面报错;文章页面下没有侧边内容导航widget

您好,很喜欢你的主题。但是在部署到我的博客上后,出现一些问题,我慢慢琢磨出了一些,但是还剩两个问题我苦思不得其解……希望您有空能帮我看下:

  1. https://hieverest.github.io/tags/ 页面报错,提示:
GET https://hieverest.github.com/js/jquery.tagcloud.js 
async	@	(index):776
(anonymous)	@	(index):803

造成tag_cloud呈现出现问题。我查看过你demo页面的代码,我们是一模一样的;

  1. 我设置了side-bar: true,但是打开文章时侧边栏没有文章内容导航,并且侧面有一个scroll bar,我测试了下去掉article标签可消除掉这个bar,但是文章内容导航还是不知道该如何设置。

具体您可以查看我的博客,谢谢!

Disqus Not Working

I created my site on disqus and configure what I am supposed to configure.

Is there anything I need to do other than putting my disqus-username inside the _config.yml?

archives页面会偶然性出现内容为空

主菜单archives 在执行hexo generate后 再执行hexo server验证页面,则发现会出现内容为空。
异常页面如下:

而正常的页面应该是以下内容:

Contents

Contents 长了以后就不显示了

hexo g命令无法生成css文件

使用其他theme情况下hexo g没问题,换到这个theme无法生成css文件,导致样式出不来,请问怎么回事呢?

push 到github. 但我repo没有代码

我在_config.yml 中修改了repo地址+branch。(我使用的ssh)
hexo clean && generate
hexo deploy.
之后 github 有文件目录。但是代码文件里面全为空

category page doesn't work.

Hi.
I just want to ask you one thing.
If I click the categorized word in index page (side bar), then the page just show all posts whether they are categorized or not.

Is there anything I missed while setting up the page?

文章内目录以及回到顶部出现问题

首先,感谢您提供这么漂亮的主题。
但是我在使用的过程中出现了一些问题。

文章内目录点击无法跳转,锚点变为 #undefined ,正常情况应该是#子标题,还有当页面向下滚动时,目录会随着页面内容滚动,不能始终保持在页面右侧。还有就是没有显示回到顶部的按钮,也就是展示页面中的iron man图标。

这些问题,我尝试了Google到的一些方法,但还是没能解决。我不知道哪里出了问题,以及如何有效地解决。

hexo版本信息 以及 package.json的内容

$ hexo version
hexo: 3.4.4
hexo-cli: 1.0.4
os: Linux 4.13.0-26-generic linux x64
http_parser: 2.5.0
node: 4.2.6
v8: 4.5.103.35
uv: 1.8.0
zlib: 1.2.8
ares: 1.10.1-DEV
icu: 55.1
modules: 46
openssl: 1.0.2g-fips
$ cat package.json 
{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.4.4"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-deployer-git": "^0.1.0",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-seo-friendly-sitemap": "0.0.20",
    "hexo-generator-tag": "^0.2.0",
    "hexo-renderer-ejs": "^0.2.0",
    "hexo-renderer-markdown-it": "^3.4.1",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0",
    "hexo-toc": "^1.1.0"
  }
}

希望能够得到您的帮助!

featured-tags

首頁的 featured-tags 一直都沒有標籤,
文章裡的tag跟tag頁都很正常

想請問有沒有人遇到此問題?

更改文章圖片位置

想請問一下,當新增一篇文章的時候,在_post裡面會新增文章與文章使用的圖片資料夾,因為使用Mweb設定拉圖時,他會新增圖片到到source下面的media,是否可以更改內文圖片預設的路徑到media呢?

Invite cooperation

I like the style of your blog very much. Can you develop a set of (free / paid) themes for cabloy-cms, and publish them in the cabloy store?

CabloyJS: is the Ultimate NodeJS Full-stack Business Development Platform, based on KoaJS + EggJS + VueJS + Framework7
Cabloy-CMS: is a CMS with the feature of static-dynamic combination based on the CabloyJS, which can quickly build web applications such as corporate websites, blogs, communities, and malls, etc.
Cabloy-Store: includes a wide range of modules to meet the development needs of different scenarios

CabloyJS Introduce: https://cabloy.com/articles/introduce.html
Cabloy-CMS Introduce: https://cabloy.com/articles/cms-introduce.html

Cabloy-Store Introduce: https://cabloy.com/articles/store.html

模板闭合标签写错

/beantech/layout/_widget/recent-posts.ejs 文件的 h5 闭合标签写错,导致样式错乱

Share Button

I'd like to add some share button (FB, QQ, Line, G+, Weibo......) beside to share the current post.
Does anyone recommend any library or API to use??
I will be grateful for any help you can provide, Peace 😄 !!

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.