From 7510d21c08dbd4cc82971e2869f5853afbde4370 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 13 Dec 2020 00:45:22 +0000 Subject: [PATCH] refactor: convert featured.md to YAML --- content/home/featured.md | 86 +++++++++------------------- exampleSite/content/home/featured.md | 10 +--- 2 files changed, 30 insertions(+), 66 deletions(-) diff --git a/content/home/featured.md b/content/home/featured.md index 5fa4c52..6760a7c 100644 --- a/content/home/featured.md +++ b/content/home/featured.md @@ -1,68 +1,36 @@ -+++ -# A Featured Publications section created with the Featured Content widget. -# This section displays publications from `content/publication/` which have -# `featured = true` in their front matter. +--- +# An instance of the Featured widget. +# Documentation: https://wowchemy.com/docs/page-builder/ +widget: featured -widget = "featured" # See https://sourcethemes.com/academic/docs/page-builder/ -headless = true # This file represents a page section. -active = true # Activate this widget? true/false -weight = 80 # Order that this section will appear. +# This file represents a page section. +headless: true -title = "Featured Publications" -subtitle = "" +# Order that this section appears on the page. +weight: 80 -[content] - # Page type to display. E.g. post, talk, or publication. - page_type = "publication" - - # Choose how much pages you would like to display (0 = all pages) - count = 0 +title: Featured Publications +subtitle: "" - # Page order. Descending (desc) or ascending (asc) date. - order = "desc" +content: + # Page type to display. E.g. post, talk, publication... + page_type: publication + # Choose how many pages you would like to display (0 = all pages) + count: 0 + # Filter on criteria + filters: + author: "" + category: "" + publication_type: "" + tag: "" + # Page order: descending (desc) or ascending (asc) date. + order: desc - # Show a "See all pages" link underneath the featured content? - link_to_archive = false - - # Filter posts by a taxonomy term. - [content.filters] - tag = "" - category = "" - publication_type = "" - author = "" - -[design] - # Toggle between the various page layout types. +design: + # Choose a view for the listings: # 1 = List # 2 = Compact # 3 = Card # 4 = Citation (publication only) - view = 3 - -[design.background] - # Apply a background color, gradient, or image. - # Uncomment (by removing `#`) an option to apply it. - # Choose a light or dark text color by setting `text_color_light`. - # Any HTML color name or Hex value is valid. - - # Background color. - # color = "navy" - - # Background gradient. - # gradient_start = "DeepSkyBlue" - # gradient_end = "SkyBlue" - - # Background image. - # image = "background.jpg" # Name of image in `static/media/`. - # image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque. - - # Text color (true=light or false=dark). - # text_color_light = true - -[advanced] - # Custom CSS. - css_style = "" - - # CSS class. - css_class = "" -+++ + view: 3 +--- diff --git a/exampleSite/content/home/featured.md b/exampleSite/content/home/featured.md index a1b7ab1..6760a7c 100644 --- a/exampleSite/content/home/featured.md +++ b/exampleSite/content/home/featured.md @@ -1,11 +1,8 @@ --- # An instance of the Featured widget. -# Documentation: https://sourcethemes.com/academic/docs/page-builder/ +# Documentation: https://wowchemy.com/docs/page-builder/ widget: featured -# Activate this widget? true/false -active: true - # This file represents a page section. headless: true @@ -18,7 +15,7 @@ subtitle: "" content: # Page type to display. E.g. post, talk, publication... page_type: publication - # Choose how much pages you would like to display (0 = all pages) + # Choose how many pages you would like to display (0 = all pages) count: 0 # Filter on criteria filters: @@ -28,8 +25,7 @@ content: tag: "" # Page order: descending (desc) or ascending (asc) date. order: desc - # Show a "See all" link? - link_to_archive: false + design: # Choose a view for the listings: # 1 = List