From a5dbc691ee5fc496c2f9d1952c12fcbf15e517ee Mon Sep 17 00:00:00 2001
From: curben <2809763-curben@users.noreply.gitlab.com>
Date: Fri, 9 Aug 2019 13:55:10 +0930
Subject: [PATCH] fix: post.excerpt can be specified in post
https://github.com/hexojs/hexo/pull/3612
---
source/_posts/aliexpress-no-login-firefox.md | 2 +-
source/_posts/binaries-alpine-docker.md | 2 +-
source/_posts/disable-control-alt-s-mate-shortcut.md | 2 +-
source/_posts/doh-tls-privacy.md | 2 +-
source/_posts/edit-multiple-questions-limesurvey.md | 2 +-
source/_posts/embed-svg-img.md | 2 +-
source/_posts/engadget-redirect-guce.md | 2 +-
source/_posts/facebook-instagram-whatsapp-china.md | 2 +-
source/_posts/firefox-doh-cloudflare.md | 2 +-
source/_posts/firefox-instances-profiles.md | 2 +-
source/_posts/gnu-vs-busybox-tools.md | 2 +-
source/_posts/hexo-blog-github.md | 4 ++--
source/_posts/hide-folders-caja-side-pane.md | 2 +-
source/_posts/how-to-create-a-hexo-blog.md | 4 ++--
source/_posts/how-to-remove-windows-10-default-apps.md | 2 +-
source/_posts/make-hexo-blog-smaller.md | 2 +-
source/_posts/make-pdf-files-smaller.md | 2 +-
source/_posts/microg-google-play-replacement.md | 2 +-
source/_posts/recommended-android-apps.md | 2 +-
source/_posts/replace-truecrypt-keepassx-adblock-plus.md | 2 +-
source/_posts/running-locally-installed-node-packages.md | 2 +-
source/_posts/secure-node-modules-snyk.md | 2 +-
source/_posts/snyk-patch-alpine-docker.md | 2 +-
source/_posts/spellcheck-language-ghostwriter.md | 2 +-
source/_posts/statistical-test.md | 2 +-
source/_posts/unix-tools-line-endings.md | 2 +-
source/_posts/validity-gitlab-ci-config.md | 2 +-
source/_posts/view-image-dark-reader-firefox.md | 2 +-
source/_posts/word-break-limesurvey.md | 2 +-
themes/typing/layout/_partial/archive-post.ejs | 2 +-
themes/typing/layout/_partial/article.ejs | 6 +++---
themes/typing/scripts/openGraph.js | 2 +-
themes/typing/source/css/typing.css | 4 ++--
33 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/source/_posts/aliexpress-no-login-firefox.md b/source/_posts/aliexpress-no-login-firefox.md
index f1d52d3..1879a50 100644
--- a/source/_posts/aliexpress-no-login-firefox.md
+++ b/source/_posts/aliexpress-no-login-firefox.md
@@ -1,6 +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.
+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
tags:
diff --git a/source/_posts/binaries-alpine-docker.md b/source/_posts/binaries-alpine-docker.md
index 4a5c1aa..8e2348e 100644
--- a/source/_posts/binaries-alpine-docker.md
+++ b/source/_posts/binaries-alpine-docker.md
@@ -1,6 +1,6 @@
---
title: Default binaries in Alpine docker image
-subtitle: Here is the list of binaries shipped with the Docker image of Alpine Linux.
+excerpt: Here is the list of binaries shipped with the Docker image of Alpine Linux.
date: 2018-10-10
tags:
- linux
diff --git a/source/_posts/disable-control-alt-s-mate-shortcut.md b/source/_posts/disable-control-alt-s-mate-shortcut.md
index da01979..19e0e90 100644
--- a/source/_posts/disable-control-alt-s-mate-shortcut.md
+++ b/source/_posts/disable-control-alt-s-mate-shortcut.md
@@ -1,6 +1,6 @@
---
title: How to disable Control+Alt+S shortcut in MATE
-subtitle: The shortcut conflicts with Notepad++, here's how to disable it.
+excerpt: The shortcut conflicts with Notepad++, here's how to disable it.
date: 2018-10-24
tags:
- linux
diff --git a/source/_posts/doh-tls-privacy.md b/source/_posts/doh-tls-privacy.md
index 3631b67..70b60ab 100644
--- a/source/_posts/doh-tls-privacy.md
+++ b/source/_posts/doh-tls-privacy.md
@@ -1,6 +1,6 @@
---
title: DNS-over-TLS/DNS-over-HTTPS does not protect your privacy
-subtitle: DoT/DoH does not completely eliminate ISP surveillance.
+excerpt: DoT/DoH does not completely eliminate ISP surveillance.
date: 2019-04-04
tags:
- privacy
diff --git a/source/_posts/edit-multiple-questions-limesurvey.md b/source/_posts/edit-multiple-questions-limesurvey.md
index f50e2dd..9b5329c 100644
--- a/source/_posts/edit-multiple-questions-limesurvey.md
+++ b/source/_posts/edit-multiple-questions-limesurvey.md
@@ -1,6 +1,6 @@
---
title: Edit multiple questions on LimeSurvey
-subtitle: List Questions view allows you to edit multiple questions at the same time.
+excerpt: List Questions view allows you to edit multiple questions at the same time.
date: 2018-10-18
lastUpdated: 2018-10-26
tags:
diff --git a/source/_posts/embed-svg-img.md b/source/_posts/embed-svg-img.md
index d93698b..3138274 100644
--- a/source/_posts/embed-svg-img.md
+++ b/source/_posts/embed-svg-img.md
@@ -1,6 +1,6 @@
---
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.
+excerpt: Using img tag prevents the use of CSS to change property of SVG. There is a workaround.
date: 2019-06-01
tags:
- svg
diff --git a/source/_posts/engadget-redirect-guce.md b/source/_posts/engadget-redirect-guce.md
index fcbb177..c89b393 100644
--- a/source/_posts/engadget-redirect-guce.md
+++ b/source/_posts/engadget-redirect-guce.md
@@ -1,6 +1,6 @@
---
title: Prevent Engadget from redirect to guce
-subtitle: Block its cookies
+excerpt: Block its cookies
date: 2019-06-09
tags:
- firefox
diff --git a/source/_posts/facebook-instagram-whatsapp-china.md b/source/_posts/facebook-instagram-whatsapp-china.md
index a27db17..b628b3f 100644
--- a/source/_posts/facebook-instagram-whatsapp-china.md
+++ b/source/_posts/facebook-instagram-whatsapp-china.md
@@ -1,6 +1,6 @@
---
title: Access Facebook/Instagram/Whatsapp/Google in China
-subtitle: Data roaming, commercial VPN provider to rolling your own VPN.
+excerpt: Data roaming, commercial VPN provider to rolling your own VPN.
date: 2018-12-31
lastUpdated: 2019-01-13
tags:
diff --git a/source/_posts/firefox-doh-cloudflare.md b/source/_posts/firefox-doh-cloudflare.md
index fbf2f18..7a3b8af 100644
--- a/source/_posts/firefox-doh-cloudflare.md
+++ b/source/_posts/firefox-doh-cloudflare.md
@@ -1,6 +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.
+excerpt: It's not enabled by default and you can easily switch to other providers.
date: 2019-05-25
tags:
- firefox
diff --git a/source/_posts/firefox-instances-profiles.md b/source/_posts/firefox-instances-profiles.md
index 5837950..e0fb489 100644
--- a/source/_posts/firefox-instances-profiles.md
+++ b/source/_posts/firefox-instances-profiles.md
@@ -1,6 +1,6 @@
---
title: How to run more than one Firefox instance
-subtitle: Using Firefox profiles, you can use more than two instances.
+excerpt: Using Firefox profiles, you can use more than two instances.
date: 2019-04-07
lastUpdated: 2019-08-09
tags:
diff --git a/source/_posts/gnu-vs-busybox-tools.md b/source/_posts/gnu-vs-busybox-tools.md
index 3b0b500..eade1fe 100644
--- a/source/_posts/gnu-vs-busybox-tools.md
+++ b/source/_posts/gnu-vs-busybox-tools.md
@@ -1,6 +1,6 @@
---
title: GNU vs BusyBox Unix tools
-subtitle: Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave differently.
+excerpt: Alpine uses BusyBox while Ubuntu uses GNU tools, and they behave differently.
date: 2018-10-13
lastUpdated: 2018-10-31
tags:
diff --git a/source/_posts/hexo-blog-github.md b/source/_posts/hexo-blog-github.md
index bd893f2..e24e1fd 100644
--- a/source/_posts/hexo-blog-github.md
+++ b/source/_posts/hexo-blog-github.md
@@ -1,6 +1,6 @@
---
title: How to create a Hexo blog on GitHub Pages
-subtitle: Host your Hexo blog for free on GitHub Pages.
+excerpt: Host your Hexo blog for free on GitHub Pages.
date: 2018-11-10
tags:
- hexo
@@ -130,7 +130,7 @@ Change the website's author and name
```yml
title:
-subtitle:
+excerpt:
description:
author:
```
diff --git a/source/_posts/hide-folders-caja-side-pane.md b/source/_posts/hide-folders-caja-side-pane.md
index de27113..eb9f436 100644
--- a/source/_posts/hide-folders-caja-side-pane.md
+++ b/source/_posts/hide-folders-caja-side-pane.md
@@ -1,6 +1,6 @@
---
title: Hide folders of Caja side pane
-subtitle: How to hide them.
+excerpt: How to hide them.
date: 2018-10-02
tags:
- linux
diff --git a/source/_posts/how-to-create-a-hexo-blog.md b/source/_posts/how-to-create-a-hexo-blog.md
index a2dec87..4beb5a8 100644
--- a/source/_posts/how-to-create-a-hexo-blog.md
+++ b/source/_posts/how-to-create-a-hexo-blog.md
@@ -1,6 +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.
+excerpt: Create a website/blog using Hexo on GitLab Pages for free using this detailed guide.
date: 2018-09-21
lastUpdated: 2018-11-10
tags:
@@ -111,7 +111,7 @@ Change the website's author and name
```yml
title:
-subtitle:
+excerpt:
description:
author:
```
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 8885907..7be58d8 100644
--- a/source/_posts/how-to-remove-windows-10-default-apps.md
+++ b/source/_posts/how-to-remove-windows-10-default-apps.md
@@ -1,6 +1,6 @@
---
title: How to remove Windows 10 default apps
-subtitle: How to get rid of these bloatware.
+excerpt: How to get rid of these bloatware.
date: 2018-09-26
lastUpdated: 2019-03-01
tags:
diff --git a/source/_posts/make-hexo-blog-smaller.md b/source/_posts/make-hexo-blog-smaller.md
index 22e2e47..9207639 100644
--- a/source/_posts/make-hexo-blog-smaller.md
+++ b/source/_posts/make-hexo-blog-smaller.md
@@ -1,6 +1,6 @@
---
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.
+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
tags:
diff --git a/source/_posts/make-pdf-files-smaller.md b/source/_posts/make-pdf-files-smaller.md
index bcec378..314251c 100644
--- a/source/_posts/make-pdf-files-smaller.md
+++ b/source/_posts/make-pdf-files-smaller.md
@@ -1,6 +1,6 @@
---
title: Make PDF files smaller
-subtitle: Convert to grayscale and reduce the resolution.
+excerpt: Convert to grayscale and reduce the resolution.
date: 2019-01-05
tags:
- pdf
diff --git a/source/_posts/microg-google-play-replacement.md b/source/_posts/microg-google-play-replacement.md
index 84c514d..23c790c 100644
--- a/source/_posts/microg-google-play-replacement.md
+++ b/source/_posts/microg-google-play-replacement.md
@@ -1,6 +1,6 @@
---
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.
+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
tags:
diff --git a/source/_posts/recommended-android-apps.md b/source/_posts/recommended-android-apps.md
index 4036a29..97279e3 100644
--- a/source/_posts/recommended-android-apps.md
+++ b/source/_posts/recommended-android-apps.md
@@ -1,6 +1,6 @@
---
title: Recommended Android apps
-subtitle: Apps I'm currently using and recommend to everyone.
+excerpt: Apps I'm currently using and recommend to everyone.
date: 2019-01-07
lastUpdated: 2019-04-30
tags:
diff --git a/source/_posts/replace-truecrypt-keepassx-adblock-plus.md b/source/_posts/replace-truecrypt-keepassx-adblock-plus.md
index bea68c9..cec1ff5 100644
--- a/source/_posts/replace-truecrypt-keepassx-adblock-plus.md
+++ b/source/_posts/replace-truecrypt-keepassx-adblock-plus.md
@@ -1,6 +1,6 @@
---
title: You should switch to these replacements of TrueCrypt/KeePassX/Adblock Plus
-subtitle: Some have been discontinued while others have been commercialised.
+excerpt: Some have been discontinued while others have been commercialised.
date: 2019-01-15
tags:
- linux
diff --git a/source/_posts/running-locally-installed-node-packages.md b/source/_posts/running-locally-installed-node-packages.md
index 5cdfb20..2e75fab 100644
--- a/source/_posts/running-locally-installed-node-packages.md
+++ b/source/_posts/running-locally-installed-node-packages.md
@@ -1,6 +1,6 @@
---
title: Running locally installed node packages
-subtitle: How to run binaries of locally installed node packages.
+excerpt: How to run binaries of locally installed node packages.
date: 2018-10-24
tags:
- node
diff --git a/source/_posts/secure-node-modules-snyk.md b/source/_posts/secure-node-modules-snyk.md
index 3e5b829..fb449ea 100644
--- a/source/_posts/secure-node-modules-snyk.md
+++ b/source/_posts/secure-node-modules-snyk.md
@@ -1,6 +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.
+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
tags:
diff --git a/source/_posts/snyk-patch-alpine-docker.md b/source/_posts/snyk-patch-alpine-docker.md
index 4a668f0..f1bb853 100644
--- a/source/_posts/snyk-patch-alpine-docker.md
+++ b/source/_posts/snyk-patch-alpine-docker.md
@@ -1,6 +1,6 @@
---
title: Snyk failed to patch in Alpine docker
-subtitle: Synk depends on GNU version of patch utility.
+excerpt: Synk depends on GNU version of patch utility.
date: 2018-10-31
lastUpdated: 2019-03-09
tags:
diff --git a/source/_posts/spellcheck-language-ghostwriter.md b/source/_posts/spellcheck-language-ghostwriter.md
index 4de15f3..40cee54 100644
--- a/source/_posts/spellcheck-language-ghostwriter.md
+++ b/source/_posts/spellcheck-language-ghostwriter.md
@@ -1,6 +1,6 @@
---
title: Change spellcheck language in Ghostwriter
-subtitle: It supports Hunspell dictionaries for spellcheck of other languages.
+excerpt: It supports Hunspell dictionaries for spellcheck of other languages.
date: 2018-10-14
lastUpdated: 2019-06-06
tags:
diff --git a/source/_posts/statistical-test.md b/source/_posts/statistical-test.md
index 0be078a..57b7b78 100644
--- a/source/_posts/statistical-test.md
+++ b/source/_posts/statistical-test.md
@@ -1,6 +1,6 @@
---
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.
+excerpt: 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
diff --git a/source/_posts/unix-tools-line-endings.md b/source/_posts/unix-tools-line-endings.md
index 3b76290..e19a4aa 100644
--- a/source/_posts/unix-tools-line-endings.md
+++ b/source/_posts/unix-tools-line-endings.md
@@ -1,6 +1,6 @@
---
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.
+excerpt: 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
diff --git a/source/_posts/validity-gitlab-ci-config.md b/source/_posts/validity-gitlab-ci-config.md
index 94d6282..3298b3c 100644
--- a/source/_posts/validity-gitlab-ci-config.md
+++ b/source/_posts/validity-gitlab-ci-config.md
@@ -1,6 +1,6 @@
---
title: How to check validity of GitLab CI config
-subtitle: How to verify/lint the config.
+excerpt: How to verify/lint the config.
date: 2018-10-25
tags:
- gitlab
diff --git a/source/_posts/view-image-dark-reader-firefox.md b/source/_posts/view-image-dark-reader-firefox.md
index 3f70a8a..2e04216 100644
--- a/source/_posts/view-image-dark-reader-firefox.md
+++ b/source/_posts/view-image-dark-reader-firefox.md
@@ -1,6 +1,6 @@
---
title: Dark Reader breaks image view in Firefox
-subtitle: Use this workaround to view the whole image.
+excerpt: Use this workaround to view the whole image.
date: 2019-06-28
tags:
- firefox
diff --git a/source/_posts/word-break-limesurvey.md b/source/_posts/word-break-limesurvey.md
index da1d4c8..f8eaf1a 100644
--- a/source/_posts/word-break-limesurvey.md
+++ b/source/_posts/word-break-limesurvey.md
@@ -1,6 +1,6 @@
---
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.
+excerpt: 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
diff --git a/themes/typing/layout/_partial/archive-post.ejs b/themes/typing/layout/_partial/archive-post.ejs
index 5f2fbd6..c06db75 100644
--- a/themes/typing/layout/_partial/archive-post.ejs
+++ b/themes/typing/layout/_partial/archive-post.ejs
@@ -3,7 +3,7 @@
<%- post.subtitle %>
+ <% if (post.excerpt) { %> +<%- post.excerpt %>
<% } %>