-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1072 from ecds/feature/homepage-featured-story
Update homepage model/template to add featured story
- Loading branch information
Showing
4 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated by Django 3.2.25 on 2024-09-13 16:25 | ||
|
||
from django.db import migrations, models | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("cms", "0004_auto_20200224_2038"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="featured_story_image", | ||
field=models.ForeignKey( | ||
blank=True, | ||
help_text="Thumbnail image for the featured story", | ||
null=True, | ||
on_delete=models.deletion.SET_NULL, | ||
related_name="+", | ||
to="wagtailimages.image", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="featured_story_summary", | ||
field=models.TextField( | ||
blank=True, help_text="A summary or excerpt of the featured story" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="featured_story_title", | ||
field=models.CharField( | ||
blank=True, help_text="Title of the featured story", max_length=255 | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="featured_story_url", | ||
field=models.URLField(blank=True, help_text="Link to the featured story"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
{% load wagtailimages_tags %} | ||
|
||
<div class="uk-section uk-section-default section-offset"> | ||
<div class="uk-container"> | ||
<div class="uk-child-width-expand@s" uk-grid> | ||
{% if page.featured_story_image %} | ||
<div class="uk-width-1-4@s"> | ||
<img src="https://images.unsplash.com/photo-1512820790803-83ca734da794?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDF8fGJvb2slMkN8ZW58MHx8fHwxNjM0NTY2ODcy&ixlib=rb-1.2.1&q=80&w=400" alt="Image" class="uk-width-1-1"> | ||
{% image page.featured_story_image max-700x700 class="uk-width-1-1" %} | ||
</div> | ||
<div class="uk-width-3-4@s"> | ||
<h2 class="title uk-margin-small-bottom">Reviving Sacred Song: The Sounding Spirit Collaborative and Its Impact on American Vernacular Music History</h2> | ||
{% else %} | ||
<div class="uk-width-4-4@s"> | ||
{% endif%} | ||
<h2 class="title uk-margin-small-bottom">{{ page.featured_story_title }}</h2> | ||
<p class="truncate-text paragraph"> | ||
The Sounding Spirit Collaborative engages sacred music from a dynamic era of American history. We make accessible and interpret historical sacred vernacular songbooks printed across territories and states spanning the southern United States from 1850 to 1925. Our ongoing scholarly edition and digital library work leverages collaborations between scholars, practitioners, librarians, and technologists to bring interdisciplinary, multi-modal expertise to the study and dissemination of these music books. These collaborations invite both scholarly and confessional reconsiderations of the role of sacred song in the lived experience of diverse communities. Working with texts and tunes often marginalized in music history, singers and scholars join Sounding Spirit in claiming a more diverse canon of southern vernacular sacred music. | ||
{{ page.featured_story_summary }} | ||
</p> | ||
<a class="uk-margin-top text-anchor uk-text-medium uk-text-bold">Read Full Story</a> | ||
<a href="{{ page.featured_story_url }}" class="uk-margin-top text-anchor uk-text-medium uk-text-bold"> | ||
Read Full Story | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters