/ 默认 / 96浏览

教程:博客独立页面调用 Memos 的方法

文章目录

// 2023.8.22更新

集成

集成到自己的网站,在合适的位置需要放置一个 CSS 选择器作为展示 Memos 的容器。

引入CSS和JS










独立网页

演示地址

https://blog.chaihu.top/memos/

fork参考项目

修改index.html

        var memos = {
            host: 'https://memos.ee/',  // Your Memos, with '/' end.
            limit: '20',  // Pagination to show.
            creatorId: '1',  // The old instance is 101, and the new instance is 1.
            domId: '#memos',  // Default #memos.
            username: 'jkjoy',  // You can customize the display ID that is not related to memos.
            name: '浪子',  // You can customize the displayed full name, that is not related to memos.
        }

其中host creatorId username name的值.

setting github pages

github.png
如上图设置即可.

老孙
这个人很懒什么也没有留下
迷思
为Memos增加twikoo评论
群晖docker出现注册表无法访问的解决办法
群晖docker出现注册表无法访问的解决办法
X-UI:支持多协议多用户的 xray 面板
青龙面板使用的所需依赖安装
青龙面板一键安装所需依赖

0

  1. This post has no comment yet

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注