--- title: "教程:博客独立页面调用 Memos 的方法" slug: "memos-api-call-rendering-page" date: 2023-05-09T06:08:00.000Z categories: - 分享 tags: - memos --- // 2023.8.22更新 ## 集成 集成到自己的网站,在合适的位置需要放置一个 CSS 选择器作为展示 Memos 的容器。 ```
``` 引入CSS和JS ``` ``` ## 独立网页 ### 演示地址 https://m.sunpeiwen.com/ ### 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][1] 如上图设置即可. [1]: https://blogcdn.asbid.cn/2023/05/09/1683614532.png