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

866 B

title tags published categories abbrlink date cover
用Memos API实现hexo博客的动态说说页面
memos
Hexo
true 分享 286ad0c6 2023-06-13 15:57:00

新建一个页面

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>

即可~

代码来源于网络~