From 0188226c6e13eb43c18777d36d24756ed1c752f8 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 4 Sep 2017 10:23:45 +0800 Subject: [PATCH] Implement 'type' metadata --- 404.html | 3 ++- CONTRIBUTING.md | 8 ++++++++ _config.yml | 1 + _data/content.yml | 7 ++++++- _includes/2017/search-form.html | 2 +- _includes/2017/top-nav.html | 10 ++++++++-- _includes/meta.html | 4 ++-- _includes/social-list.html | 2 +- _layouts/2017/home.html | 5 +---- _layouts/2017/not_found.html | 14 +++----------- _layouts/2017/sheet.html | 1 + _layouts/home.html | 1 + index.md | 4 ++-- index@2016.md | 3 ++- 14 files changed, 39 insertions(+), 26 deletions(-) diff --git a/404.html b/404.html index 755cbd769..1e5d479be 100644 --- a/404.html +++ b/404.html @@ -1,4 +1,5 @@ --- layout: 2017/not_found +type: error +permalink: /404.html --- -This cheatsheet doesn't exist. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1b9317b3b..c77c5696f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -54,6 +54,14 @@ ads: false # Add this to disable ads weight: -5 # lower number = higher in related posts list deprecated: true # Don't show in related posts prism_languages: [vim] # Extra syntax highlighting +tags: + - WIP + - Featured + +# Special pages: +# (don't set these for cheatsheets) +type: home # home | article | error +og_type: website # opengraph type --- ``` diff --git a/_config.yml b/_config.yml index 945be62dd..73e1bda33 100644 --- a/_config.yml +++ b/_config.yml @@ -36,6 +36,7 @@ defaults: type: pages values: layout: "default" + og_type: article type: article category: "Others" excerpt_separator: "" diff --git a/_data/content.yml b/_data/content.yml index 3a20a9e3b..8bd3e8341 100644 --- a/_data/content.yml +++ b/_data/content.yml @@ -11,7 +11,7 @@ sheet: suffix: cheatsheet social_list: - default_description: "Grand collection of web development cheatsheets" + default_description: "Ridiculous collection of web development cheatsheets" description: "The ultimate cheatsheet for TITLE." facebook_share: Share on Facebook twitter_share: Share on Twitter @@ -33,3 +33,8 @@ search_form: comments_area: suffix: for this cheatsheet. link: "Write yours!" + +not_found: + title: Not found + description: Sorry, we don't have a cheatsheet for this yet. Try searching! + home: Back to home diff --git a/_includes/2017/search-form.html b/_includes/2017/search-form.html index ba814edc8..f3f705842 100644 --- a/_includes/2017/search-form.html +++ b/_includes/2017/search-form.html @@ -1,6 +1,6 @@