Code Monkey home page Code Monkey logo

chawyehsu.com's Introduction

sponsors - blog - twitter - instagram - unsplash - wakatime - playlist

GitHub Stats

  • Working: for my life
  • Listening: mostly Aimer's songs and citypop music 🎵
  • Playing: retro games, roguelike games and Minecraft 🎮
  • Learning: photography and Japanese language sometimes 📖
  • Contact: via SNS (listed above), or send an email to me 📫
  • Fun fact: I transfer tea, instead of coffee, into codes 🤔

chawyehsu.com's People

Contributors

chawyehsu avatar dependabot-preview[bot] avatar dependabot[bot] avatar h404bi avatar imgbot[bot] avatar imyelo avatar kidonng avatar neverbehave avatar notos9312 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chawyehsu.com's Issues

[ga-lite] wrong information caught on navigate to another page

https://github.com/h404bi/www.h404bi.com/blob/cf38eb8c71bb21f67f03bfed12f3c4963b2a653a/packages/saber-plugin-ga-lite/saber-browser.js#L21

When the route loaded, the page info (e.g. title) have not yet changed, and ga-lite has already tried to fetch page information at that moment, which will catch last page's information.

Here is an example when I navigate from index to one of the blog: the document title is still from the previous page.

Screenshot_20200522_214209

[Optimization] Assets CDN via jsdelivr

We can use jsdelivr CDN to speed up loading of saber assets, for example:

# before (hosted by GitHub Pages directly)
https://www.h404bi.com/_saber/images/20180512002.d3d96233.gif
# after (hosted by GitHub Pages, speed up via jsdelivr CDN)
https://cdn.jsdelivr.net/gh/h404bi/www.h404bi.com@gh-pages/_saber/images/20180512002.d3d96233.gif
before after
20200418112017 20200418112035
Full speedtest report Full speedtest report

How to:
Option 1. develop a saber plugin that can change the public path prefix /_saber globally. Don't know whether can we do this. We did it! see: saber-plugin-jsdelivr-cdn (example)
Option 2. modify saber-plugin-image, so it can update image assets' path prefix. (only work with images assets)

change permalinks

Previous:

post: '/blog/:year/:month/:day/:slug.html'
page: '/:slug.html'

After:

post: '/blog/:year/:month/:slug'
page: '/:slug'

This is a BREAKING CHANGE, and I want to keep old permalinks to be accessiable for backwards compatibility. Need to configure Page Redirect, I can't use Nginx redirect on my web server, since the website backend has been migrated and deployed to Netlify... And it seems that the Page Rules service of CloudFlare can not satisfy my needs.

Feed: Restore the src of lazy loaded images

Current method: Using markdown-it-lazy-image to replace all images' src attribute to data-src attribute, then replace src with a placeholder. Finally loading those images when articles loads.

The problem: Actually it changes the article's content. The modified content spread through the RSS, and make RSS readers unhappy. Subscribers couldn't see all the images of the article since RSS readers don't have a lazyload feature.

20190520232619

DisqusJS issues

image

Moving from Netlify to Zeti Now

Reason: Zeti Now has better global CDN (Smart CDN), better Asia nodes such as HKG node.

  • Building workflow
  • Routing redirection
  • Netlify application deletion
  • Domain name transferring checkup and CDN edge checkup (waiting for NS/CDN refreshing)

请教一下部署问题

我是从 Topics 上搜索 Saber 后发现这个项目的

一开始我以为这是一个 Saber Theme,但之后立马发现并不是这样

然后我突然困惑了,我该如何使用该项目的 Saber Theme ?

如果我 Fork 或者 Clone 了这个项目,我该如何保证在填充自己的内容(文章,站点信息等)的同时使该项目的其他内容(主题配置等)和上游保持同步呢?合并上游不会产生很大冲突吗?

请赐教,谢谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.