Skip to content

Spotlight revision. and theming options#1

Merged
dcnb merged 9 commits intomainfrom
spotlight-revision
Nov 18, 2025
Merged

Spotlight revision. and theming options#1
dcnb merged 9 commits intomainfrom
spotlight-revision

Conversation

@dcnb
Copy link
Collaborator

@dcnb dcnb commented Nov 18, 2025

This pull request introduces several improvements and refinements to the theme configuration and essay feature asides, with a focus on enhancing customization and user experience for media display. The most significant changes include expanded theme options, improved control over how media and asides are displayed, and minor metadata and content adjustments.

Theme and Configuration Enhancements:

  • Expanded the _data/theme.yml configuration with new options for base theme (essay or monograph), font customization, and featured image display style, providing greater flexibility in the site's appearance.
  • Removed redundant font settings from a later section in _data/theme.yml to avoid duplication and potential confusion.

Feature Aside and Media Display Improvements:

  • Added a gallery parameter to the aside.html and image-aside.html includes, allowing asides and images to link either to the spotlight viewer or directly to the item page, improving accessibility and user control over media interaction. [1] [2]
  • Updated the logic in image-aside.html to respect the new gallery parameter, ensuring consistent behavior for both images and non-image media types.

Essay Content and Metadata Adjustments:

  • Standardized essay titles and bylines in _essay/of-a-monstrous-child.md and _essay/of-sleep.md for consistency. [1] [2]
  • Enhanced the essay "Of Sleep" by adding more targeted asides with specific objectid references and the new gallery parameter, enriching the reading experience with relevant media links.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces significant enhancements to the theme system and media handling capabilities, focusing on improved customization options and better control over media display in essays. The changes enable users to choose between essay and monograph base themes, customize image display styles, and control whether media opens in a spotlight viewer or links directly to item pages.

Key changes:

  • Added new theme configuration options including base theme selection (essay/monograph), font customization, and featured image display styles
  • Implemented a sophisticated spotlight media handler that supports multiple media types (YouTube, Vimeo, MP4, MP3, PDF) with gallery navigation
  • Enhanced aside and image components with a new gallery parameter to control media interaction behavior

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
_data/theme.yml Reorganized and expanded theme configuration with new base-theme, font, and image-style options
_layouts/essay-content.html Added custom footer script for spotlight handler and previous/next navigation buttons
_layouts/default.html Updated side-nav visibility logic to support monograph theme
_includes/essay/side-nav.html Refactored to support both essay and monograph themes with conditional rendering
_includes/essay/off-canvas-menu.html Extracted menu component for reuse across themes
_includes/essay/off-canvas-contents.html New component for monograph theme table of contents navigation
_includes/essay/js/spotlight-media-handler.html New JavaScript module for handling diverse media types in spotlight viewer
_includes/essay/feature/image-gallery.html Enhanced to support both direct image URLs and objectid-based gallery items
_includes/essay/feature/image-aside.html Added gallery parameter for controlling link behavior and improved non-image media display
_includes/essay/feature/aside.html Added gallery parameter support for media asides
_sass/_essay.scss Changed button link color from green to dark blue
_sass/_custom.scss Added custom spotlight viewer styling for item page buttons and responsive layout
assets/data/metadata.json Added objectid, display_template, and image_small fields to metadata export
_essay/of-sleep.md Enhanced with additional asides using new gallery parameter
_essay/of-a-monstrous-child.md Standardized title casing and updated byline

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +37 to +39
# HOME PAGE
#
# featured image is defined above
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate "HOME PAGE" section headers. Lines 22 and 37 both define "HOME PAGE" sections with similar comments. The structure should be reorganized to avoid this duplication and confusion about which section controls what.

Copilot uses AI. Check for mistakes.
dcnb and others added 2 commits November 17, 2025 19:47
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Nov 18, 2025

@dcnb I've opened a new pull request, #2, to work on those changes. Once the pull request is ready, I'll request review from you.

[WIP] Update Spotlight revision and theming options
@dcnb dcnb merged commit da20b72 into main Nov 18, 2025
@dcnb dcnb deleted the spotlight-revision branch November 18, 2025 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants