npm install, concerns for me

Tutorials / Web Notes

2018.04.14

npm install, concerns for me

While learning Node.js, install packages is a commonly operation. However, as a newbie, I might install the packages not in the right way. So taking this note to refresh my mind on npm installs.

Contact form for a static site without a backend

Tutorials / Web Notes

2018.03.24

Contact form for a static site without a backend

For a static site like those on GitHub Pages, everything is done in the frontend. The user just downloads a bunch of static files that execute in their browser. But for a "Contact" form, to deal with the submissions we typically need a backend service, either self hosted or a third a third-party service.

JS 本地数据存储之 cookie

JavaScript Notes / Web Notes

2018.03.09

JS 本地数据存储之 cookie

本来只是想简单看看 cookie、localStorage 和 sessionStorage 的,没想到一搜索扩展了很多知识,但是,中心主题还是集中在 web storage (localStorage, sessionStorage) 的认识上,以及怎么使用它们。不过,在此之前,先来简单认识一下 cookie 吧。

中文网页字体设置

Web Notes

2018.03.01

中文网页字体设置

由于中文字体通常体积较大,在 web 中使用中文字体确实需要一些技巧。我也一直在纠结使用什么样的字体能有更好的阅读体验,鼓捣过 Typekit 加载思源宋体,可难免会拖慢加载速度,有时还不能成功加载,只能换回系统内置字体。今天就好好研究下网页字体的使用,一劳永逸!

Bootstrap cards for showing colours

Web Notes

2017.11.06

Bootstrap cards for showing colours

A few days ago, I built a website for showing traditional Chinese colours with bootstrap cards. Several issues I encountered during this process, just write them down for records.

为页面自动添加二维码

Web Notes

2017.09.27

为页面自动添加二维码

很早之前我也在博客分享按钮里面添加过二维码,后来换了模板就舍弃了。这次修改这个博客主题,又尝试加回来,鼓捣鼓捣也可以扫一扫了!

简化博客部署

Web Notes

2017.09.24

简化博客部署

利用 GitLab CI 简化博客部署流程,和 GitHub Pages 加 Travis CI 的搭配一样,只需推送 git 即可部署到 Firebase。

Ads by Google
Ads by Google
logout