diff --git a/README.md b/README.md index b76d988..684e496 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ - Installed [hexo-nofollow](https://github.com/curbengh/hexo-nofollow) for SEO purpose to prevent search engines from following external links. - Installed [hexo-yam](https://github.com/curbengh/hexo-yam) to pre-compress static assets (html, css, js and svg). - [copy-button.js](/scripts/copy-button.js) - A [filter](https://hexo.io/api/filter) plugin to add a copy button to each code block. -- [feed](/scripts/feed) - A generator plugin to generate [an RSS feed](https://en.wikipedia.org/wiki/Web_feed). Modified from [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed) to use `post.lastUpdated` instead of `post.updated`. +- [feed](/scripts/feed) - A generator plugin to generate [an RSS feed](https://en.wikipedia.org/wiki/Web_feed). Modified from [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed) to use `post.updated` instead of `post.updated`. - [heading-link.js](/scripts/heading-link.js) - A filter plugin to add a link button next to each heading. - [image.js](/scripts/image.js) - A [tag](https://hexo.io/api/tag) plugin to easily embed images in a post with responsive image support. - [link.js](/scripts/link.js) - A [helper](https://hexo.io/api/helper) plugin to add a link. Modified from [link_to.js](https://github.com/hexojs/hexo/blob/master/lib/plugins/helper/link_to.js) to remove title attribute and 'external' option. @@ -25,6 +25,7 @@ The following are the major changes I made compared to the upstream. - Removed unused packages, [hexo-generator-category](https://github.com/hexojs/hexo-generator-category) and [hexo-renderer-stylus](https://github.com/hexojs/hexo-renderer-stylus) from the [default packages](https://github.com/hexojs/hexo-starter/blob/571320ba41a83e065d7560e050eb3fa63ad74a57/package.json#L9-L17). - Replaced the bundled Landscape theme with Typing theme. - Add `lastUpdated` to the front-matter to manually set updated time of a post, instead of using `post.updated`. + * This is no longer necessary, thanks to [`updated_option`](https://github.com/hexojs/hexo/pull/4278) feature. ### [Chameleon theme](/themes/chameleon) Chameleon is a fork of [Typing](https://github.com/geekplux/hexo-theme-typing) theme, rewrote from scratch with the following changes/features: diff --git a/_config.yml b/_config.yml index bb2b764..a3ca27f 100644 --- a/_config.yml +++ b/_config.yml @@ -63,6 +63,7 @@ tag_map: ## http://momentjs.com/docs/#/displaying/format/ date_format: YYYY-MM-DD time_format: HH:mm:ss +updated_option: empty # Pagination ## Set per_page to 0 to disable pagination diff --git a/source/_posts/aliexpress-no-login-firefox.md b/source/_posts/aliexpress-no-login-firefox.md index 591e0e0..89b7017 100644 --- a/source/_posts/aliexpress-no-login-firefox.md +++ b/source/_posts/aliexpress-no-login-firefox.md @@ -2,7 +2,7 @@ title: Firefox, Cross-Origin and AliExpress excerpt: AliExpress login doesn't show up on Firefox when there is a strict cross-origin policy. date: 2019-02-28 -lastUpdated: 2019-04-29 +updated: 2019-04-29 tags: - firefox --- diff --git a/source/_posts/caddy-nixos-part-1.md b/source/_posts/caddy-nixos-part-1.md index 1ee811b..3867489 100644 --- a/source/_posts/caddy-nixos-part-1.md +++ b/source/_posts/caddy-nixos-part-1.md @@ -2,7 +2,7 @@ title: "Setup Caddy as a reverse proxy on NixOS (Part 1: Installation)" excerpt: "Part 1: Installing NixOS" date: 2020-02-23 -lastUpdated: 2020-04-22 +updated: 2020-04-22 tags: - server - linux diff --git a/source/_posts/caddy-nixos-part-2.md b/source/_posts/caddy-nixos-part-2.md index 5258bd9..4d1e1bd 100644 --- a/source/_posts/caddy-nixos-part-2.md +++ b/source/_posts/caddy-nixos-part-2.md @@ -2,7 +2,7 @@ title: "Setup Caddy as a reverse proxy on NixOS (Part 2: Hardening)" excerpt: "Part 2: Securing NixOS" date: 2020-03-04 -lastUpdated: 2020-04-22 +updated: 2020-04-22 tags: - server - linux diff --git a/source/_posts/caddy-nixos-part-3.md b/source/_posts/caddy-nixos-part-3.md index e21c779..7fb7068 100644 --- a/source/_posts/caddy-nixos-part-3.md +++ b/source/_posts/caddy-nixos-part-3.md @@ -2,7 +2,7 @@ title: "Setup Caddy as a reverse proxy on NixOS (Part 3: Caddy)" excerpt: "Part 3: Configure Caddy" date: 2020-03-14 -lastUpdated: 2020-04-08 +updated: 2020-04-08 tags: - server - linux diff --git a/source/_posts/caddy-upgrade-v2-proxy.md b/source/_posts/caddy-upgrade-v2-proxy.md index 72a00ef..76e687b 100644 --- a/source/_posts/caddy-upgrade-v2-proxy.md +++ b/source/_posts/caddy-upgrade-v2-proxy.md @@ -2,7 +2,7 @@ title: Upgrading Caddy reverse proxy from v1 to v2 syntax excerpt: route, strip_prefix, rewrite date: 2020-05-23 -lastUpdated: 2020-06-21 +updated: 2020-06-21 tags: - server - caddy diff --git a/source/_posts/edit-multiple-questions-limesurvey.md b/source/_posts/edit-multiple-questions-limesurvey.md index bddaa94..b3bb376 100644 --- a/source/_posts/edit-multiple-questions-limesurvey.md +++ b/source/_posts/edit-multiple-questions-limesurvey.md @@ -2,7 +2,7 @@ title: Edit multiple questions on LimeSurvey excerpt: List Questions view allows you to edit multiple questions at the same time. date: 2018-10-18 -lastUpdated: 2018-10-26 +updated: 2018-10-26 tags: - stats - limesurvey diff --git a/source/_posts/facebook-instagram-whatsapp-china.md b/source/_posts/facebook-instagram-whatsapp-china.md index 3e1428b..46f854b 100644 --- a/source/_posts/facebook-instagram-whatsapp-china.md +++ b/source/_posts/facebook-instagram-whatsapp-china.md @@ -2,7 +2,7 @@ title: Access Facebook/Instagram/Whatsapp/Google in China excerpt: Data roaming, commercial VPN provider to rolling your own VPN. date: 2018-12-31 -lastUpdated: 2019-10-23 +updated: 2019-10-23 tags: - censorship --- diff --git a/source/_posts/firefox-containers.md b/source/_posts/firefox-containers.md index 598475d..0f8f447 100644 --- a/source/_posts/firefox-containers.md +++ b/source/_posts/firefox-containers.md @@ -2,7 +2,7 @@ title: Firefox Multi-Account Containers excerpt: Separate website cookies in a single session date: 2019-08-12 -lastUpdated: 2019-08-27 +updated: 2019-08-27 tags: - firefox - privacy diff --git a/source/_posts/firefox-instances-profiles.md b/source/_posts/firefox-instances-profiles.md index 241a100..d83779d 100644 --- a/source/_posts/firefox-instances-profiles.md +++ b/source/_posts/firefox-instances-profiles.md @@ -2,7 +2,7 @@ title: How to run more than one Firefox instance excerpt: Using Firefox profiles, you can use more than two instances. date: 2019-04-07 -lastUpdated: 2019-08-09 +updated: 2019-08-09 tags: - firefox - privacy diff --git a/source/_posts/git-ssh-gitlab-ci.md b/source/_posts/git-ssh-gitlab-ci.md index 9f18a52..efdc97f 100644 --- a/source/_posts/git-ssh-gitlab-ci.md +++ b/source/_posts/git-ssh-gitlab-ci.md @@ -2,7 +2,7 @@ title: Using Git and Git+SSH in GitLab CI excerpt: Guides and potential pitfalls date: 2019-10-03 -lastUpdated: 2020-04-18 +updated: 2020-04-18 tags: - gitlab --- diff --git a/source/_posts/gnu-vs-busybox-tools.md b/source/_posts/gnu-vs-busybox-tools.md index d189993..f89e7b4 100644 --- a/source/_posts/gnu-vs-busybox-tools.md +++ b/source/_posts/gnu-vs-busybox-tools.md @@ -2,7 +2,7 @@ title: GNU vs BusyBox Unix tools excerpt: Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave differently. date: 2018-10-13 -lastUpdated: 2018-10-31 +updated: 2018-10-31 tags: - linux - alpine diff --git a/source/_posts/how-to-create-a-hexo-blog.md b/source/_posts/how-to-create-a-hexo-blog.md index 0554ea5..249af38 100644 --- a/source/_posts/how-to-create-a-hexo-blog.md +++ b/source/_posts/how-to-create-a-hexo-blog.md @@ -2,7 +2,7 @@ title: How to create a Hexo blog on GitLab Pages excerpt: Create a website/blog using Hexo on GitLab Pages for free using this detailed guide. date: 2018-09-21 -lastUpdated: 2018-11-10 +updated: 2018-11-10 tags: - hexo - gitlab diff --git a/source/_posts/how-to-remove-windows-10-default-apps.md b/source/_posts/how-to-remove-windows-10-default-apps.md index 7ffe80e..e0e4561 100644 --- a/source/_posts/how-to-remove-windows-10-default-apps.md +++ b/source/_posts/how-to-remove-windows-10-default-apps.md @@ -2,7 +2,7 @@ title: How to remove Windows 10 default apps excerpt: How to get rid of these bloatware. date: 2018-09-26 -lastUpdated: 2019-03-01 +updated: 2019-03-01 tags: - windows --- diff --git a/source/_posts/i2p-eepsite-nixos.md b/source/_posts/i2p-eepsite-nixos.md index 0841bfb..4547aae 100644 --- a/source/_posts/i2p-eepsite-nixos.md +++ b/source/_posts/i2p-eepsite-nixos.md @@ -2,7 +2,7 @@ title: "How to make your website available over I2P Eepsite on NixOS" excerpt: "A guide on I2P Eepsite on NixOS" date: 2020-03-21 -lastUpdated: 2020-04-22 +updated: 2020-04-22 tags: - server - linux diff --git a/source/_posts/make-hexo-blog-smaller.md b/source/_posts/make-hexo-blog-smaller.md index 50a84f5..090e9a2 100644 --- a/source/_posts/make-hexo-blog-smaller.md +++ b/source/_posts/make-hexo-blog-smaller.md @@ -2,7 +2,7 @@ title: Make Hexo blog smaller excerpt: Static site serves html, css, javascript and images. These files can be compressed to reduce bandwidth and speed up the website. date: 2018-09-28 -lastUpdated: 2018-10-06 +updated: 2018-10-06 tags: - hexo --- diff --git a/source/_posts/microg-google-play-replacement.md b/source/_posts/microg-google-play-replacement.md index 23c790c..16f8e29 100644 --- a/source/_posts/microg-google-play-replacement.md +++ b/source/_posts/microg-google-play-replacement.md @@ -2,7 +2,7 @@ title: microG, a replacement for the proprietary Google Play Services excerpt: The core of the Android OS is open source, but much of the core apps, libraries and APIs are proprietary. date: 2019-01-12 -lastUpdated: 2019-04-30 +updated: 2019-04-30 tags: - android --- diff --git a/source/_posts/recommended-android-apps.md b/source/_posts/recommended-android-apps.md index f32c33e..52d6b04 100644 --- a/source/_posts/recommended-android-apps.md +++ b/source/_posts/recommended-android-apps.md @@ -2,7 +2,7 @@ title: Recommended open-source Android apps excerpt: Apps I'm currently using and recommend to everyone. date: 2019-01-07 -lastUpdated: 2020-04-15 +updated: 2020-04-15 tags: - android --- diff --git a/source/_posts/secure-node-modules-snyk.md b/source/_posts/secure-node-modules-snyk.md index f6562c5..0c2989c 100644 --- a/source/_posts/secure-node-modules-snyk.md +++ b/source/_posts/secure-node-modules-snyk.md @@ -2,7 +2,7 @@ title: Secure node modules with Snyk excerpt: The package dependency on Node can cause security issue. Here's how to use Snyk to mitigate it. date: 2018-10-01 -lastUpdated: 2019-06-11 +updated: 2019-06-11 tags: - node - snyk diff --git a/source/_posts/snyk-patch-alpine-docker.md b/source/_posts/snyk-patch-alpine-docker.md index f1bb853..dcc2ae5 100644 --- a/source/_posts/snyk-patch-alpine-docker.md +++ b/source/_posts/snyk-patch-alpine-docker.md @@ -2,7 +2,7 @@ title: Snyk failed to patch in Alpine docker excerpt: Synk depends on GNU version of patch utility. date: 2018-10-31 -lastUpdated: 2019-03-09 +updated: 2019-03-09 tags: - snyk - linux diff --git a/source/_posts/spellcheck-language-ghostwriter.md b/source/_posts/spellcheck-language-ghostwriter.md index 40cee54..6754bd6 100644 --- a/source/_posts/spellcheck-language-ghostwriter.md +++ b/source/_posts/spellcheck-language-ghostwriter.md @@ -2,7 +2,7 @@ title: Change spellcheck language in Ghostwriter excerpt: It supports Hunspell dictionaries for spellcheck of other languages. date: 2018-10-14 -lastUpdated: 2019-06-06 +updated: 2019-06-06 tags: - markdown --- diff --git a/source/_posts/tor-hidden-onion-nixos.md b/source/_posts/tor-hidden-onion-nixos.md index 6243639..da0e46b 100644 --- a/source/_posts/tor-hidden-onion-nixos.md +++ b/source/_posts/tor-hidden-onion-nixos.md @@ -2,7 +2,7 @@ title: "How to make your website available over Tor hidden service on NixOS" excerpt: "A guide on Tor hidden service on NixOS" date: 2020-03-16 -lastUpdated: 2020-04-22 +updated: 2020-04-22 tags: - server - linux diff --git a/source/about/index.md b/source/about/index.md index 4d7deb7..826ccdc 100644 --- a/source/about/index.md +++ b/source/about/index.md @@ -2,7 +2,7 @@ title: About layout: page date: 2019-09-20 -lastUpdated: 2020-02-19 +updated: 2020-02-19 --- ## Projects diff --git a/themes/chameleon/layout/_partial/article.ejs b/themes/chameleon/layout/_partial/article.ejs index b26f2de..a531b2a 100644 --- a/themes/chameleon/layout/_partial/article.ejs +++ b/themes/chameleon/layout/_partial/article.ejs @@ -17,7 +17,7 @@