From f6afc29c8cc7ebf0442d403f4f4ce0e0f284f004 Mon Sep 17 00:00:00 2001 From: "Chris K.Y. FUNG" <8746768+chriskyfung@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:18:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9docs(posts):=20update=20last=20modi?= =?UTF-8?q?fied=20dates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/2017-11-27-media.md | 20 ++++++++++++------ _posts/2017-11-28-code.md | 5 +++-- _posts/2021-07-30-front-matter.md | 35 +++++++++++++++++-------------- _posts/2021-08-02-config-guide.md | 2 +- _posts/2021-08-24-plugins.md | 12 +++++++---- 5 files changed, 45 insertions(+), 29 deletions(-) diff --git a/_posts/2017-11-27-media.md b/_posts/2017-11-27-media.md index 46291a07..3e473936 100644 --- a/_posts/2017-11-27-media.md +++ b/_posts/2017-11-27-media.md @@ -2,20 +2,28 @@ layout: post title: Media date: 2021-02-25 18:42:00 +0800 +last_modified_at: 2021-03-21 16:01 +0800 author: chris -category: [feature, doc] -tags: [image, audio, youtube, AMP, styles, demo] +category: + - feature + - doc +tags: + - image + - audio + - youtube + - AMP + - styles + - demo permalink: /media/ -image: +image: path: /assets/images/digital-1985681_730.png class: shadow-none -excerpt: "The demos and docs for Images, Videos, and Audios in AMP." +excerpt: The demos and docs for Images, Videos, and Audios in AMP. amp: youtube: true css: syntax: true -custom_head: >- - +custom_head: --- {% include toc.md %} diff --git a/_posts/2017-11-28-code.md b/_posts/2017-11-28-code.md index 3c4c5d8d..a2091f5a 100644 --- a/_posts/2017-11-28-code.md +++ b/_posts/2017-11-28-code.md @@ -1,7 +1,7 @@ --- layout: post title: Code Block -date: 2021-03-21 00:00:00 +date: 2021-03-21 16:01 +0800 last_modified_at: 2024-01-13 09:01 +0800 author: Chris category: @@ -12,7 +12,8 @@ tags: - markdown - demo permalink: /code/ -image: +slug: " " +image: path: /assets/images/ubuntu-3145957_640.png css: syntax: true diff --git a/_posts/2021-07-30-front-matter.md b/_posts/2021-07-30-front-matter.md index af0aaf74..c4053d6d 100644 --- a/_posts/2021-07-30-front-matter.md +++ b/_posts/2021-07-30-front-matter.md @@ -2,10 +2,11 @@ layout: post title: Front Matter Guide date: 2021-07-31 12:05 +0800 -last_modified_at: 2021-09-28 15:00 +0800 +last_modified_at: 2022-02-10 22:02 +0800 category: [doc] tags: [front matter, styles, AMP] permalink: /front-matter-guide/ +slug: " " redirect_from: [/front-matter/] image: path: /assets/images/frontend-4342425_730.png @@ -33,25 +34,27 @@ A Jekyll post should contain the front matters as the following example: --- layout: post permalink: /blog/my-first-post/ +slug: index.html title: My first blog post date: 2020-01-31 07:30 +0000 -last_modified_at: 2021-07-31 +0000 +last_modified_at: 2024-01-16 12:01 +0800 category: [category1, category2] tags: [tag1, tag2, tag3] excerpt: This is the first blog post for my Jekyll site. --- ``` -| Attribute | Description | -| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `layout` | The Jekyll layout file to use.
_Options:_ `page`{:.plaintext}, `post`{:.plaintext}, `archive`{:.plaintext}, `category-list`{:.plaintext} and `tag-list`{:.plaintext}.
**Note**: `page-right-sidebar`{:.plaintext} and `post-left-sidebar`{:.plaintext} are deprecated. | -| `title` | The title of the page or post. | -| `date` | The date here overrides the date from the name of the post file.
**Note**: A date is specified in the format `YYYY-MM-DD HH:MM:SS +/-TTTT`{:.plaintext}; hours, minutes, seconds, and timezone offset are optional. | -| `last_modified_at` | (_Optional_) The date when the post was the last modified.
**Note**: A date is specified in the format `YYYY-MM-DD HH:MM:SS +/-TTTT`{:.plaintext}; hours, minutes, seconds, and timezone offset are optional. | -| `permalink` | (_Optional_) The custom URL for the page or post, if you need your processed blog post URLs to be something other than the site-wide style. _Default:_ `/year/month/day/title.html`{:.plaintext}. | -| `category` | (_Optional_) One or multiple categories that the post belongs to. | -| `tags` | (_Optional_) One or multiple tags that the post associates with. | -| `excerpt` | (_Optional_) The short text to show on the card of the list/grid of posts, and use as the meta description of the page or post. | +| Attribute | Description | +| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `layout` | The Jekyll layout file to use.
_Options:_ `page`{:.plaintext}, `post`{:.plaintext}, `archive`{:.plaintext}, `category-list`{:.plaintext} and `tag-list`{:.plaintext}.
**Note**: `page-right-sidebar`{:.plaintext} and `post-left-sidebar`{:.plaintext} are deprecated. | +| `title` | The title of the page or post. | +| `date` | The date here overrides the date from the name of the post file.
**Note**: A date is specified in the format `YYYY-MM-DD HH:MM:SS +/-TTTT`{:.plaintext}; hours, minutes, seconds, and timezone offset are optional. | +| `last_modified_at` | (_Optional_) The date when the post was the last modified.
**Note**: A date is specified in the format `YYYY-MM-DD HH:MM:SS +/-TTTT`{:.plaintext}; hours, minutes, seconds, and timezone offset are optional. | +| `permalink` | (_Optional_) The custom URL for the page or post, if you need your processed blog post URLs to be something other than the site-wide style. _Default:_ `/year/month/day/title.html`{:.plaintext}. | +| `slug` | (Optional) The custom name for the page or post file, if you need your processed blog post file names to be something other than the original name. Default: The original file name.
**Note**: If the `permalink` option is set to a string that ends with `/`, you need to set the slug option to `" "` or `index.html` to avoid generating an invalid URL for the site preview feature of Front Matter CMS. | +| `category` | (_Optional_) One or multiple categories that the post belongs to. | +| `tags` | (_Optional_) One or multiple tags that the post associates with. | +| `excerpt` | (_Optional_) The short text to show on the card of the list/grid of posts, and use as the meta description of the page or post. | **💡 See:** [Front Matter \| Jekyllrb](https://jekyllrb.com/docs/front-matter/ "Official Jekyll Documentation") @@ -77,7 +80,7 @@ image: **Note**: The front matter `image` also inherits the properties from [Jekyll Feed](https://github.com/jekyll/jekyll-feed#optional-front-matter) and [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/advanced-usage.md#customizing-image-output). -### Hide Featured Image on a Page/Post +### Hide Featured Image on A Post If you do not want to render the featured image on a post, append a `hide` option to the `image` variable, _e.g._: @@ -89,7 +92,7 @@ image: ### Remove Box Shadow from Featured Image -If you want to remove the shadow of the featured image on the post page, append the following class to the `image` variable, _e.g._ +If you want to remove the shadow of the featured image on a post, append the following class to the `image` variable, _e.g._ ```yaml image: @@ -209,7 +212,7 @@ custom_head: >- **Options:** `left`, `right`, and `none` -For example, you can set a left sidebar on a post page by the following: +For example, you can set a left sidebar on a post by the following: ```yaml sidebar: left @@ -302,7 +305,7 @@ download: ## Exclude from Sitemap -> If you would like to exclude specific pages/posts from the sitemap set the sitemap flag to false in the front matter for the page/post. +> If you would like to exclude specific pages/posts from the sitemap set the sitemap flag to false in the front matter for the page or post. > > ```yaml sitemap: false diff --git a/_posts/2021-08-02-config-guide.md b/_posts/2021-08-02-config-guide.md index 6b1f8164..b2ff3691 100644 --- a/_posts/2021-08-02-config-guide.md +++ b/_posts/2021-08-02-config-guide.md @@ -2,7 +2,7 @@ layout: post title: Config Guide date: 2021-08-24 00:01 +0800 -last_modified_at: 2023-03-02 16:30 +0800 +last_modified_at: 2024-01-16 09:30 +0800 category: [doc] tags: [_config] permalink: /config-guide/ diff --git a/_posts/2021-08-24-plugins.md b/_posts/2021-08-24-plugins.md index e5b09b2c..2ee40d8c 100644 --- a/_posts/2021-08-24-plugins.md +++ b/_posts/2021-08-24-plugins.md @@ -2,17 +2,21 @@ layout: post title: Plugins and Extensions date: 2021-09-08 12:00 +0800 -category: [doc] -tags: [plugin, _config] +last_modified_at: 2024-01-10 22:23 +0800 +category: + - doc +tags: + - plugin + - _config permalink: /plugins/ +slug: " " image: path: /assets/images/puzzle-3311601.svg excerpt: List of Jekyll plugins being used and/or supported by this AMP Jekyll theme css: badge: true syntax: true - custom: >- - hr ~ h2 { color: #675bff; margin: -.5em } + custom: "hr ~ h2 { color: #675bff; margin: -.5em }" --- {% include toc.md %}