Home

>

Tools

>

Ghost

>

Releases

>

2.19.4

Ghost Release: 2.19.4

Tag Name: 2.19.4

Release Date: 4/9/2019

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost 2.19.4: Enhanced Content Rendering and Sitemap Improvements

This minor release fixes two important bugs affecting content display and SEO. The update resolves an issue where styled last paragraphs weren't rendering properly on the front-end, ensuring all content displays as intended. It also corrects sitemap generation with proper dates and image values, improving search engine indexing. Additionally, the release includes updates to Casper theme and Ghost-Admin, along with some internal improvements to error handling and repository maintenance.

Highlight of the Release

    • Fixed rendering of styled last paragraphs on the front-end
    • Corrected sitemap generation with proper dates and image values
    • Improved error handling for theme checks
    • Updated Casper theme to version 2.9.9
    • Updated Ghost-Admin to version 2.19.4

Migration Guide

No migration steps are required for this release. This is a minor update that can be installed without any special considerations.

Upgrade Recommendations

This release is recommended for all Ghost users, especially those who:

  1. Have experienced issues with styled content not rendering properly in the last paragraph of posts
  2. Rely on sitemaps for SEO and have noticed issues with dates or images in their sitemaps

The update is backward compatible and should not cause any disruption to your site. Standard upgrade procedures apply:

  1. Back up your Ghost installation
  2. Follow the standard Ghost update process for your installation method (CLI, Docker, etc.)
  3. Verify your site functionality after the update

Bug Fixes

Fixed Last Paragraph Rendering Issue

  • Resolved an issue where the last paragraph wasn't rendering on the front-end when it contained styled content
  • The previous conditional for removing trailing blank paragraphs wasn't handling paragraphs where the first child element was not a text node (e.g., when content was italic)
  • Implemented a more robust method that fully walks the DOM of the last paragraph node to extract its equivalent .textContent value for the "last paragraph is blank" check

Fixed Sitemap Generation

  • Corrected sitemap generation with proper dates and image values (closes issue #10640)
  • Updated sitemap resources data to include certain previously missing fields
  • Fixed date handling for sitemap nodes
  • Ensures search engines receive accurate and complete sitemap information

New Features

No significant new features were introduced in this release. This update focuses primarily on bug fixes, performance improvements, and maintenance updates.

Security Updates

No security fixes were included in this release.

Performance Improvements

Improved Error Handling

  • Reduced the amount of log output for collision errors, decreasing log verbosity
  • Improved data passed into errorDetails during theme check for better diagnostics
  • Added notes for future refactoring of theme checking code

Repository Maintenance

  • Added .gitignore template from slimer repo
  • Removed duplicate entries in configuration files
  • Removed coverage report and related tasks from Gruntfile
  • Removed vim-specific ignores
  • These changes help maintain a cleaner repository and potentially improve build performance

Impact Summary

Ghost 2.19.4 delivers important fixes that improve content rendering and SEO capabilities. Content creators will benefit from reliable rendering of styled last paragraphs, ensuring their content appears exactly as intended. Site owners gain improved SEO through correctly generated sitemaps with proper dates and image values, potentially leading to better search engine indexing. Developers will appreciate the improved error handling and cleaner repository maintenance. While this is a minor release, the fixes address issues that could significantly impact content display and search engine visibility, making it a worthwhile update for all Ghost users.

Full Release Notes

  • 🐛 Fixed sitemap generation with correct date and images value (#10668) - Rishabh Garg
  • 🐛 Fixed last paragraph not rendering on front-end when it's styled - Kevin Ansfield

You can see the full change log for the details of every change included in this release.

Statistics:

File Changed13
Line Additions166
Line Deletions208
Line Changes374
Total Commits11

User Affected:

  • Content with styled last paragraphs (italic, bold, etc.) now renders correctly on the front-end
  • No more missing content when the final paragraph contains formatting

Contributors:

kevinansfieldallouisnazrshbhgrg