SuperKieran/TKL

About the "about"

lartpang opened this issue · 7 comments

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

about.md

> 欢迎来撩:lartpang@163.com

@SuperKieran I'm sorry, I don't understand it. This is my current file.

image

去掉上面的

---
title: about
date: 2018-5-6 23:13:47
layout: about
---

抱歉,主要是,和之前用的主题的设置不一样。

感谢。

我按照您说的方式修改了 D:\GIT\lart-hexo\source_posts\about.md

为了测试,我直接用

### About Me
write something

但是我这样 hexo g 生成的文件
image
被存放到了public的2018的文件夹里,这就必然使得我无法使用 lartpang.github.io/about.html 这个地址来显示about页面。

我的理解对么?

那请问该如何解决?

移到 source/ 下

已解决,非常感谢。