You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2025/07/15 22:45:36 UTC
(grails-static-website) branch master updated: Support variables in blog post title on blog index
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/grails-static-website.git
The following commit(s) were added to refs/heads/master by this push:
new bc5824ab05 Support variables in blog post title on blog index
bc5824ab05 is described below
commit bc5824ab05366e2b5e9357201008fa56da7b8878
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Tue Jul 15 18:45:26 2025 -0400
Support variables in blog post title on blog index
---
buildSrc/src/main/groovy/org/grails/gradle/BlogTask.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildSrc/src/main/groovy/org/grails/gradle/BlogTask.groovy b/buildSrc/src/main/groovy/org/grails/gradle/BlogTask.groovy
index 7698b97f5f..2e4ca6f091 100644
--- a/buildSrc/src/main/groovy/org/grails/gradle/BlogTask.groovy
+++ b/buildSrc/src/main/groovy/org/grails/gradle/BlogTask.groovy
@@ -397,7 +397,7 @@ class BlogTask extends DefaultTask {
mkp.yield RenderSiteTask.formatDate(htmlPost.metadata.date)
}
h2 {
- String title = htmlPost.metadata.title
+ String title = RenderSiteTask.replaceLineWithMetadata(htmlPost.metadata.title, htmlPost.metadata.toMap())
if (title.length() > MAX_TITLE_LENGTH) {
title ="${title.substring(0, MAX_TITLE_LENGTH)}..."
}