本站模板已开源
source link: https://inote.xyz/gatsby-starter-glass
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
本站模板已开源
2021-11-20・本站是利用 Gatsby 搭建的静态网站。
源码在 gatsby-starter-glass,欢迎试用。
- 包含 Waline 评论
- 包含谷歌分析
- Markdown 编辑
# 1. Clone 到本地
git clone https://github.com/xiyizhou/gatsby-starter-glass.git
# 2. cd 到目录
cd gatsby-starter-glass
# 3. 安装依赖
yarn install
# 4. 启动开发模式
yarn start
# 5. 构建生产版本
yarn build
gatsby-config.js
中配置网站信息,Google 分析 ID 等。src/components/header.js
中配置顶部导航栏信息。src/components/footer.js
中配置底部导航栏信息。src/components/comment.js
中配置 Waline 信息。
博客文章位于 content/blog
。模板如下:
---
title: 为 Gatsby 安装 Waline 评论组件
date: 2021-11-17 08:08
slug: gatsby-waline
category: 生活
tags:
- 生活
description: 由于 Waline 还没有 Gatsby 组件,通过安装 Waline 客户端库,创建 React 组件,并在合适的位置引入组件,在 gatsby 站点上添加 waline 评论功能。
---
Gatsby 是基于 reac t的静态网站构建框架,可以用来部署网上商城、官网和博客,利用丰富的插件可以实现图片懒加载、Markdown 文档支持、访客评论等功能。Gatsby 官方推荐的评论系统有 Disqus、Gitalk 等。
页面内容位于 content/pages
。
- 本 starter 基于 Gatsby V3,安装插件时注意版本兼容性。
- 主框架汉化自 gatsby-starter-glass,感谢 yinkakun。
Recommend
-
30
分享发现 - @Cipool - 亚马逊日本站 ( www.amazon.co.jp ) 在中国大陆受到 DNS 污染,无法正常存取。但亚马逊国际站( www.amazon.com) 未受影响。目前封锁原因尚不明了。
-
14
分享发现 - @per - 也是偶然逛知乎看到的,山东省的合村并居政策: https://www.zhihu.com/question/393313903 。---不知道论坛的各位尤其是山东人怎么看待呢?楼主就是山东
-
8
[声明]本站所有文章禁止转载 最近发现有好些个垃圾站直接全文抄袭本站的文章,请注意,本站此前的协议是“转载需注明作者及原链”,垃圾站直接抄文章不注明原链 是违反此协议的,自2020年1月10日12:00起,本站所有文章(包括以前的)都 禁止转载
-
12
包子啥汤no Pain no Gain no Gavin 用Yii2实现网站爬虫将bokee blog的旧博批量导入本站本人在国内最早的博客网站bokee.com有过一段时间的日志记录,现在看来虽然没...
-
10
包子啥汤no Pain no Gain no Gavin 用Yii2实现网站爬虫将bokee blog的旧博批量导入本站本人在国内最早的博客网站bokee.com有过一段时间的日志记录,现在看来虽然没...
-
7
个人志向, 志→目标 关于本人关于本站
-
3
本站千星开源项目——.NET万能框架:Masuit.Tools_2.4.3.6版本发布...
-
9
本站开源项目——基于EntityFrameworkCore和Lucene.NET实现的全文搜索引擎库_懒得勤快的博客_互联网分享精神博主当时在迁这个博客项目从.NET Framework到.NET Core的时候,发现Lucene.NET的API已经完全变了,之前的LuceneHelper自然就不能用了,于是临时使用了Sea...
-
6
本站项目源码,高性能低占用的博客系统,这也许是我写过的性能最高的web项目了。目前日均处理请求数200-600w次,同时在线活跃用户数30-100人,数据量累计已达到100多万条,数据库+Redis+网站主程序同时运行在一台2核4GB的机器上,浏览器页面请求秒级响应,CPU平...
-
2
既然是开源网站,那么本站的这个问答子系统开源了吗? ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK