提交 3c4a041b 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

init

上级
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
node_modules/*
*.log
.vscode
\ No newline at end of file
# html lang
language:
- zh-CN
- en
# main menu navigation
menu:
home: /
archives: /archives
categories: /categories
about: /about
# favicon
favicon:
# in theme directory(source/imgs)
normal: /imgs/favicon.ico
# social links
social:
GitHub: https://github.com/liuyib && github
Segmentfault: https://segmentfault.com/u/liuyib && segmentfault
# sidebar avatar
# in theme directory(source/imgs)
avatar: /imgs/my_favorite.jpg
# catalog of article in the sidebar
catalog:
enable: true
# PWA
# see https://github.com/JLHwung/hexo-offline
pwa:
enable: false
manifest: /manifest.json
# stylesheets loaded in the <head>
stylesheets:
- /css/index.css
# scripts loaded in the end of the body
scripts:
- /js/index.js
# copyright
post_copyright:
enable: true
license: CC BY-NC-SA 4.0
license_url: https://creativecommons.org/licenses/by-nc-sa/4.0/
# comments
# disqus
disqus:
enable: false
# busuanzi count for PV / UV in site
busuanzi:
# count values only if the other configs are false
enable: true
# custom uv span for the whole site
site_uv: true
site_uv_header: <i class="fa fa-user"></i>
site_uv_footer:
# custom pv span for the whole site
site_pv: true
site_pv_header: <i class="fa fa-eye"></i>
site_pv_footer:
# custom pv span for one page only
page_pv: true
page_pv_header: <i class="fa fa-file"></i>
page_pv_footer:
# canvas ribbon
# see: https://github.com/hustcc/ribbon.js
canvas_ribbon:
enable: false
size: 150
alpha: 0.6
zIndex: -1
click_to_change: false
title:
archive: Archive
category: Category
tag: Tag
menu:
home: Home
archives: Archives
categories: Categories
tags: Tags
about: About
search: Search
sidebar:
overview: Overview
catalog: Catalog
post:
created: Post Created
modified: Post Modified
posted: Posted on
sticky: Sticky
read_more: Read more
untitled: Untitled
visitors: Visitors
word_count: Word count
read_time: Reading time
copyright:
author: Post Author
link: Post Link
license_title: Copyright
license_content: 'All articles in this blog are licensed under
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally'
footer:
powered: 'Powered by %s'
theme: Theme
\ No newline at end of file
title:
archive: 归档
category: 分类
tag: 标签
menu:
home: 首页
archives: 归档
categories: 分类
tags: 标签
about: 关于
search: 搜索
sidebar:
overview: 站点概览
catalog: 文章目录
post:
created: 创建于
modified: 更新于
posted: 发表于
sticky: 置顶
read_more: 阅读全文
untitled: 未命名
visitors: 阅读次数
word_count: 字数统计
read_time: 阅读时长
copyright:
author: 本文作者
link: 本文链接
license_title: 版权声明
license_content: '本博客所有文章除特别声明外,均采用
<a href="%s" rel="external nofollow" target="_blank">%s</a> 许可协议。转载请注明出处!'
footer:
powered: ' %s 强力驱动'
theme: 主题
\ No newline at end of file
extends includes/layout.pug
block content
- var categoriesList = list_categories({ show_count: false })
- var tagsList = list_tags({ show_count: false })
- var archivesList = list_archives({ show_count: false })
div.archive
if !is_year()
h1 Archives
if theme.atom
p The feed is available via&nbsp;
a(href=theme.atom) atom
span .
br
aside
h2 Categories
if categoriesList
!= categoriesList
else
p None.
br
aside
h2 Tags
if tagsList
!= tagsList
else
p None.
br
aside
h2 Archives
if archivesList
!= archivesList
else
p None.
br
else
h1= page.month + '/' + page.year
- page.posts.each(function(article){
.archive-list-item
a(href=url_for(article.path))= article.title
time(datetime=date_xml(article.date))= date(article.date)
- })
#paginator!= paginator()
extends includes/layout.pug
block content
#category
h1= page.category
- page.posts.each(function(article){
.category-item
a(href=url_for(article.path))= article.title
time(datetime=date_xml(article.date))= date(article.date)
- })
#paginator!= paginator()
- var pageTitle = page.title || config.subtitle || ''
- if (is_archive()) pageTitle = 'Archives'
- if (is_tag()) pageTitle = 'Tag: ' + page.tag
- if (is_category()) pageTitle = 'Category: ' + page.category
- if (is_month()) pageTitle += ': ' + page.month + '/' + page.year
- if (is_year()) pageTitle += ': ' + page.year
- pageTitle += config.title
doctype html
html(lang=config.language)
head
meta(charset='UTF-8')
title= pageTitle
if theme.stylesheets !== undefined && theme.stylesheets.length > 0
//- stylesheets list from _config.yml
each url in theme.stylesheets
link(rel='stylesheet', href=url)
body
#menu-outer
nav#menu-inner
each url, label in theme.menu
a(href=url)= label
#content-outer
#content-inner
if body
div!= body
else
block content
#bottom-outer
#bottom-inner
span Site construction by
span= ' ' + config.author + ' '
span using
a(href='http://hexo.io')
span hexo blog framework
span .
br
a(href=config.root) Home
if theme.scripts !== undefined && theme.scripts.length > 0
//- scripts list from config.yml
each url in theme.scripts
script(src=url)
script
//<![CDATA[
document.write("<script async src='http://HOST:3000/browser-sync/browser-sync-client.js?v=2.26.5'><\/script>".replace("HOST", location.hostname));
//]]>
if page.posts.length > 0
#recent-posts
h1 Recent Posts
each post in page.posts.sort('date', -1).limit(10).toArray()
.recent-post-item
a(href=url_for(post.path))= post.title
if post.date
time(datetime=post.date.toJSON())= date(post.date, date_format)
extends includes/layout.pug
block content
include includes/recent-posts.pug
#paginator!= paginator()
extends includes/layout.pug
block content
article#page
h1= page.title
!= page.content
#paginator!= paginator()
extends includes/layout.pug
block content
article#post
h1= page.title
!= page.content
#paginator!= paginator()
extends includes/layout.pug
block content
div#tag
h1= 'Tag: ' + page.tag
- page.posts.each(function(article){
a(href=url_for(article.path))= article.title
time(datetime=date_xml(article.date))= date(article.date)
br.clear
- })
#paginator!= paginator()
此差异已折叠。
{
"name": "hexo-theme-stun",
"version": "0.0.1",
"description": "a gorgeous blog theme - stun",
"homepage": "https://liuyib.github.io",
"scripts": {
"test": ""
},
"repository": {
"type": "git",
"url": "https://github.com/liuyib/hexo-theme-stun"
},
"keywords": [
"stun",
"Hexo"
],
"author": "liuyib",
"license": "MIT",
"bugs": {
"url": "https://github.com/liuyib/hexo-theme-stun/issues"
},
"devDependencies": {}
}
console.log('scripts test');
\ No newline at end of file
body
margin 0
padding 0
background #eee
#menu-outer
width 100%
height 70px
border 1px solid #fc0
#menu-inner
width 100%
height 100%
line-height 70px
#menu-inner a
margin 8px
\ No newline at end of file
console.log('hello world');
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册