diff --git a/archetypes/project.md b/archetypes/project/index.md similarity index 52% rename from archetypes/project.md rename to archetypes/project/index.md index 4625b398..ff845343 100644 --- a/archetypes/project.md +++ b/archetypes/project/index.md @@ -10,22 +10,11 @@ tags = [] # Project summary to display on homepage. summary = "" -# Optional image to display on homepage. -image_preview = "" - # Optional external URL for project (replaces project detail page). external_link = "" -# Does the project detail page use math formatting? -math = false - -# Does the project detail page use source code highlighting? -highlight = true - # Featured image -# Place your image in the `static/img/` folder and reference its filename below, e.g. `image = "example.jpg"`. +# To use, add an image named `featured.jpg/png` to your project's folder. [header] -image = "" -caption = "" - +caption = "" # Optionally add a caption to the featured image. +++ diff --git a/exampleSite/content/project/external-project/featured.jpg b/exampleSite/content/project/external-project/featured.jpg new file mode 100644 index 00000000..050f74d5 Binary files /dev/null and b/exampleSite/content/project/external-project/featured.jpg differ diff --git a/exampleSite/content/project/example-external-project.md b/exampleSite/content/project/external-project/index.md similarity index 70% rename from exampleSite/content/project/example-external-project.md rename to exampleSite/content/project/external-project/index.md index ca9402fb..779e518a 100644 --- a/exampleSite/content/project/example-external-project.md +++ b/exampleSite/content/project/external-project/index.md @@ -1,16 +1,13 @@ +++ -# Date this page was created. -date = 2016-04-27T00:00:00 - # Project title. title = "External Project" +# Date this page was created. +date = 2016-04-27T00:00:00 + # Project summary to display on homepage. summary = "An example of linking directly to an external project website using `external_link`." -# Optional image to display on homepage (relative to `static/img/` folder). -image_preview = "boards.jpg" - # Tags: can be used for filtering projects. # Example: `tags = ["machine-learning", "deep-learning"]` tags = ["Demo"] @@ -18,8 +15,8 @@ tags = ["Demo"] # Optional external URL for project (replaces project detail page). external_link = "http://example.org" -# Does the project detail page use math formatting? -math = false - +# Featured image +# To use, add an image named `featured.jpg/png` to your project's folder. +[header] +caption = "Photo by Toa Heftiba on Unsplash" # Optionally add a caption to the featured image. +++ - diff --git a/exampleSite/content/project/internal-project/featured.jpg b/exampleSite/content/project/internal-project/featured.jpg new file mode 100644 index 00000000..5d8815cc Binary files /dev/null and b/exampleSite/content/project/internal-project/featured.jpg differ diff --git a/exampleSite/content/project/deep-learning.md b/exampleSite/content/project/internal-project/index.md similarity index 89% rename from exampleSite/content/project/deep-learning.md rename to exampleSite/content/project/internal-project/index.md index 1132d4ed..49112303 100644 --- a/exampleSite/content/project/deep-learning.md +++ b/exampleSite/content/project/internal-project/index.md @@ -1,15 +1,12 @@ +++ +# Project title. +title = "Internal Project" + # Date this page was created. date = 2016-04-27T00:00:00 -# Project title. -title = "Deep Learning" - # Project summary to display on homepage. -summary = "Lorem ipsum dolor sit amet, consectetur adipiscing elit." - -# Optional image to display on homepage (relative to `static/img/` folder). -image_preview = "bubbles.jpg" +summary = "An example of using the in-built project page." # Tags: can be used for filtering projects. # Example: `tags = ["machine-learning", "deep-learning"]` @@ -18,14 +15,10 @@ tags = ["Deep Learning"] # Optional external URL for project (replaces project detail page). external_link = "" -# Does the project detail page use math formatting? -math = false - -# Optional featured image (relative to `static/img/` folder). +# Featured image +# To use, add an image named `featured.jpg/png` to your project's folder. [header] -image = "headers/bubbles-wide.jpg" -caption = "My caption :smile:" - +caption = "Photo by rawpixel on Unsplash" # Optionally add a caption to the featured image. +++ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis posuere tellus ac convallis placerat. Proin tincidunt magna sed ex sollicitudin condimentum. Sed ac faucibus dolor, scelerisque sollicitudin nisi. Cras purus urna, suscipit quis sapien eu, pulvinar tempor diam. Quisque risus orci, mollis id ante sit amet, gravida egestas nisl. Sed ac tempus magna. Proin in dui enim. Donec condimentum, sem id dapibus fringilla, tellus enim condimentum arcu, nec volutpat est felis vel metus. Vestibulum sit amet erat at nulla eleifend gravida. diff --git a/exampleSite/static/img/bubbles.jpg b/exampleSite/static/img/bubbles.jpg deleted file mode 100644 index d0d0b5cb..00000000 Binary files a/exampleSite/static/img/bubbles.jpg and /dev/null differ diff --git a/layouts/partials/publication_links.html b/layouts/partials/publication_links.html index 1c61729a..ed2273de 100644 --- a/layouts/partials/publication_links.html +++ b/layouts/partials/publication_links.html @@ -36,7 +36,7 @@ {{ i18n "btn_project" }} {{ else }} - {{ errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . }} + {{/* errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . */}} {{ end }} {{ end }} {{ else }} diff --git a/layouts/partials/talk_links.html b/layouts/partials/talk_links.html index b9fc3336..3d77fde0 100644 --- a/layouts/partials/talk_links.html +++ b/layouts/partials/talk_links.html @@ -27,7 +27,7 @@ {{ i18n "btn_project" }} {{ else }} - {{ errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . }} + {{/* errorf "The `projects` parameter in `content/%s` references a project file, `content/project/%s`, which cannot be found. Please either set `projects = []` or fix the reference." $.File.Path . */}} {{ end }} {{ end }} {{ range $.Params.url_custom }} diff --git a/layouts/partials/widgets/projects.html b/layouts/partials/widgets/projects.html index e30fdf35..0a28b076 100644 --- a/layouts/partials/widgets/projects.html +++ b/layouts/partials/widgets/projects.html @@ -71,18 +71,20 @@