Total Pageviews

Thursday, 5 November 2026

利用instinct帮我分别在render/netlify/github pages平台上,安装基于nuxtjs的静态博客程序 blog-home-nuxt

 我用github a/c:brightmann@gmail.com分别登录render.com平台/netlify.com平台/github.com网站。

以下是我跟instinct的对话截图,共18张图。


 

 


















我得到的博客地址:
 https://blog-home-nuxt.onrender.com/
 https://brightmann-blog-home-nuxt.netlify.app/
 https://brightmann.github.io/blog-home-nuxt/

项目地址:

github.com/jiang-xia/blog-home-nuxt

github.com/brightmann/blog-home-nuxt 

instinct对blog-home-nuxt进行了大换血(大量改写代码),去除了其登录模块。不通过登录后台去创建帖子,而是在仓库github.com/brightmann/blog-home-nuxt里面创建源帖:

编辑 https://github.com/brightmann/blog-home-nuxt/blob/main/server/utils/mock-blog.ts . 在第228行的下一行,添加:

{
    id: 7,
    uid: 1, #保持不变
    title: '战马',
    description: '这是一篇文章',
    cover: '/images/covers/c3.svg',
    createTime: '2026-11-03T21:37:00.000Z',
    uTime: '2026-11-03T21:37:00.000Z',
    views: 215,
    likes: 12,
    commentCount: 0,
    top: 0,
    checked: 0,
    category: cat(1),
    tags: tags(1, 2, 3),
    userInfo: AUTHOR,
    content:
`<iframe width="713" height="401" src="https://www.youtube.com/embed/asKQbk7AcJU" title="崔伟立原唱《战马》完整版 歌曲旋律优美,句句入耳入心超好听" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`,
  },

 以后,如果还想创建新帖,则在上面这段的下一行添加类似的内容,仅需分别修改id/title/createTime/uTime/content的值。

创建源帖后,稍等2分钟,博客网站就会更新。

 

No comments:

Post a Comment