Git Product home page Git Product logo

About this Cool Concise Jekyll Blog Theme 🤘🤘🤘

GitHub stars GitHub forks GitHub issues GitHub release GitHub license

中文版 Chinese README 请点击这里 🇨🇳

With the escalation of jekyll version, but I also want to reconstruct my older blog theme, so I did reconstruction and added some features recently. My new blog theme will still be stored in this repository. I will also use this theme in the future. Now I have done basically, then I will focus on issues that users opend to make theme better.

My Blog Url: http://gaohaoyang.github.io/. If you like this theme, you can give me a star to encourage me. Welcome everyone to use it.

Content

Preview

First of all, let's see previews.

Index Page index

Post Page post

Page Details

Home

Index page show 5 posts excerpt as a default. Readers can click article title or read more button to see full post. There are recent posts area, categories area and tags area at the right part of the index page. You can also add an area at this part, if you change the file index.html.

Archives

Archive post according to the year.

Categories

Show posts according to the category.

Tags

Show posts according to the tags.

Collections

The user can collect their favorite article links with markdown syntax.

Demo

I use Masonry to rewrite the waterfall responsive layout. Better interactive experience.

About

The user can write some introduction about theirselves and their site with markdown syntax.

Comments

This theme supports both disqus and 多说评论 duoshuo comments. It's very easy to config your comments module.

The only thing you need do is to change the short_name in the file _config.yml. As follows.

# comments
# two ways to comment, only choose one, and use your own short name
duoshuo_shortname: #xxx
disqus_shortname: xxx

Post Contents

The post contents is fixed at the right side while page is scrolling. There will be a scroll bar on contents while it is outside the window height.

Code Highlight

While the jekyll is update to 3.x.x, you can use github flavored markdown to write code.

More info to see syntax-highlighter-changed.

Light Shadow

light

You can see the white shadow on the current item in the navbar. I call this light shadow.

Mobile Adaptation

Of course, I have done a very good mobile adaptation.

mobile

Footer

Welcome to use this blog theme, but please keep the theme author info at footer. Theme designed by HyG.

footer

Statistical Analysis

This theme supports Google Analytics and Baidu Statistics, you can just config the id in the file _config.yml, as follows.

# statistic analysis 统计代码
# 百度统计 id,将统计代码替换为自己的百度统计id,即
# hm.src = "//hm.baidu.com/hm.js?xxxxxxxxxxxx";
# xxxxx字符串
baidu_tongji_id: xxxxxxxxxxxx
google_analytics_id: UA-xxxxxxxx # google 分析追踪id

Usage

Welcome everyone to use this theme, this part shows introduction to use.

1. Install ruby and jekyll environment

This step and Step 5 mainly talk to you how to launch blog at local. If you don't want to launch at local, you can ignore these 2 steps. But I still strongly suggest to do this. Ensure there is nothing wrong before pushing to the github.

The Windows users can directly use RubyInstaller to install ruby environment. Follow the prompts while installing.

Install jekyll commands:

gem install jekyll

For more details, you can view the jekyll official website. https://jekyllrb.com/

There may be something wrong at mac OS X El Capitan, you can see the solution at https://jekyllrb.com/docs/troubleshooting/#jekyll-amp-mac-os-x-1011.

If you are interesting in jekyll, you can see the jekyll source code at https://github.com/jekyll/jekyll.

jekyll logo

2. Copy theme code

You can clone, download or fork this repo.

3. Change parameter

Mainly change the parameters at file _config.yml and use your own favicon.ico.

Basic info

Shows at site header part.

# Site settings
title: HyG
brief-intro: Front-end Dev Engineer
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://gaohaoyang.github.io" # the base hostname & protocol for your site

Link info

Mainly shows at the footer of the site.

# other links
twitter_username: gaohaoyang126
facebook_username: gaohaoyang.water
github_username:  Gaohaoyang
email: [email protected]
weibo_username: 3115521wh
zhihu_username: gaohaoyang
linkedIn_username: gaohaoyang
dribbble_username:

description_footer: 本站记录我前端之旅的沿途风景!

Comments info

Get your own short_name:

Visit https://disqus.com/ or http://duoshuo.com/. And follow the prompts at the site.

# comments
# two ways to comment, only choose one, and use your own short name
duoshuo_shortname: #hygblog
disqus_shortname: xxxx

When you done, you can also see the comments info at disqus or duoshuo admin console.

Statistical analysis info

Get Google Analytics id or Baidu Statistics id:

Visit https://www.google.com/analytics/ or http://tongji.baidu.com/. And follow the prompts at the site.

Of course, if you don't want any statistical and analysis info, you can type nothing at id position.

# statistic analysis 统计代码
# 百度统计 id,将统计代码替换为自己的百度统计id,即
# hm.src = "//hm.baidu.com/hm.js?xxxxxxxxxxxx";
# xxxxx字符串
baidu_tongji_id: cf850xxxxxxxxxxxxxxxx
google_analytics_id: UA-7xxxxxx-4 # google 分析追踪id

When you done, you can see UV, PV, location etc. info at your own Google Analytics or Baidu Statistic console.

4. Write post

You can write posts at folder _posts. At the beginning of the post, you should declare layout、title、date、categories、tags、author(optional) info、mathjax(optional,click here for more detail about Mathjax).

---
layout: post
title:  "对这个 jekyll 博客主题的改版和重构"
date:   2016-03-12 11:40:18 +0800
categories: jekyll
tags: jekyll 端口 markdown Foxit RubyGems HTML CSS
author: Haoyang Gao
mathjax: true
---

These follow code is for making contents.

* content
{:toc}

You can use 4 wraps as a excerpt separator. The words before separator as excerpt show in the index page. When you enter the post page, you can read full article.

The wraps config is in the file _config.yml, as follows:

# excerpt
excerpt_separator: "\n\n\n\n"

You should use markdown syntax to write article, just like write readme in github.

You can use 3 ``` to write code block.

5. Local launch

use command:

jekyll s

Terminal shows:

Configuration file: E:/GitWorkSpace/blog/_config.yml
            Source: E:/GitWorkSpace/blog
       Destination: E:/GitWorkSpace/blog/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 6.33 seconds.
  Please add the following to your Gemfile to avoid polling for changes:
    gem 'wdm', '>= 0.1.0' if Gem.win_platform?
 Auto-regeneration: enabled for 'E:/GitWorkSpace/blog'
Configuration file: E:/GitWorkSpace/blog/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

Visit localhost:4000 to see your blog!!!

6. Push to GitHub

If there is nothing wrong, push code to your github!

Donate

You can also donate me for a coffee, and I'll do better. Thanks.

PayPal Wechat Pay Alipay
PayPal
Donate via PayPal
wechat alipay

Thanks these friends!!!

  • 2017.05.25 received Wechat user ¥1.00
  • 2017.05.19 received 风之筝 ¥6.66
  • 2017.05.16 received 张驰 ¥6.00
  • 2017.05.03 received 希成 ¥6.66
  • 2017.04.24 received deezer ¥10.00
  • 2017.04.13 received Abraham Xiao ¥30.00
  • 2017.04.11 received Wechat user ¥4.00
  • 2017.04.01 received Elvin Zeng ¥6.66
  • 2017.03.13 received Wechat user ¥6.66
  • 2017.03.04 received 史莱姆 ¥9.90
  • 2017.03.02 received 梦想小熊 ¥6.66
  • 2017.02.27 received 夏友杰 ¥6.66
  • 2017.02.26 received 兰缘小妖 ¥10.00
  • 2017.02.25 received Wechat user ¥6.66
  • 2017.02.22 received Wechat user ¥6.66
  • 2017.02.15 received Wechat user ¥10.00
  • 2017.02.06 received Light ¥10.24
  • 2017.01.15 received Wechat user ¥6.66
  • 2016.12.17 received HitNoah ¥12.00
  • 2016.12.09 received 情融 ¥6.60
  • 2016.11.25 received Wechat user ¥6.66
  • 2016.11.16 received Wechat user ¥1.00
  • 2016.10.24 received 奇峰 ¥6.66
  • 2016.10.21 received 旭廷 ¥10.00
  • 2016.09.25 received 鑫 ¥6.66
  • 2016.08.25 received Erlend Aakre $2.50
  • 2016.08.10 received Wechat user ¥4.40
  • 2016.07.25 received 邓炳初 ¥6.66
  • 2016.07.11 received 彦风 ¥6.66
  • 2016.07.07 received Klci ¥2.50
  • 2016.05.08 received 1057 ¥10.57
  • 2016.05.07 received 吴林 ¥2
  • 2016.04.29 received 北归 ¥10
  • 2016.04.28 received 魏楚阳_Brian ¥2
  • 2016.04.28 received 薛彬 ¥8.8

Update Log

2017.2.28

  • [^] fix smoothScroll bug in Tencent webview like wechat and qq. #22, #48

2016.6.20

  • [+] Add next post and previous post link in post page.
  • [^] Change the sort of font-family to avoid full-width half-width characters mistake.
  • [^] Fix bug in tags cloud when division by zero. #26, #28, #30

2016.5.11 v2.0.1

  • [^] Optimized code, Extracting common code to comments.html
  • [+] Add Google Analysis and Baidu Statistics
  • [+] Update README, add usage
  • [+] Add favicon.ico
  • [^] Fix bug at contents
  • [^] Change the content scroll bar CSS style(Only for webkit browser kernel)
  • [^] Change tag a color at demo page
  • [+] Add busuanzi counter, show the views count at footer
  • [+] Add back to top button

2016.4.27 v2.0.0

  • [^] Rewrite all codes based on jekyll 3.1.2
  • [+] Add excerpt at index page
  • [+] Add recently post, categories and tags cloud at index page
  • [+] Add light shadow at navbar
  • [+] Add archives, categories, tags page
  • [+] Add collections page
  • [+] Add comments plugin with disqus or duoshuo
  • [+] Mobile Adaptation
  • [+] Fix post contents to the right side while scrolling page
  • [+] Fix footer at the bottom when page height is smaller than window height
  • [^] Use github flavored markdown to write code block(Fenced code blocks)
  • [^] Rewrite the demo page with Masonry
  • [-] Remove jQuery and BootStrap

About my old blog theme, I won't maintain any more. And I put the code at Gaohaoyang/old-blog.

License

MIT License

jiyewhj's Projects

-- icon --

停车场系统源码,停车场小程序,智能停车,Parking system,【功能介绍】:①兼容市面上主流的多家相机,理论上兼容所有硬件,可灵活扩展,②相机识别后数据自动上传到云端并记录,校验相机唯一id和硬件序列号,防止非法数据录入,③用户手机查询停车记录详情可自主缴费(支持微信,支付宝,银行接口支付,支持每个停车场指定不同的商户进行收款),支付后出场在免费时间内会自动抬杆。④支持app上查询附近停车场(导航,可用车位数,停车场费用,优惠券,评分,评论等),可预约车位。⑤断电断网支持岗亭人员使用app可接管硬件进行停车记录的录入。 【技术架构】:后端开发语言java,框架oauth2+springboot2+dubble,数据库mysql/mongodb/redis,即时通讯底层框架netty4,安卓和ios均为原生开发,后台管理模板vue专业定制

accout_mange icon accout_mange

通用门店系统(外包项目) 已经完成所有主干功能 前端还可以优化 可拿去直接部署运行(附部分截图与前后端安装说明)

administrative-divisions-of-china icon administrative-divisions-of-china

中华人民共和国行政区划:省级(省份直辖市自治区)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会) ,**省市区镇村二级三级四级五级联动地址数据 Node.js 爬虫。

advanced-java icon advanced-java

😮 Core Interview Questions & Answers For Experienced Java(Backend) Developers | 互联网 Java 工程师进阶知识完全扫盲:涵盖高并发、分布式、高可用、微服务、海量数据处理等领域知识

amazing-qr icon amazing-qr

💮 amazing QRCode generator in Python (supporting animated gif) - Python amazing 二维码生成器(支持 gif 动态图片二维码)

android-common icon android-common

Android common lib, include ImageCache, HttpCache, DropDownListView, DownloadManager, Utils and so on

android-testing icon android-testing

A collection of samples demonstrating different frameworks and techniques for automated testing

androidautolayout icon androidautolayout

[停止维护]Android屏幕适配方案,直接填写设计图上的像素尺寸即可完成适配,最大限度解决适配问题。

androidone icon androidone

One整个框架为MVC模式搭建,基于android framework为核心,集成Android世界中的主流技术选型, 以Pragmatic风格的Android应用参考示例,是android项目最佳实践的总结与演示。 以“复杂的世界里,一个就够了”为理念,励志帮助Android开发人员快速搭建一个简单高效的android开发框架。

androidquickframework icon androidquickframework

快速搭建安卓项目,android项目框架,集成和改进了流行稳定的第三方项目,包括支付、轮播、图片加载剪切、网络请求、智能提示框等处理

androidslidinguppanel icon androidslidinguppanel

This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano.

appintro icon appintro

一款提供快速制作欢迎页的框架

badgeview icon badgeview

An extended TextView that mimics the iOS Springboard 'badges'. It can be overlaid on any other item.

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.