Skip to content

MartinTeeVarga/Hacker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changelog

The following changes has been made to the original theme:

  • Replaced Hacker Red color with Blues
  • Replaced link to theme with the forked github
  • Made tags and categories links smaller

Open Source Love GPL Licence

Hacker is a simple blog theme focused on writing. In such a trend of complex typography, choose the return to origins, focusing on writing this matter.

The beginning is moyo created a theme of Wordpress , by DaraW transplanted to Hexo.

Demo

You can refer to my blog: DaraW

Installation

Firstly get the theme files, git clone or download zip both are ok.

Create a folder named Hacker in the folder themes, and copy all the theme files to the folder Hacker.

Then apply the theme in the hexo global configuration file _config.yml:

theme: Hacker

Now all are in order, just enjoy~

Notice: After every update, you'd better run command hexo clean to clean cache files before Hexo generating, in case of some problems cache files bring.

Configure

Enable comments and Google Analytics

In the theme configuration file _config.yml:

# duoshuo comment
duoshuo: true
duoshuo_name:

# disqus comment
disqus: false
disqus_shortname:

# google analytics
googleTrackId:

duoshuo: boolean, use duoshuo or not;
duoshuo_name: string, your duoshup ID, please don't use other people's IDs。

disqus: boolean, use disqus or not;
disqus_shortname: your disqus site shortname.

googleTrackId: your Google Analytics ID, Hacker will not use Google Analytics if it's empty.

Enable Categories and Tags pages

Categories Page: run hexo new page categories,then modify the generated file source/categories/index.md

title: categories
date: 2017-01-30 19:16:17
layout: "categories"
---  

If you need to close comments of this page , you can add a line comments: false; title corresponds to the title of the page.

Tags Page: run hexo new page tags,then modify the generated file source/tags/index.md

title: tags
date: 2017-01-30 19:16:17
layout: "tags"
---  

Configuration is the same as Categories Page.

Add links to the menu: Edit the _config.yml file of the theme, add Categories: /categories and Tags: /tags in menu like this:

menu:
  Home: /
  Archives: /archives
  Categories: /categories
  Tags: /tags

Update

v1.1.0

  • Add support for closing article comments (issue#14)
  • Add support for categories and tags (issue#7)

v1.0.1

  • fix incorrect comment link on the home page

v1.0

  • fix bug caused by subdirectory (issue#10)
  • fix display of code tag

v0.3.

  • Refactor ejs template files
  • Replace css with stylus
  • Add English Version README

v0.2

  • Remove some useless css
  • Fix bug that icon still shows when there are no categories or tags
  • Rewrite the archive index page
  • Change the display of code block

License

GNU GPL(General Public License) v2.0

About

A simple theme for Hexo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 57.1%
  • HTML 42.9%