fix(tags): tag url in lowercase, display in titlecase

* netlify uses lowercase url
This commit is contained in:
curben 2019-06-21 11:28:05 +09:30
parent aa3d94aa4b
commit 2b63f11742
30 changed files with 52 additions and 51 deletions

View File

@ -4,7 +4,7 @@ subtitle: AliExpress login doesn't show up on Firefox when there is a strict cro
date: 2019-02-28 date: 2019-02-28
lastUpdated: 2019-04-29 lastUpdated: 2019-04-29
tags: tags:
- Firefox - firefox
--- ---
AliExpress login doesn't show up on Firefox when there is a strict cross-origin policy (i.e. `network.http.referer.XOriginPolicy`). Here's how to whitelist it. AliExpress login doesn't show up on Firefox when there is a strict cross-origin policy (i.e. `network.http.referer.XOriginPolicy`). Here's how to whitelist it.

View File

@ -3,8 +3,8 @@ title: Default binaries in Alpine docker image
subtitle: Here is the list of binaries shipped with the Docker image of Alpine Linux. subtitle: Here is the list of binaries shipped with the Docker image of Alpine Linux.
date: 2018-10-10 date: 2018-10-10
tags: tags:
- Linux - linux
- Alpine - alpine
--- ---
Here is the list of binaries shipped with the Docker image of Alpine Linux `alpine:3.8` Here is the list of binaries shipped with the Docker image of Alpine Linux `alpine:3.8`

View File

@ -3,7 +3,7 @@ title: How to disable Control+Alt+S shortcut in MATE
subtitle: The shortcut conflicts with Notepad++, here's how to disable it. subtitle: The shortcut conflicts with Notepad++, here's how to disable it.
date: 2018-10-24 date: 2018-10-24
tags: tags:
- Linux - linux
--- ---
Control+Alt+S shortcut is used for toggling shaded state in MATE desktop environment. Once toggled, a window's content is hidden except for the title bar. It's useful for peeking at the content behind a window. I personally never use it as I usually just Alt+Tab or place two windows side by side. I prefer to disable it so I can use the 'Save As' shortcut in Notepad++. Control+Alt+S shortcut is used for toggling shaded state in MATE desktop environment. Once toggled, a window's content is hidden except for the title bar. It's useful for peeking at the content behind a window. I personally never use it as I usually just Alt+Tab or place two windows side by side. I prefer to disable it so I can use the 'Save As' shortcut in Notepad++.

View File

@ -3,9 +3,9 @@ title: DNS-over-TLS/DNS-over-HTTPS does not protect your privacy
subtitle: DoT/DoH does not completely eliminate ISP surveillance. subtitle: DoT/DoH does not completely eliminate ISP surveillance.
date: 2019-04-04 date: 2019-04-04
tags: tags:
- Privacy - privacy
- Security - security
- DoH - doh
--- ---
Recently I stumbled upon this [bug report](https://lists.zx2c4.com/pipermail/wireguard/2019-February/003902.html), and as a side note, the reporter wants to use DNS-over-TLS (DoT) for privacy reasons; to prevent the ISP from knowing visited website. It turns out many also believe this after a brief search for news articles on DoT or DNS-over-HTTPS (DoH). Actually, DoT/DoH does not completely eliminate ISP surveillance. Recently I stumbled upon this [bug report](https://lists.zx2c4.com/pipermail/wireguard/2019-February/003902.html), and as a side note, the reporter wants to use DNS-over-TLS (DoT) for privacy reasons; to prevent the ISP from knowing visited website. It turns out many also believe this after a brief search for news articles on DoT or DNS-over-HTTPS (DoH). Actually, DoT/DoH does not completely eliminate ISP surveillance.

View File

@ -4,8 +4,8 @@ subtitle: List Questions view allows you to edit multiple questions at the same
date: 2018-10-18 date: 2018-10-18
lastUpdated: 2018-10-26 lastUpdated: 2018-10-26
tags: tags:
- Stats - stats
- LimeSurvey - limesurvey
--- ---
On LimeSurvey, making minor edits to multiple questions can be quite a chore. `List Questions` view allows you to edit multiple questions at the same time. On LimeSurvey, making minor edits to multiple questions can be quite a chore. `List Questions` view allows you to edit multiple questions at the same time.

View File

@ -3,8 +3,8 @@ title: Embed SVG without using img tag
subtitle: Using img tag prevents the use of CSS to change property of SVG. There is a workaround. subtitle: Using img tag prevents the use of CSS to change property of SVG. There is a workaround.
date: 2019-06-01 date: 2019-06-01
tags: tags:
- SVG - svg
- Web - web
--- ---
Website usually embed SVG using `<img>` tag or directly use the `<svg>` tag. Using `<img>` tag prevents the use of CSS to change property of SVG. As for inline `<svg>`, I prefer to have a separate file that is easier to keep track. Website usually embed SVG using `<img>` tag or directly use the `<svg>` tag. Using `<img>` tag prevents the use of CSS to change property of SVG. As for inline `<svg>`, I prefer to have a separate file that is easier to keep track.

View File

@ -3,8 +3,8 @@ title: Prevent Engadget from redirect to guce
subtitle: Block its cookies subtitle: Block its cookies
date: 2019-06-09 date: 2019-06-09
tags: tags:
- Firefox - firefox
- Web - web
--- ---
> Skip to [solution](#Block-cookie). > Skip to [solution](#Block-cookie).

View File

@ -4,7 +4,7 @@ subtitle: Data roaming, commercial VPN provider to rolling your own VPN.
date: 2018-12-31 date: 2018-12-31
lastUpdated: 2019-01-13 lastUpdated: 2019-01-13
tags: tags:
- Security - security
--- ---
Facebook/Instagram/Whatsapp/Google are blocked in China. You can either use data roaming or VPN to access them. Roll your own VPN if you don't trust commercial VPN provider. Facebook/Instagram/Whatsapp/Google are blocked in China. You can either use data roaming or VPN to access them. Roll your own VPN if you don't trust commercial VPN provider.

View File

@ -3,10 +3,10 @@ title: Cloudflare in Firefox is not the end of the world
subtitle: It's not enabled by default and you can easily switch to other providers. subtitle: It's not enabled by default and you can easily switch to other providers.
date: 2019-05-25 date: 2019-05-25
tags: tags:
- Firefox - firefox
- Privacy - privacy
- Security - security
- DoH - doh
--- ---
Many criticise Firefox for using Cloudflare by default in DNS-over-HTTPS. In reality, it's **not enabled** by default and you can **easily switch** to other providers. Many criticise Firefox for using Cloudflare by default in DNS-over-HTTPS. In reality, it's **not enabled** by default and you can **easily switch** to other providers.

View File

@ -3,8 +3,8 @@ title: How to run more than one Firefox instance
subtitle: Using Firefox profiles, you can use more than two instances. subtitle: Using Firefox profiles, you can use more than two instances.
date: 2019-04-07 date: 2019-04-07
tags: tags:
- Firefox - firefox
- Privacy - privacy
--- ---
Running more than one Firefox instance allows you to use multiple cookies for a website. By default, you are limited to two separate cookies through *regular* and *private* windows. Using Firefox's **profiles**, you can use more than two. Running more than one Firefox instance allows you to use multiple cookies for a website. By default, you are limited to two separate cookies through *regular* and *private* windows. Using Firefox's **profiles**, you can use more than two.

View File

@ -4,8 +4,8 @@ subtitle: Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave diffe
date: 2018-10-13 date: 2018-10-13
lastUpdated: 2018-10-31 lastUpdated: 2018-10-31
tags: tags:
- Linux - linux
- Alpine - alpine
--- ---
## Intro ## Intro

View File

@ -3,7 +3,7 @@ title: How to create a Hexo blog on GitHub Pages
subtitle: Host your Hexo blog for free on GitHub Pages. subtitle: Host your Hexo blog for free on GitHub Pages.
date: 2018-11-10 date: 2018-11-10
tags: tags:
- Hexo - hexo
--- ---
In {% post_link how-to-create-a-hexo-blog 'previous post' %}, I showed you how to create a blog using [Hexo](https://hexo.io) and host it on [GitLab Pages](https://about.gitlab.com/features/pages/). Here's how to host it on [GitHub Pages](https://pages.github.com/): In {% post_link how-to-create-a-hexo-blog 'previous post' %}, I showed you how to create a blog using [Hexo](https://hexo.io) and host it on [GitLab Pages](https://about.gitlab.com/features/pages/). Here's how to host it on [GitHub Pages](https://pages.github.com/):

View File

@ -3,7 +3,7 @@ title: Hide folders of Caja side pane
subtitle: How to hide them. subtitle: How to hide them.
date: 2018-10-02 date: 2018-10-02
tags: tags:
- Linux - linux
--- ---
Caja is a file manager originally forked from Nautilus. It's used in MATE desktop environment, found in Ubuntu MATE or Linux Mint. Since it shares similar base with Nautilus, following guide also applies to Nautilus too (I haven't tested it though). Caja is a file manager originally forked from Nautilus. It's used in MATE desktop environment, found in Ubuntu MATE or Linux Mint. Since it shares similar base with Nautilus, following guide also applies to Nautilus too (I haven't tested it though).

View File

@ -4,8 +4,8 @@ subtitle: Create a website/blog using Hexo on GitLab Pages for free using this d
date: 2018-09-21 date: 2018-09-21
lastUpdated: 2018-11-10 lastUpdated: 2018-11-10
tags: tags:
- Hexo - hexo
- GitLab - gitlab
--- ---
Create a website/blog using Hexo on [GitLab Pages](https://about.gitlab.com/features/pages/) for free using the following guide. Refer to my {% post_link hexo-blog-github 'another guide' %} for [GitHub Pages](https://pages.github.com/). Create a website/blog using Hexo on [GitLab Pages](https://about.gitlab.com/features/pages/) for free using the following guide. Refer to my {% post_link hexo-blog-github 'another guide' %} for [GitHub Pages](https://pages.github.com/).

View File

@ -4,7 +4,7 @@ subtitle: How to get rid of these bloatware.
date: 2018-09-26 date: 2018-09-26
lastUpdated: 2019-03-01 lastUpdated: 2019-03-01
tags: tags:
- Microsoft - microsoft
--- ---
Windows 10 comes bundled with many unused apps. Worse, it even install third-party apps from time to time by *itself* (even after you remove it!). Here's how to get rid of these bloatware. Windows 10 comes bundled with many unused apps. Worse, it even install third-party apps from time to time by *itself* (even after you remove it!). Here's how to get rid of these bloatware.

View File

@ -4,7 +4,7 @@ subtitle: Static site serves html, css, javascript and images. These files can b
date: 2018-09-28 date: 2018-09-28
lastUpdated: 2018-10-06 lastUpdated: 2018-10-06
tags: tags:
- Hexo - hexo
--- ---
# Minify # Minify

View File

@ -3,7 +3,7 @@ title: Make PDF files smaller
subtitle: Convert to grayscale and reduce the resolution. subtitle: Convert to grayscale and reduce the resolution.
date: 2019-01-05 date: 2019-01-05
tags: tags:
- PDF - pdf
--- ---
The most effective ways of reducing the file size of a PDF is by converting to grayscale and reduce the resolution. The most effective ways of reducing the file size of a PDF is by converting to grayscale and reduce the resolution.

View File

@ -4,7 +4,7 @@ subtitle: The core of the Android OS is open source, but much of the core apps,
date: 2019-01-12 date: 2019-01-12
lastUpdated: 2019-04-30 lastUpdated: 2019-04-30
tags: tags:
- Android - android
--- ---
[microG](https://microg.org/) is an open source re-implementation of Google Play Service/Services Framework. While the core of the Android OS is still open source, much of the core apps, libraries and APIs are proprietary. Refer to [this article](https://arstechnica.com/gadgets/2018/07/googles-iron-grip-on-android-controlling-open-source-by-any-means-necessary/) for more info. [microG](https://microg.org/) is an open source re-implementation of Google Play Service/Services Framework. While the core of the Android OS is still open source, much of the core apps, libraries and APIs are proprietary. Refer to [this article](https://arstechnica.com/gadgets/2018/07/googles-iron-grip-on-android-controlling-open-source-by-any-means-necessary/) for more info.

View File

@ -4,7 +4,7 @@ subtitle: Apps I'm currently using and recommend to everyone.
date: 2019-01-07 date: 2019-01-07
lastUpdated: 2019-04-30 lastUpdated: 2019-04-30
tags: tags:
- Android - android
--- ---
Following my switch to [microG](https://microg.org/) (an open source re-implementation of Google Play), some Google Apps stopped working ({% post_link microg-google-play-replacement 'read here' %}). During my search for replacements, I discover many open source alternatives. These are the apps I'm currently using and recommend to everyone. Following my switch to [microG](https://microg.org/) (an open source re-implementation of Google Play), some Google Apps stopped working ({% post_link microg-google-play-replacement 'read here' %}). During my search for replacements, I discover many open source alternatives. These are the apps I'm currently using and recommend to everyone.

View File

@ -3,8 +3,8 @@ title: You should switch to these replacements of TrueCrypt/KeePassX/Adblock Plu
subtitle: Some have been discontinued while others have been commercialised. subtitle: Some have been discontinued while others have been commercialised.
date: 2019-01-15 date: 2019-01-15
tags: tags:
- Linux - linux
- Web - web
--- ---
TrueCrypt and KeePassX have been discontinued while Adblock Plus has been [commercialised](https://en.wikipedia.org/wiki/Adblock_Plus#Controversy_over_ad_filtering_and_ad_whitelisting). Their replacements are [VeraCrypt](https://www.veracrypt.fr/), [KeePassXC](https://keepassxc.org/) and [uBlock Origin](https://github.com/gorhill/uBlock/) respectively. TrueCrypt and KeePassX have been discontinued while Adblock Plus has been [commercialised](https://en.wikipedia.org/wiki/Adblock_Plus#Controversy_over_ad_filtering_and_ad_whitelisting). Their replacements are [VeraCrypt](https://www.veracrypt.fr/), [KeePassXC](https://keepassxc.org/) and [uBlock Origin](https://github.com/gorhill/uBlock/) respectively.

View File

@ -3,7 +3,7 @@ title: Running locally installed node packages
subtitle: How to run binaries of locally installed node packages. subtitle: How to run binaries of locally installed node packages.
date: 2018-10-24 date: 2018-10-24
tags: tags:
- Node - node
--- ---
Installing a package with `--global` introduce more trouble than convenience. Here's how to run binaries of locally installed node packages. Installing a package with `--global` introduce more trouble than convenience. Here's how to run binaries of locally installed node packages.

View File

@ -4,9 +4,9 @@ subtitle: The package dependency on Node can cause security issue. Here's how to
date: 2018-10-01 date: 2018-10-01
lastUpdated: 2019-06-11 lastUpdated: 2019-06-11
tags: tags:
- Node - node
- Snyk - snyk
- Security - security
--- ---
## Intro ## Intro

View File

@ -4,10 +4,10 @@ subtitle: Synk depends on GNU version of patch utility.
date: 2018-10-31 date: 2018-10-31
lastUpdated: 2019-03-09 lastUpdated: 2019-03-09
tags: tags:
- Snyk - snyk
- Linux - linux
- Security - security
- Alpine - alpine
--- ---
Snyk initially runs fine on Alpine, until you try to `snyk protect` to patch the modules. Turns out Synk depends on GNU version of `patch` utility. Snyk initially runs fine on Alpine, until you try to `snyk protect` to patch the modules. Turns out Synk depends on GNU version of `patch` utility.

View File

@ -4,7 +4,7 @@ subtitle: It supports Hunspell dictionaries for spellcheck of other languages.
date: 2018-10-14 date: 2018-10-14
lastUpdated: 2019-06-06 lastUpdated: 2019-06-06
tags: tags:
- Markdown - markdown
--- ---
Ghostwriter is a Markdown editor with html preview. Previously I used [StackEdit](https://stackedit.io/app), but it's web-based. Ghostwriter is a Markdown editor with html preview. Previously I used [StackEdit](https://stackedit.io/app), but it's web-based.

View File

@ -3,7 +3,7 @@ title: Which statistical test should I use?
subtitle: Choosing a suitable statistical test depends on the design of the experiment, notably the number and the type of variables. subtitle: Choosing a suitable statistical test depends on the design of the experiment, notably the number and the type of variables.
date: 2019-02-09 date: 2019-02-09
tags: tags:
- Stats - stats
--- ---
Note: The previews are displayed in dark theme, but hi-res downloads are in light theme. Note: The previews are displayed in dark theme, but hi-res downloads are in light theme.

View File

@ -3,7 +3,7 @@ title: Use Unix line endings in Unix tools
subtitle: Before you use any Unix tools to process some file, make sure the file only use Unix line endings. subtitle: Before you use any Unix tools to process some file, make sure the file only use Unix line endings.
date: 2018-11-08 date: 2018-11-08
tags: tags:
- Linux - linux
--- ---
Before you use any Unix tools to process some file, make sure the file only use Unix [line endings](https://en.wikipedia.org/wiki/Newline#Representation). Before you use any Unix tools to process some file, make sure the file only use Unix [line endings](https://en.wikipedia.org/wiki/Newline#Representation).

View File

@ -3,7 +3,7 @@ title: How to check validity of GitLab CI config
subtitle: How to verify/lint the config. subtitle: How to verify/lint the config.
date: 2018-10-25 date: 2018-10-25
tags: tags:
- GitLab - gitlab
--- ---
It can be frustrating after you push the changes you made to `.gitlab-ci.yml`, only to discover later that it's invalid on gitlab.com. Here's how to verify/lint the config. It can be frustrating after you push the changes you made to `.gitlab-ci.yml`, only to discover later that it's invalid on gitlab.com. Here's how to verify/lint the config.

View File

@ -3,8 +3,8 @@ title: Prevent word break in array question on LimeSurvey
subtitle: In array type question, when you add many answer options, some words might break into next line, especially when the word is long. subtitle: In array type question, when you add many answer options, some words might break into next line, especially when the word is long.
date: 2018-10-31 date: 2018-10-31
tags: tags:
- Stats - stats
- LimeSurvey - limesurvey
--- ---
When you have many answer options, the word can break into next line, like this: When you have many answer options, the word can break into next line, like this:

View File

@ -1,6 +1,7 @@
<% if (post.tags && post.tags.length) { %> <% if (post.tags && post.tags.length) { %>
<%- list_tags(post.tags, { <%- list_tags(post.tags, {
show_count: false, show_count: false,
class: 'article-tag' class: 'article-tag',
transform: titlecase
}) %> }) %>
<% } %> <% } %>

View File

@ -13,7 +13,7 @@
{# home page #} {# home page #}
<url> <url>
<loc>{{ config.url + '/' + config.archive_dir + '/' }}</loc> <loc>{{ config.url + '/' + config.archive_dir + '/' | uriencode }}</loc>
<lastmod>{{ sNow }}</lastmod> <lastmod>{{ sNow }}</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
<priority>1.0</priority> <priority>1.0</priority>
@ -22,7 +22,7 @@
{# tag pages #} {# tag pages #}
{% for tag in tags %} {% for tag in tags %}
<url> <url>
<loc>{{ tag.permalink }}</loc> <loc>{{ tag.permalink | uriencode }}</loc>
<lastmod>{{ sNow }}</lastmod> <lastmod>{{ sNow }}</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
<priority>0.6</priority> <priority>0.6</priority>
@ -32,7 +32,7 @@
{# categories pages #} {# categories pages #}
{% for cat in categories %} {% for cat in categories %}
<url> <url>
<loc>{{ cat.permalink }}</loc> <loc>{{ cat.permalink | uriencode }}</loc>
<lastmod>{{ sNow }}</lastmod> <lastmod>{{ sNow }}</lastmod>
<changefreq>daily</changefreq> <changefreq>daily</changefreq>
<priority>0.6</priority> <priority>0.6</priority>