如何将块从哈巴狗模板移动source
到哈巴狗模板中theme
?
Hexo 新手。处理一个hexo-theme-bootstrap4-starterkit
主题。
使用 . 制作了一些哈巴狗模板pug -w index.pug
。试图将我的内容移出themes/bootstrap4-starterkit
和移入source
我的index.pug
文件是这样的:
extends themes/layout.pug
block scripts
script(src="//cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.min.js", crossorigin="anonymous")
block content
section#home
.jumbotron.mt-4
h1.display-4 Sooooooo Good!
该layout.pug
文件或多或少:
html(lang="en")
head
meta(charset='UTF-8')
...
block scripts
block opengraph
meta(name="description", content=page.summary||config.subtitle)
...
body
main#main.container
block content
footer
block footer
include _partial/footer