About the "about"
lartpang opened this issue · 7 comments
lartpang commented
win8
Why?
ERROR D:\GIT\lart-hexo\themes\SK\layout\about.ejs:1
>> 1| <%- partial('_partial/about') %>
D:\GIT\lart-hexo\themes\SK\layout\_partial\about.ejs:32
30| <div class="row col-md-offset-2">
31| <div class="col-md-8">
>> 32| <h1><%- post.title %></h1>
33| </div>
34| </div>
35| <div class="col-md-8 col-md-offset-2">
post is not defined
ReferenceError: D:\GIT\lart-hexo\themes\SK\layout\about.ejs:1
>> 1| <%- partial('_partial/about') %>
D:\GIT\lart-hexo\themes\SK\layout\_partial\about.ejs:32
30| <div class="row col-md-offset-2">
31| <div class="col-md-8">
>> 32| <h1><%- post.title %></h1>
33| </div>
34| </div>
35| <div class="col-md-8 col-md-offset-2">
post is not defined
Here is my config.yml
# config
cover: /img/bg_img.jpg
logo: /img/logo.png
top_saying:
- title: YOU'VE MADE A <span>BRAVE</span> DECISION, WELCOME.
- content: 每一个不曾起舞的日子都是对生命的辜负。
bottom_saying: 虽然还没想好写点什么,但是总觉得这里放句话比较和谐。
# Content
excerpt_link: Read More
rss: /atom.xml
highlightjs: vs
#Works
works:
- works_name: AAA
works_url: /
- works_name: BBB
works_url: /atom.xml
#duoshuo name
duoshuo:
#disqus name
disqus_shortname:
#fancybox
fancybox: true
# Miscellaneous
github: https://github.com/lartpang
twitter:
facebook:
google:
weibo: https://weibo.com/140jmx
#about timeline
timeline:
- num: 1
word: 2014/06/12-Start
- num: 2
word: 2014/11/29-XXX
- num: 3
word: 2015/02/18-DDD
- num: 4
word: More
#Links
links:
- name: Kieran
link: http://go.kieran.top/
- name: lartpang
link: http://lartpang.github.io/
# Local search
# Dependencies: https://github.com/flashlab/hexo-generator-search
local_search:
enable: true
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 2
this is my about file
---
title: about
date: 2018-5-6 23:13:47
layout: about
---
> 欢迎来撩:lartpang@163.com
SuperKieran commented
about.md
> 欢迎来撩:lartpang@163.com
lartpang commented
@SuperKieran I'm sorry, I don't understand it. This is my current file.
SuperKieran commented
去掉上面的
---
title: about
date: 2018-5-6 23:13:47
layout: about
---
lartpang commented
抱歉,主要是,和之前用的主题的设置不一样。
感谢。
lartpang commented
SuperKieran commented
移到 source/ 下
lartpang commented
已解决,非常感谢。