mirror of https://gitlab.com/curben/blog
fix(tags): tag url in lowercase, display in titlecase
* netlify uses lowercase url
This commit is contained in:
parent
aa3d94aa4b
commit
2b63f11742
|
@ -4,7 +4,7 @@ subtitle: AliExpress login doesn't show up on Firefox when there is a strict cro
|
|||
date: 2019-02-28
|
||||
lastUpdated: 2019-04-29
|
||||
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.
|
||||
|
|
|
@ -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.
|
||||
date: 2018-10-10
|
||||
tags:
|
||||
- Linux
|
||||
- Alpine
|
||||
- linux
|
||||
- alpine
|
||||
---
|
||||
|
||||
Here is the list of binaries shipped with the Docker image of Alpine Linux `alpine:3.8`
|
||||
|
|
|
@ -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.
|
||||
date: 2018-10-24
|
||||
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++.
|
||||
|
|
|
@ -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.
|
||||
date: 2019-04-04
|
||||
tags:
|
||||
- Privacy
|
||||
- Security
|
||||
- DoH
|
||||
- privacy
|
||||
- security
|
||||
- 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.
|
||||
|
|
|
@ -4,8 +4,8 @@ subtitle: List Questions view allows you to edit multiple questions at the same
|
|||
date: 2018-10-18
|
||||
lastUpdated: 2018-10-26
|
||||
tags:
|
||||
- Stats
|
||||
- LimeSurvey
|
||||
- stats
|
||||
- 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.
|
||||
|
|
|
@ -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.
|
||||
date: 2019-06-01
|
||||
tags:
|
||||
- SVG
|
||||
- Web
|
||||
- svg
|
||||
- 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.
|
||||
|
|
|
@ -3,8 +3,8 @@ title: Prevent Engadget from redirect to guce
|
|||
subtitle: Block its cookies
|
||||
date: 2019-06-09
|
||||
tags:
|
||||
- Firefox
|
||||
- Web
|
||||
- firefox
|
||||
- web
|
||||
---
|
||||
|
||||
> Skip to [solution](#Block-cookie).
|
||||
|
|
|
@ -4,7 +4,7 @@ subtitle: Data roaming, commercial VPN provider to rolling your own VPN.
|
|||
date: 2018-12-31
|
||||
lastUpdated: 2019-01-13
|
||||
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.
|
||||
|
|
|
@ -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.
|
||||
date: 2019-05-25
|
||||
tags:
|
||||
- Firefox
|
||||
- Privacy
|
||||
- Security
|
||||
- DoH
|
||||
- firefox
|
||||
- privacy
|
||||
- security
|
||||
- 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.
|
||||
|
|
|
@ -3,8 +3,8 @@ title: How to run more than one Firefox instance
|
|||
subtitle: Using Firefox profiles, you can use more than two instances.
|
||||
date: 2019-04-07
|
||||
tags:
|
||||
- Firefox
|
||||
- Privacy
|
||||
- firefox
|
||||
- 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.
|
||||
|
|
|
@ -4,8 +4,8 @@ subtitle: Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave diffe
|
|||
date: 2018-10-13
|
||||
lastUpdated: 2018-10-31
|
||||
tags:
|
||||
- Linux
|
||||
- Alpine
|
||||
- linux
|
||||
- alpine
|
||||
---
|
||||
|
||||
## Intro
|
||||
|
|
|
@ -3,7 +3,7 @@ title: How to create a Hexo blog on GitHub Pages
|
|||
subtitle: Host your Hexo blog for free on GitHub Pages.
|
||||
date: 2018-11-10
|
||||
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/):
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Hide folders of Caja side pane
|
|||
subtitle: How to hide them.
|
||||
date: 2018-10-02
|
||||
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).
|
||||
|
|
|
@ -4,8 +4,8 @@ subtitle: Create a website/blog using Hexo on GitLab Pages for free using this d
|
|||
date: 2018-09-21
|
||||
lastUpdated: 2018-11-10
|
||||
tags:
|
||||
- Hexo
|
||||
- GitLab
|
||||
- hexo
|
||||
- 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/).
|
||||
|
|
|
@ -4,7 +4,7 @@ subtitle: How to get rid of these bloatware.
|
|||
date: 2018-09-26
|
||||
lastUpdated: 2019-03-01
|
||||
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.
|
||||
|
|
|
@ -4,7 +4,7 @@ subtitle: Static site serves html, css, javascript and images. These files can b
|
|||
date: 2018-09-28
|
||||
lastUpdated: 2018-10-06
|
||||
tags:
|
||||
- Hexo
|
||||
- hexo
|
||||
---
|
||||
|
||||
# Minify
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Make PDF files smaller
|
|||
subtitle: Convert to grayscale and reduce the resolution.
|
||||
date: 2019-01-05
|
||||
tags:
|
||||
- PDF
|
||||
- pdf
|
||||
---
|
||||
|
||||
The most effective ways of reducing the file size of a PDF is by converting to grayscale and reduce the resolution.
|
||||
|
|
|
@ -4,7 +4,7 @@ subtitle: The core of the Android OS is open source, but much of the core apps,
|
|||
date: 2019-01-12
|
||||
lastUpdated: 2019-04-30
|
||||
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.
|
||||
|
|
|
@ -4,7 +4,7 @@ subtitle: Apps I'm currently using and recommend to everyone.
|
|||
date: 2019-01-07
|
||||
lastUpdated: 2019-04-30
|
||||
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.
|
||||
|
|
|
@ -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.
|
||||
date: 2019-01-15
|
||||
tags:
|
||||
- Linux
|
||||
- Web
|
||||
- linux
|
||||
- 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.
|
||||
|
|
|
@ -3,7 +3,7 @@ title: Running locally installed node packages
|
|||
subtitle: How to run binaries of locally installed node packages.
|
||||
date: 2018-10-24
|
||||
tags:
|
||||
- Node
|
||||
- node
|
||||
---
|
||||
|
||||
Installing a package with `--global` introduce more trouble than convenience. Here's how to run binaries of locally installed node packages.
|
||||
|
|
|
@ -4,9 +4,9 @@ subtitle: The package dependency on Node can cause security issue. Here's how to
|
|||
date: 2018-10-01
|
||||
lastUpdated: 2019-06-11
|
||||
tags:
|
||||
- Node
|
||||
- Snyk
|
||||
- Security
|
||||
- node
|
||||
- snyk
|
||||
- security
|
||||
---
|
||||
|
||||
## Intro
|
||||
|
|
|
@ -4,10 +4,10 @@ subtitle: Synk depends on GNU version of patch utility.
|
|||
date: 2018-10-31
|
||||
lastUpdated: 2019-03-09
|
||||
tags:
|
||||
- Snyk
|
||||
- Linux
|
||||
- Security
|
||||
- Alpine
|
||||
- snyk
|
||||
- linux
|
||||
- security
|
||||
- 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.
|
||||
|
|
|
@ -4,7 +4,7 @@ subtitle: It supports Hunspell dictionaries for spellcheck of other languages.
|
|||
date: 2018-10-14
|
||||
lastUpdated: 2019-06-06
|
||||
tags:
|
||||
- Markdown
|
||||
- markdown
|
||||
---
|
||||
|
||||
Ghostwriter is a Markdown editor with html preview. Previously I used [StackEdit](https://stackedit.io/app), but it's web-based.
|
||||
|
|
|
@ -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.
|
||||
date: 2019-02-09
|
||||
tags:
|
||||
- Stats
|
||||
- stats
|
||||
---
|
||||
|
||||
Note: The previews are displayed in dark theme, but hi-res downloads are in light theme.
|
||||
|
|
|
@ -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.
|
||||
date: 2018-11-08
|
||||
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).
|
||||
|
|
|
@ -3,7 +3,7 @@ title: How to check validity of GitLab CI config
|
|||
subtitle: How to verify/lint the config.
|
||||
date: 2018-10-25
|
||||
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.
|
||||
|
|
|
@ -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.
|
||||
date: 2018-10-31
|
||||
tags:
|
||||
- Stats
|
||||
- LimeSurvey
|
||||
- stats
|
||||
- limesurvey
|
||||
---
|
||||
|
||||
When you have many answer options, the word can break into next line, like this:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
<% if (post.tags && post.tags.length) { %>
|
||||
<%- list_tags(post.tags, {
|
||||
show_count: false,
|
||||
class: 'article-tag'
|
||||
class: 'article-tag',
|
||||
transform: titlecase
|
||||
}) %>
|
||||
<% } %>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
{# home page #}
|
||||
<url>
|
||||
<loc>{{ config.url + '/' + config.archive_dir + '/' }}</loc>
|
||||
<loc>{{ config.url + '/' + config.archive_dir + '/' | uriencode }}</loc>
|
||||
<lastmod>{{ sNow }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
|
@ -22,7 +22,7 @@
|
|||
{# tag pages #}
|
||||
{% for tag in tags %}
|
||||
<url>
|
||||
<loc>{{ tag.permalink }}</loc>
|
||||
<loc>{{ tag.permalink | uriencode }}</loc>
|
||||
<lastmod>{{ sNow }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.6</priority>
|
||||
|
@ -32,7 +32,7 @@
|
|||
{# categories pages #}
|
||||
{% for cat in categories %}
|
||||
<url>
|
||||
<loc>{{ cat.permalink }}</loc>
|
||||
<loc>{{ cat.permalink | uriencode }}</loc>
|
||||
<lastmod>{{ sNow }}</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>0.6</priority>
|
||||
|
|
Loading…
Reference in New Issue