From 558304ff62a648e604b03afe3372ef9566aea850 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Tue, 21 Jun 2016 21:42:03 +0800 Subject: Update to support new metadata: title, description, tags and google-analytics (GA) and refactor render publish slide response function --- public/docs/yaml-metadata.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'public/docs') diff --git a/public/docs/yaml-metadata.md b/public/docs/yaml-metadata.md index 5fc6e1b8..539410c8 100644 --- a/public/docs/yaml-metadata.md +++ b/public/docs/yaml-metadata.md @@ -18,6 +18,39 @@ YAML metas Replace the "YAML metas" in this section with any YAML options as below. You can also refer to this note's source code. +title +--- +This option will set the note title which prior than content title. + +> default: not set + +**Example** +```xml +title: meta title +``` + +description +--- +This option will set the note description. + +> default: not set + +**Example** +```xml +description: meta description +``` + +tags +--- +This option will set the tags which prior than content tags. + +> default: not set + +**Example** +```xml +tags: features, cool, updated +``` + robots --- This option will give below meta in the note head meta: @@ -26,7 +59,7 @@ This option will give below meta in the note head meta: ``` So you can prevent any search engine index your note by set `noindex, nofollow`. -> default: not +> default: not set **Example** ```xml -- cgit v1.2.3