Coder Social home page Coder Social logo

hexo-theme / hexo-theme-replica Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sabrinaluo/hexo-theme-replica

0.0 2.0 0.0 64 KB

:octocat:Github style replication for hexo theme

Home Page: http://sabrinaluo.github.io/tech

License: MIT License

HTML 38.14% CSS 52.29% JavaScript 9.57%

hexo-theme-replica's Introduction

Replica LICENSE MIT

Github style replication for hexo theme.

Just in case you are working in the office but suddenly have some genius ideas. ๐Ÿ’•
Click here to view the demo site

Issues & Contributions are welcome! ๐Ÿ˜›

Version

v1.0

Github UI before 2017, which uses the grey navbar

v2.0 (in progress)

Github UI in 2017, which uses the black navbar

Setup

Install

git clone [email protected]:sabrinaluo/hexo-theme-replica.git themes/replica

Configure

Set theme: replica in _config.yml (the one in your root folder)

PLEASE NOTE Modifying blog_root/themes/replica/_config.yml directly is NOT recommended.
It's suggested to configure your site through blog_root/_config.yml (root folder).

Here is a sample of blog_root/_config.yml

# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: My Blog
description: My Blog Description
author: HiiTea
language: zh-CN
timezone: Asia/Shanghai
favicon: https://assets-cdn.github.com/favicon.ico

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://sabrinaluo.com/tech
root: /tech/
permalink: :year/:month/:day/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :year:month:day-:title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace:

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 0
pagination_dir: page

# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: replica

# Google Analytics
ga: # GA code UA-XXXXXXXX-X

#marked setting for markdown
marked:
  gfm: true
  pedantic: false
  sanitize: false
  tables: true
  breaks: true
  smartLists: true
  smartypants: true

gcs: # GOOGLE CUSTOM SEARCH
baidutongji: # BAIDU TONGJI CODE
disqus: # DISQUS ID

location: Hong Kong
email: [email protected]

avatar: https://avatars2.githubusercontent.com/u/5300359?v=4&s=460
social:
  github: https://github.com/sabrinaluo
  weibo: http://weibo.com/206663121
  linkedin: 

Update

cd themes/replica
git pull

In case you want the old version with grey navbar

cd themes/replica
git checkout 1.0 # AKA `git checkout -b 1.0 origin/1.0`

Available Widgets

ๅคš่ฏด (Duoshuo stopped the service since June, 2017)
็™พๅบฆ็ปŸ่ฎก
Disqus
Google Analytics
Google Custom Search Engine1

License

The MIT License2

Copyright (c) 2015-2017 Hiitea [email protected]

Buy me coffee ๐Ÿ˜‹

BTC: 19U6USzi7WaFmY3DTkgn67EzYpTqZPNwRG
image

Alipay:
Alipay

Footnotes

  1. https://cse.google.com/ โ†ฉ

  2. https://opensource.org/licenses/MIT โ†ฉ

hexo-theme-replica's People

Contributors

sabrinaluo avatar

Watchers

 avatar  avatar

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.