Skip to content

Commit

Permalink
all pages will need featured images
Browse files Browse the repository at this point in the history
adds default image to config
  • Loading branch information
mdlincoln committed Aug 19, 2019
1 parent 0c6ba24 commit 2217d38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: default
---

<article {% if page.feature-img %}class="feature-image" {% endif %}>
<article class="feature-image">
<header id="main"
style="background: linear-gradient(rgba(71,12,13,0.5), rgba(71,12,13,0.5)), url({{ page.feature-img | relative_url }});">
<h1 id="{{ page.title | default: "" | cgi_escape }}" class="title">
Expand Down
1 change: 1 addition & 0 deletions _pages/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Links
subtitle: Related resources
layout: page
feature-img: /assets/img/shx_banner.jpg
---
* [Blackfriars' Playhouse - The American Shakespeare Center](https://americanshakespearecenter.com/)
* [Carnegie Mellon University Department of English](https://www.cmu.edu/dietrich/english/)
Expand Down
2 changes: 1 addition & 1 deletion admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ collections:
- name: feature-img
label: Banner Image
widget: image
required: false
hint: Ideal size is 1425 x 600 px
default: /assets/img/shx_banner.jpg
- name: body
label: Content
widget: markdown
Expand Down

0 comments on commit 2217d38

Please sign in to comment.