Skip to content

Commit

Permalink
chore: add files
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Mar 21, 2023
1 parent 36d23df commit c6ad327
Show file tree
Hide file tree
Showing 14 changed files with 577 additions and 42 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
sh.exe.stackdump

node_modules/

.cache/
.asset-cache/
.sass-cache/
_site/
Empty file removed _assets/javascripts/support_ie8.js
Empty file.
126 changes: 126 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
title: Your awesome title
description:
keywords:
tagline: Your site's slogan

author:
name: Your Name
email: [email protected]

collections:
# Auto-generated by KnoSys (https://knosysio.github.io/)
knosys:
output: true
permalink: /:path/
pages:
output: true
permalink: /:path/

# Handling Reading
exclude:
- .asset-cache
- .sass-cache
- .vscode
- node_modules
- build
- vendors
- src
- Rakefile
- Gemfile
- Gemfile.lock
- Gruntfile.coffee
- bower.json
- package.json
- package-lock.json
- CNAME
encoding: utf-8

# Plugins
gems:
- jekyll-assets
- jekyll-archives
- jekyll-feed
- jekyll-contentblocks
- jekyll-sitemap
- jekyll-seo-tag
- jekyll/tagging
- jekyll-tagging-related_posts
- jekyll_version_plugin

# Conversion
markdown: kramdown
highlighter: pygments

# Outputting
permalink: /posts/:title/
timezone: Asia/Shanghai

# YAML frontmatter
defaults:
# Defaults
- scope:
path: ""
values:
layout: default
# Auto-generated by KnoSys (https://knosysio.github.io/)
# - scope:
# path: ""
# type: knosys
# values:
# layout: page
# Pages
- scope:
path: ""
type: pages
values:
layout: page
# Posts
- scope:
path: ""
type: posts
values:
layout: post
css:
- pages/post
js:
- initializers/time
- initializers/lazyload
siblings: true



# =====
# Plugin-specific configurations
# =====

# Jekyll Archives
# https://github.com/jekyll/jekyll-archives
jekyll-archives:
enabled:
- categories
- tags
- year
layouts:
category: archive/category
tag: archive/tag
year: archive/year
permalinks:
category: "/categories/:name/"
tag: "/tags/:name/"
year: "/archives/:year/"

# Jekyll Feed
# https://github.com/jekyll/jekyll-feed
feed:
path: atom.xml



# =====
# Customized configurations
# =====

# Modules
module:
comment: false
share: true
14 changes: 14 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<footer class="Page-footer Footer">
<div class="{% if site.data.local.repos[page.repo] %}container-fluid{% else %}container{% endif %}">
<div class="Footer-description">
<!-- Important links -->
<nav class="Footer-navs">
<ul>
</ul>
</nav>
<!-- Copyright -->
<div class="Footer-copyright">
</div>
</div>
</div>
</footer>
11 changes: 11 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<meta charset="UTF-8">
<!-- SEO -->
{% include metadata/seo.html %}
<!-- 页面渲染兼容性 -->
{% include metadata/render.html %}
<!-- 订阅 -->
{% feed_meta %}
<meta name="theme-color" content="#0871ab">
<link type="application/rss+xml" rel="alternate" href="//{{ site.ourairyu.site.domain }}/rss.xml" title="{{ site.title }}">
<!-- 站点 icon -->
<link rel="icon" href="{{ 'favicon.ico' | asset_path }}">
21 changes: 21 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<header class="Page-header">
<div class="navbar navbar-static-top">
<div class="{% if site.data.local.repos[page.repo] %}container-fluid{% else %}container{% endif %}">
{% assign site_url = site.baseurl | prepend: site.url %}
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-target=".Page-navs" data-toggle="collapse">
<span class="sr-only">Toggle navs</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="{{ '/' | prepend: site_url }}" class="navbar-brand">{{ site.title }}</a>
</div>
<!-- Nav menus -->
<nav class="Page-navs navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
</ul>
</nav>
</div>
</div>
</header>
3 changes: 3 additions & 0 deletions _includes/metadata/render.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
Loading

0 comments on commit c6ad327

Please sign in to comment.