Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 10 additions & 10 deletions 404.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: default
title: "404: Page not found"
permalink: 404.html
---

<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}/">Head back home</a> to try finding it again.</p>
</div>
---
layout: default
title: "404: Page not found"
permalink: 404.html
---
<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}/">Head back home</a> to try finding it again.</p>
</div>
37 changes: 2 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,2 @@
# Zero Jekyll Theme

Zero a minimal two-column Jekyll theme based on bootstrap 3.

## Features

- Tags & Categories
- SideBar
- Table of Contents (support [Scrollspy](https://getbootstrap.com/docs/3.3/javascript/#scrollspy))
- Latex support (MathJax)
- Social icons
- Code block highlighting
- Mobile display

## Preview

See [Demo](https://lszero.github.io/).

* Index

![index](https://github.com/lszero/zero-theme/blob/master/img/demo-index.png)


* Post - Table of Contents

![Table of Contents](https://github.com/lszero/zero-theme/blob/master/img/demo-post.png)

## Usage

...





#This blog's theme is forked from https://github.com/lszero/zero-theme.git
Thanks to Iszero
111 changes: 55 additions & 56 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,55 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: intzero's Blog
author: intzero
email: intzero@outlook.com
description: > # this means to ignore newlines until "baseurl:"
程序媛/小硕/外协/折腾/技术宅
url: http://lszero.com # the base hostname & protocol for your site, e.g. http://example.com
sitesearchurl: lszero.github.io
baseurl: "" # the subpath of your site, e.g. /blog

# Markdown Processors
markdown: kramdown

plugins:
- jekyll-paginate
paginate: 5
paginate_path: "/pages:num/"

mathjax: false

excerpt_separator: <!-- more -->

permalink: /:categories/:title.html

social_media:
github_url: https://github.com/lszero
weibo_url: http://weibo.com/u/2313016370
zhihu_url: https://www.zhihu.com/people/lszero
twitter_url: https://twitter.com/_lszero
lofter_url: http://intzero.lofter.com/

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: mggumin's Blog
author: mggumin
email: mggumin@gmail.com
description: > # this means to ignore newlines until "baseurl:"
程序媛/小硕
url: http://mggumin.github.io # the base hostname & protocol for your site, e.g. http://example.com
sitesearchurl: mggumin.github.io
baseurl: "" # the subpath of your site, e.g. /blog

# Markdown Processors
markdown: kramdown

plugins:
- jekyll-paginate
paginate: 5
paginate_path: "/pages:num/"

mathjax: false

excerpt_separator: <!-- more -->

permalink: /:categories/:title.html

social_media:
github_url: https://github.com/mggumin
#weibo_url: http://weibo.com/u/2313016370
csdn_url: https://blog.csdn.net/ggmmnii


# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
# exclude:
# - Gemfile
# - Gemfile.lock
# - node_modules
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
30 changes: 15 additions & 15 deletions _includes/comments.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!-- Gitment -->
<div id="container"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
var gitment = new Gitment({
id: '页面 ID', // 可选。默认为 location.href
owner: 'lszero',
repo: 'lszero.github.io',
oauth: {
client_id: '5cbd280dd9b27339aee6',
client_secret: '18164941d46a714a7577cb7d14e642936ad2ac16',
},
})
gitment.render('container')
<!-- Gitment -->
<div id="container"></div>
<link rel="stylesheet" href="https://imsun.github.io/gitment/style/default.css">
<script src="https://imsun.github.io/gitment/dist/gitment.browser.js"></script>
<script>
var gitment = new Gitment({
id: '页面 ID', // 可选。默认为 location.href
owner: 'mggumin',
repo: 'mggumin.github.io',
oauth: {
client_id: '7985b5edb5c0816718e5',
client_secret: '2bb8c5e9ebaba8ae0264733e67bde76e98f3391a',
},
})
gitment.render('container')
</script>
8 changes: 4 additions & 4 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="footer">
<div class="copyright">
Copyright &copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time> <a href="{{ site.url }}">{{ site.author }}</a> | Powered by <a href="https://github.com/jekyll/jekyll">Jekyll</a> | Designed by <a href="{{ site.url }}">{{ site.author }}</a>
</div>
<footer class="footer">
<div class="copyright">
Copyright &copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time> <a href="{{ site.url }}">{{ site.author }}</a> | Powered by <a href="https://github.com/jekyll/jekyll">Jekyll</a> | Designed by <a href="{{ site.url }}">{{ site.author }}</a>
</div>
</footer>
102 changes: 51 additions & 51 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>
{% if page.title == "Home" %}
{{ site.title }} &middot; {{ site.tagline }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
</title>

<!-- Bootstrap -->
<link rel="stylesheet" href="/assets/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="/assets/font-awesome/css/font-awesome.min.css">
<!-- My CSS -->
<link rel="stylesheet" href="/assets/main.css">

<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
},
tex2jax: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true,
}
});
</script>
{% if page.mathjax %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
{% endif %}

<!-- code highlighting-->
<link rel="stylesheet" href="/lib/highlight/styles/hybrid.css">
<script src="/lib/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>hljs.configure({ ignore: ['text'] });</script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>
{% if page.title == "Home" %}
{{ site.title }} &middot; {{ site.tagline }}
{% else %}
{{ page.title }} &middot; {{ site.title }}
{% endif %}
</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="/assets/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="/assets/font-awesome/css/font-awesome.min.css">
<!-- My CSS -->
<link rel="stylesheet" href="/assets/main.css">
<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: {
autoNumber: "AMS"
}
},
tex2jax: {
inlineMath: [ ['$','$'] ],
displayMath: [ ['$$','$$'] ],
processEscapes: true,
}
});
</script>
{% if page.mathjax %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
{% endif %}
<!-- code highlighting-->
<link rel="stylesheet" href="/lib/highlight/styles/hybrid.css">
<script src="/lib/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>hljs.configure({ ignore: ['text'] });</script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
Loading