Art is not what I create,what I create is chaos.
Framer Motion 学习手册
Framer Motion 是一个强大的 React 动画库,通过 Framer Motion 可以设计并实现流畅的动画效果。
Framer Motion 的优点是能够轻松实现令人惊叹的动画效果。
Gatsby 踩坑记录
记录一下过程过后整理:
- 安装 gatsby-cli
- 生成 starter 模板
- 安装 gatsby-source-filesyetem gatsby-transform-remark
Django 在使用模块时出现编码错误的解决方法
最近在学习 Django 在使用模块时遇到了编码错误
进入页面会显示:
A server error occurred. Please contact the administrator.
攀登蔚蓝山
《蔚蓝》(Celeste) 应该说是我 2018 玩过最棒的游戏了。
《蔚蓝》讲述了女主人公 Madeline 以自己也不知道的目的攀登塞莱斯特山 (Celeste Mountain),期间她遇见各种古怪的人和事,她一步步攀登最…
为网站内容添加Expires标头
Apache 服务器添加 Expires 标头的办法:
编辑.htaccess 文件,添加以下内容,告诉浏览器要缓存哪些类型的文件。
ExpiresActive On
# Images
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
# Video
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/mpeg "access plus 1 year"
# CSS, JavaScript
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
# Others
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"