在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Gaohaoyang/gaohaoyang.github.io开源软件地址:https://github.com/Gaohaoyang/gaohaoyang.github.io开源编程语言:SCSS 44.5%开源软件介绍:About this Cool Concise Jekyll Blog ThemeContentPreviewFirst of all, let's see previews. Page DetailsHomeIndex 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 ArchivesArchive post according to the year. CategoriesShow posts according to the category. TagsShow posts according to the tags. CollectionsThe user can collect their favorite article links with DemoI use Masonry to rewrite the waterfall responsive layout. Better interactive experience. AboutThe user can write some introduction about theirselves and their site with CommentsThis 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 # comments
# two ways to comment, only choose one, and use your own short name
duoshuo_shortname: #xxx
disqus_shortname: xxx Post ContentsThe 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 HighlightWhile 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 ShadowYou can see the white shadow on the current item in the navbar. I call this light shadow. Mobile AdaptationOf course, I have done a very good mobile adaptation. FooterWelcome to use this blog theme, but please keep the theme author info at footer. Theme designed by HyG. Statistical AnalysisThis theme supports Google Analytics and Baidu Statistics, you can just config the id in the file # statistic analysis 统计代码
# 百度统计 id,将统计代码替换为自己的百度统计id,即
# hm.src = "//hm.baidu.com/hm.js?xxxxxxxxxxxx";
# xxxxx字符串
baidu_tongji_id: xxxxxxxxxxxx
google_analytics_id: UA-xxxxxxxx # google 分析追踪id UsageWelcome everyone to use this theme, this part shows introduction to use. 1. Install ruby and jekyll environmentThis 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:
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. 2. Copy theme codeYou can clone, download or fork this repo. 3. Change parameterMainly change the parameters at file Basic infoShows 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 infoMainly 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 infoGet your own 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 infoGet 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 postYou can write posts at folder
These follow code is for making contents.
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 # 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 launchuse command:
Terminal shows:
Visit localhost:4000 to see your blog!!! 6. Push to GitHubIf there is nothing wrong, push code to your github! DonateYou can also donate me for a coffee, and I'll do better. Thanks.
Update Log2017.2.282016.6.20
2016.5.11 v2.0.1
2016.4.27 v2.0.0
About my old blog theme, I won't maintain any more. And I put the code at Gaohaoyang/old-blog. License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论