hexo/source/_posts/博客的说说页面之Memos.md

43 lines
866 B
Markdown

---
title: 用Memos API实现hexo博客的动态说说页面
tags:
- memos
- Hexo
published: true
categories: 分享
abbrlink: 286ad0c6
date: 2023-06-13 15:57:00
cover:
---
新建一个页面
```
hexo new page Memos
```
修改`Memos/index.md`内容为
```
---
title: Memos
comments: false
date: 2023-06-07 14:17:13
---
<div class='memo-nums'>
<p class='note note-info memo-nums-text'>
共发布了 <span id="memosCount">不知道多少</span> 条说说
</p>
</div>
<div id="bber"></div>
<script type="text/javascript">
var bbMemos = {
memos : 'https://memos.ee/',
limit : '20',
creatorId:'1',
domId: '',
}
</script>
<script src="https://blogcdn.loliko.cn/memos2/js/marked.js"></script>
<script src="https://blogcdn.loliko.cn/memos2/js/talk.js"></script>
```
即可~
代码来源于网络~