From fb36bca7f1430b32e71a5fc463e93176bffb72b3 Mon Sep 17 00:00:00 2001 From: curben Date: Sat, 8 Jun 2019 17:31:39 +0930 Subject: [PATCH] refactor: use page.subtitle instead of page.excerpt * Source file (.md) looks a bit clearer this way. * Remove unused options in openGraph.js --- source/_posts/aliexpress-no-login-firefox.md | 3 +- source/_posts/binaries-alpine-docker.md | 3 +- .../disable-control-alt-s-mate-shortcut.md | 5 +-- source/_posts/doh-tls-privacy.md | 5 +-- .../edit-multiple-questions-limesurvey.md | 5 +-- source/_posts/embed-svg-img.md | 5 +-- .../facebook-instagram-whatsapp-china.md | 5 +-- source/_posts/firefox-doh-cloudflare.md | 5 +-- source/_posts/firefox-instances-profiles.md | 5 +-- source/_posts/gnu-vs-busybox-tools.md | 5 +-- source/_posts/hexo-blog-github.md | 5 +-- source/_posts/hide-folders-caja-side-pane.md | 5 +-- source/_posts/how-to-create-a-hexo-blog.md | 5 +-- .../how-to-remove-windows-10-default-apps.md | 5 +-- source/_posts/make-hexo-blog-smaller.md | 5 +-- source/_posts/make-pdf-files-smaller.md | 5 +-- .../_posts/microg-google-play-replacement.md | 5 +-- source/_posts/recommended-android-apps.md | 5 +-- ...replace-truecrypt-keepassx-adblock-plus.md | 5 +-- ...running-locally-installed-node-packages.md | 5 +-- source/_posts/secure-node-modules-snyk.md | 5 +-- source/_posts/snyk-patch-alpine-docker.md | 5 +-- .../_posts/spellcheck-language-ghostwriter.md | 5 +-- source/_posts/statistical-test.md | 5 +-- source/_posts/unix-tools-line-endings.md | 5 +-- source/_posts/validity-gitlab-ci-config.md | 5 +-- source/_posts/word-break-limesurvey.md | 5 +-- .../typing/layout/_partial/archive-post.ejs | 2 +- themes/typing/layout/_partial/archive.ejs | 36 ++++++++----------- themes/typing/layout/_partial/article.ejs | 4 +-- themes/typing/scripts/openGraph.js | 14 ++++---- 31 files changed, 52 insertions(+), 135 deletions(-) diff --git a/source/_posts/aliexpress-no-login-firefox.md b/source/_posts/aliexpress-no-login-firefox.md index adbb85a..d26a71f 100644 --- a/source/_posts/aliexpress-no-login-firefox.md +++ b/source/_posts/aliexpress-no-login-firefox.md @@ -1,5 +1,6 @@ --- title: Firefox, Cross-Origin and AliExpress +subtitle: AliExpress login doesn't show up on Firefox when there is a strict cross-origin policy. date: 2019-02-28 lastUpdated: 2019-04-29 tags: @@ -8,8 +9,6 @@ tags: 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. - - ## Background > Click [**here**](#My-Orders) to go straight to the workarounds. diff --git a/source/_posts/binaries-alpine-docker.md b/source/_posts/binaries-alpine-docker.md index 596fc74..bab8163 100644 --- a/source/_posts/binaries-alpine-docker.md +++ b/source/_posts/binaries-alpine-docker.md @@ -1,5 +1,6 @@ --- 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 @@ -8,8 +9,6 @@ tags: Here is the list of binaries shipped with the Docker image of Alpine Linux `alpine:3.8` - - [Pastebin](https://bin.disroot.org/?f85ebb52e17968ea#uvKnHjd1monx3ENkEL+jN1zKfWBYGI0jfaLbhvb7zoQ=) - acpid diff --git a/source/_posts/disable-control-alt-s-mate-shortcut.md b/source/_posts/disable-control-alt-s-mate-shortcut.md index a6c5a29..59b7752 100644 --- a/source/_posts/disable-control-alt-s-mate-shortcut.md +++ b/source/_posts/disable-control-alt-s-mate-shortcut.md @@ -1,14 +1,11 @@ --- 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 --- -The default Control+Alt+S shortcut conflicts with Notepad++ 'Save As' shortcut, here's how to disable it. - - - 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++. There are two methods of disabling the shortcut. Use the [second](#Method-2) method if Compiz is enabled with CCSM (CompizConfig Settings Manager). diff --git a/source/_posts/doh-tls-privacy.md b/source/_posts/doh-tls-privacy.md index f8198c5..9d1fda5 100644 --- a/source/_posts/doh-tls-privacy.md +++ b/source/_posts/doh-tls-privacy.md @@ -1,5 +1,6 @@ --- 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 @@ -7,10 +8,6 @@ tags: - DoH --- -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. ISP still knows what **IP address** you are connecting to. Even with HTTPS and DoT/DoH, ISP currently can sniff the website domain you are visiting/visited including the complete URL due to a security weakness in the [Server Name Indication](https://en.wikipedia.org/wiki/Server_Name_Indication). This weakness can be fixed by using [Encrypted SNI](https://blog.cloudflare.com/esni/) (ESNI). diff --git a/source/_posts/edit-multiple-questions-limesurvey.md b/source/_posts/edit-multiple-questions-limesurvey.md index 5224638..90d4e98 100644 --- a/source/_posts/edit-multiple-questions-limesurvey.md +++ b/source/_posts/edit-multiple-questions-limesurvey.md @@ -1,5 +1,6 @@ --- title: Edit multiple questions on LimeSurvey +subtitle: List Questions view allows you to edit multiple questions at the same time. date: 2018-10-18 lastUpdated: 2018-10-26 tags: @@ -7,10 +8,6 @@ tags: - LimeSurvey --- -**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. **List Questions** view allows you to delete, set 'mandatory', 'other', CSS class, and randomise multiple questions at the same time. diff --git a/source/_posts/embed-svg-img.md b/source/_posts/embed-svg-img.md index 7bdeff5..ff419a9 100644 --- a/source/_posts/embed-svg-img.md +++ b/source/_posts/embed-svg-img.md @@ -1,15 +1,12 @@ --- 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 --- -Using `` tag prevents the use of CSS to change property of SVG. Use `` instead. - - - Website usually embed SVG using `` tag or directly use the `` tag. Using `` tag prevents the use of CSS to change property of SVG. As for inline ``, I prefer to have a separate file that is easier to keep track. ## Embed SVG file diff --git a/source/_posts/facebook-instagram-whatsapp-china.md b/source/_posts/facebook-instagram-whatsapp-china.md index 5804489..e4e726f 100644 --- a/source/_posts/facebook-instagram-whatsapp-china.md +++ b/source/_posts/facebook-instagram-whatsapp-china.md @@ -1,15 +1,12 @@ --- title: Access Facebook/Instagram/Whatsapp/Google in China +subtitle: Data roaming, commercial VPN provider to rolling your own VPN. date: 2018-12-31 lastUpdated: 2019-01-13 tags: - Security --- -Data roaming, commercial VPN provider to rolling your own VPN. - - - 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. ## Data Roaming diff --git a/source/_posts/firefox-doh-cloudflare.md b/source/_posts/firefox-doh-cloudflare.md index de9b359..02a7e73 100644 --- a/source/_posts/firefox-doh-cloudflare.md +++ b/source/_posts/firefox-doh-cloudflare.md @@ -1,5 +1,6 @@ --- 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 @@ -8,10 +9,6 @@ tags: - DoH --- -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. {% cloudinary '20190525/firefox-doh.png' "'DNS over HTTPS' setting in Firefox" %} diff --git a/source/_posts/firefox-instances-profiles.md b/source/_posts/firefox-instances-profiles.md index ed6cf5e..bea3865 100644 --- a/source/_posts/firefox-instances-profiles.md +++ b/source/_posts/firefox-instances-profiles.md @@ -1,15 +1,12 @@ --- 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 --- -Using Firefox profiles, you can use more than two instances. - - - 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. For example, you are looking for item A and B at a shopping website using the private window but you prefer to keep the browsing separate as not to let the website knows that you are browsing both of them. Or you want to login to more than two accounts of a website. diff --git a/source/_posts/gnu-vs-busybox-tools.md b/source/_posts/gnu-vs-busybox-tools.md index a3fbe06..d78d3cf 100644 --- a/source/_posts/gnu-vs-busybox-tools.md +++ b/source/_posts/gnu-vs-busybox-tools.md @@ -1,5 +1,6 @@ --- title: GNU vs BusyBox Unix tools +subtitle: Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave differently. date: 2018-10-13 lastUpdated: 2018-10-31 tags: @@ -7,10 +8,6 @@ tags: - Alpine --- -Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave differently. - - - ## Intro > Skip to the [list](#List). diff --git a/source/_posts/hexo-blog-github.md b/source/_posts/hexo-blog-github.md index 075877e..f6a4602 100644 --- a/source/_posts/hexo-blog-github.md +++ b/source/_posts/hexo-blog-github.md @@ -1,14 +1,11 @@ --- 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 --- -Host your Hexo blog for free on GitHub Pages. - - - 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/): ## GitHub repository diff --git a/source/_posts/hide-folders-caja-side-pane.md b/source/_posts/hide-folders-caja-side-pane.md index dd30103..559406a 100644 --- a/source/_posts/hide-folders-caja-side-pane.md +++ b/source/_posts/hide-folders-caja-side-pane.md @@ -1,14 +1,11 @@ --- title: Hide folders of Caja side pane +subtitle: How to hide them. date: 2018-10-02 tags: - Linux --- -How to hide them. - - - 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). The side pane of Caja shows many media folders by default. You might not have all the media types or not important enough to bookmark it. diff --git a/source/_posts/how-to-create-a-hexo-blog.md b/source/_posts/how-to-create-a-hexo-blog.md index 315a19c..d4b195b 100644 --- a/source/_posts/how-to-create-a-hexo-blog.md +++ b/source/_posts/how-to-create-a-hexo-blog.md @@ -1,5 +1,6 @@ --- title: How to create a Hexo blog on GitLab Pages +subtitle: Create a website/blog using Hexo on GitLab Pages for free using this detailed guide. date: 2018-09-21 lastUpdated: 2018-11-10 tags: @@ -7,10 +8,6 @@ tags: - GitLab --- -Create a website/blog using Hexo on GitLab Pages for free using this detailed guide. - - - 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/). ## GitLab project 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 2646b6a..2561314 100644 --- a/source/_posts/how-to-remove-windows-10-default-apps.md +++ b/source/_posts/how-to-remove-windows-10-default-apps.md @@ -1,15 +1,12 @@ --- title: How to remove Windows 10 default apps +subtitle: How to get rid of these bloatware. date: 2018-09-26 lastUpdated: 2019-03-01 tags: - Microsoft --- -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. diff --git a/source/_posts/make-hexo-blog-smaller.md b/source/_posts/make-hexo-blog-smaller.md index 7dc4ea9..14bebeb 100644 --- a/source/_posts/make-hexo-blog-smaller.md +++ b/source/_posts/make-hexo-blog-smaller.md @@ -1,15 +1,12 @@ --- title: Make Hexo blog smaller +subtitle: 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 tags: - Hexo --- -Static site serves html, css, javascript and images. These files can be compressed to reduce bandwidth and speed up the website. - - - # Minify [Minify](https://en.wikipedia.org/wiki/Minification_(programming)) html, css, js and svg to remove characters that are not required for the code to function. This process involves removing white space/tab, line break and comments. I read somewhere that Google saves gigabytes of bandwidth just by removing line break, which surprised me how much line break alone costs when you have the popularity of Google.com. In Hexo, there are two approaches. diff --git a/source/_posts/make-pdf-files-smaller.md b/source/_posts/make-pdf-files-smaller.md index 9c6f47d..5d86836 100644 --- a/source/_posts/make-pdf-files-smaller.md +++ b/source/_posts/make-pdf-files-smaller.md @@ -1,14 +1,11 @@ --- title: Make PDF files smaller +subtitle: Convert to grayscale and reduce the resolution. date: 2019-01-05 tags: - PDF --- -Convert 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. Requirement: ghostscript (installed by default in Ubuntu) diff --git a/source/_posts/microg-google-play-replacement.md b/source/_posts/microg-google-play-replacement.md index e057fed..879af80 100644 --- a/source/_posts/microg-google-play-replacement.md +++ b/source/_posts/microg-google-play-replacement.md @@ -1,15 +1,12 @@ --- title: microG, a replacement for the proprietary Google Play Services +subtitle: 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 tags: - Android --- -The core of the Android OS is open source, but much of the core apps, libraries and APIs are proprietary. - - - [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. Adding to this issue is having all the APIs packaged into a single monolithic Play Services APK. So, all the APIs are loaded at all time, even though some APIs like Cast is not going to be used 24/7. This leads to memory bloat. Despite [effort](https://arstechnica.com/gadgets/2017/09/android-8-0-oreo-thoroughly-reviewed/8/#h3) to split it into separate APKs, subsequent [updates](https://www.apkmirror.com/apk/google-inc/google-play-services/) are seldom smaller. The current version (as of writing) is [40+ MB](https://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-14-7-99-release/), while microG's implementation is merely [2.6 MB](https://microg.org/download.html). diff --git a/source/_posts/recommended-android-apps.md b/source/_posts/recommended-android-apps.md index 5f51526..6ce9629 100644 --- a/source/_posts/recommended-android-apps.md +++ b/source/_posts/recommended-android-apps.md @@ -1,15 +1,12 @@ --- title: Recommended Android apps +subtitle: Apps I'm currently using and recommend to everyone. date: 2019-01-07 lastUpdated: 2019-04-30 tags: - Android --- -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. Aside from the below list, check out the NanoDroid's [list](https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/Applications.md) of other great open source alternatives. diff --git a/source/_posts/replace-truecrypt-keepassx-adblock-plus.md b/source/_posts/replace-truecrypt-keepassx-adblock-plus.md index 2e51a02..f85cb22 100644 --- a/source/_posts/replace-truecrypt-keepassx-adblock-plus.md +++ b/source/_posts/replace-truecrypt-keepassx-adblock-plus.md @@ -1,15 +1,12 @@ --- title: You should switch to these replacements of TrueCrypt/KeePassX/Adblock Plus +subtitle: Some have been discontinued while others have been commercialised. date: 2019-01-15 tags: - Linux - Web --- -Some have been discontinued while others have been commercialised. - - - 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. ## VeraCrypt diff --git a/source/_posts/running-locally-installed-node-packages.md b/source/_posts/running-locally-installed-node-packages.md index 77dddd1..c19806c 100644 --- a/source/_posts/running-locally-installed-node-packages.md +++ b/source/_posts/running-locally-installed-node-packages.md @@ -1,14 +1,11 @@ --- title: Running locally installed node packages +subtitle: How to run binaries of locally installed node packages. date: 2018-10-24 tags: - Node --- -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. By default, `npm install` installs packages as listed in `package.json` at 'node_modules' of your project folder. When a package ships with executables/binaries, usually user would install it globally using `sudo npm install --global/-g`. diff --git a/source/_posts/secure-node-modules-snyk.md b/source/_posts/secure-node-modules-snyk.md index 3fa20cb..77b193c 100644 --- a/source/_posts/secure-node-modules-snyk.md +++ b/source/_posts/secure-node-modules-snyk.md @@ -1,5 +1,6 @@ --- title: Secure node modules with Snyk +subtitle: The package dependency on Node can cause security issue. Here's how to use Snyk to mitigate it. date: 2018-10-01 lastUpdated: 2019-03-09 tags: @@ -8,10 +9,6 @@ tags: - Security --- -The package dependency on Node can cause security issue. Here's how to use Snyk to mitigate it. - - - ## Intro > Click [here](#Installation) to go straight to installation guide. diff --git a/source/_posts/snyk-patch-alpine-docker.md b/source/_posts/snyk-patch-alpine-docker.md index 4d7e2ed..8354e03 100644 --- a/source/_posts/snyk-patch-alpine-docker.md +++ b/source/_posts/snyk-patch-alpine-docker.md @@ -1,5 +1,6 @@ --- title: Snyk failed to patch in Alpine docker +subtitle: Synk depends on GNU version of patch utility. date: 2018-10-31 lastUpdated: 2019-03-09 tags: @@ -9,10 +10,6 @@ tags: - Alpine --- -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. ***Edit:*** Snyk [v1.131.0](https://github.com/snyk/snyk/releases/tag/v1.131.0) onwards no longer use `patch`. diff --git a/source/_posts/spellcheck-language-ghostwriter.md b/source/_posts/spellcheck-language-ghostwriter.md index 98b4cb6..45c183b 100644 --- a/source/_posts/spellcheck-language-ghostwriter.md +++ b/source/_posts/spellcheck-language-ghostwriter.md @@ -1,15 +1,12 @@ --- title: Change spellcheck language in Ghostwriter +subtitle: It supports Hunspell dictionaries for spellcheck of other languages. date: 2018-10-14 lastUpdated: 2019-06-06 tags: - Markdown --- -It supports Hunspell dictionaries for spellcheck of other languages. - - - Ghostwriter is a Markdown editor with html preview. Previously I used [StackEdit](https://stackedit.io/app), but it's web-based. It has built-in US English spellcheck. It supports [Hunspell](https://hunspell.github.io/) dictionaries for other languages. diff --git a/source/_posts/statistical-test.md b/source/_posts/statistical-test.md index 40ff122..398b35d 100644 --- a/source/_posts/statistical-test.md +++ b/source/_posts/statistical-test.md @@ -1,14 +1,11 @@ --- 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 --- -Choosing a suitable statistical test depends on the design of the experiment, notably the number and the type of variables. - - - Note: The previews are displayed in dark theme, but hi-res downloads are in light theme. ## Parametric and non-parametric tests diff --git a/source/_posts/unix-tools-line-endings.md b/source/_posts/unix-tools-line-endings.md index be3cf2c..ceaa0ab 100644 --- a/source/_posts/unix-tools-line-endings.md +++ b/source/_posts/unix-tools-line-endings.md @@ -1,14 +1,11 @@ --- 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 --- -Before you use any Unix tools to process some file, make sure the file only use Unix line endings. - - - 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). Note that many text files you downloaded most probably use Windows line endings. diff --git a/source/_posts/validity-gitlab-ci-config.md b/source/_posts/validity-gitlab-ci-config.md index 3dc55ee..b87bfee 100644 --- a/source/_posts/validity-gitlab-ci-config.md +++ b/source/_posts/validity-gitlab-ci-config.md @@ -1,14 +1,11 @@ --- title: How to check validity of GitLab CI config +subtitle: How to verify/lint the config. date: 2018-10-25 tags: - GitLab --- -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. Login to GitLab.com and navigate to any of your repo or project. It must be under your account. If you don't have one, simply create a new project or fork one. diff --git a/source/_posts/word-break-limesurvey.md b/source/_posts/word-break-limesurvey.md index 8c9d7c9..14d032d 100644 --- a/source/_posts/word-break-limesurvey.md +++ b/source/_posts/word-break-limesurvey.md @@ -1,15 +1,12 @@ --- 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 --- -In array type question, when you add many answer options, some words might break into next line, especially when the word is long. - - - When you have many answer options, the word can break into next line, like this: {% cloudinary '20181031/break-word' 'Part of a word break into next line in LimeSurvey' %} diff --git a/themes/typing/layout/_partial/archive-post.ejs b/themes/typing/layout/_partial/archive-post.ejs index 2a729b9..5f2fbd6 100644 --- a/themes/typing/layout/_partial/archive-post.ejs +++ b/themes/typing/layout/_partial/archive-post.ejs @@ -3,7 +3,7 @@
<%- partial('post/title', {class_name: 'archive-article-title'}) %> - <%- post.excerpt %> + <%- post.subtitle %> diff --git a/themes/typing/layout/_partial/archive.ejs b/themes/typing/layout/_partial/archive.ejs index cac9c5f..526d717 100644 --- a/themes/typing/layout/_partial/archive.ejs +++ b/themes/typing/layout/_partial/archive.ejs @@ -1,30 +1,24 @@ -<% if (pagination === 2) { %> - <% page.posts.each((post) => { %> - <%- partial('article', {post: post, index: true}) %> - <% }) %> -<% } else { %> - <% let last %> - <% page.posts.each((post, i) => { %> - <% const year = post.date.year() %> - <% if (last !== year) { %> - <% if (last !== null) { %> - - <% } %> - <% last = year %> -
-
+<% let last %> +<% page.posts.each((post, i) => { %> + <% const year = post.date.year() %> + <% if (last !== year) { %> + <% if (last !== null) { %> +
<% } %> - <%- partial('archive-post', {post: post, even: i % 2 === 0}) %> - <% }) %> - <% if (page.posts.length) { %> - + <% last = year %> +
+
<% } %> + <%- partial('archive-post', {post: post, even: i % 2 === 0}) %> +<% }) %> +<% if (page.posts.length) { %> +
<% } %> <% if (page.total > 1) { %>