Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
a sunny day
Create a new post
$ hexo new "My New Post"
More info: Writing
Run server
$ hexo server
More info: Server
Generate static files
$ hexo generate
More info: Generating
Deploy to remote sites
$ hexo deploy
More info: Deployment
Mathematical formula
${V = \left\lbrace v_{0}, v_{1}, …, v_{n} \right\rbrace}$ is a vertex set, where:
Using Mathjax
{% mathjax %}
{V = \left\lbrace v_{0}, v_{1}, …, v_{n} \right\rbrace}
{% endmathjax %}
before using mathjax: ${V = \left\lbrace v_{0}, v_{1}, …, v_{n} \right\rbrace}$ is a vertex set, where:
after using mathjax:
const input = [
{ name: 'lorem', item: 'ipsum' },
{ name: 'per', item: 'doming' },
{ name: 'dolor', item: 'lorem' },
{ name: 'usu', item: 'pericula' }
]
Douban Books Display
idouban: 一个在网页中嵌入个人豆瓣页面的 javascript 插件。
配置项如下:
- selector : 表示需要将相关代码生成后嵌入到指定 document.querySelector($selector) 下。
- type : 表示需要生成的页面类型,可选项为 book, movie, game, song。
- douban_id : 你的豆瓣ID(纯数字格式,不是自定义的域名)。获取方法可以参考怎样获取豆瓣的数字ID?。
- page_size : 每页需要展示的条目数。
all u need to do:
- new folder
douban, and add aindex.md, such assource/douban/index.md - copy the follow content in
index.md
---
title: 书架
date: 2023-01-01 19:51:13
comments: false
permalink: /douban.html
---
<body>
<div id="douban"></div>
</body>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/idouban/dist/main.css"/>
<script src="https://cdn.jsdelivr.net/npm/idouban/dist/main.js" onload="window.idouban.init({
selector: '#douban',
type: 'book',
douban_id: 184xxxxxx,
page_size: 15,
})">
</script>
- 本文作者: ICU
- 本文链接: https://www.awayanan.wang/posts/4a17b156.html
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!
Sci Hub
Code With Me
Marxists