@@ -205,7 +205,7 @@ abstract class GuidesTask extends GrailsWebsiteTask {
205205 def guides = GuidesFetcher . fetchGuides(guidesYml)
206206 def tags = TagUtils . populateTags(guides)
207207 new File (pages, PAGE_NAME_GUIDES ). setText(
208- " title: Guides | Grails Framework\n body: guides\n JAVASCRIPT: $url /javascripts/search.js\n ---\n " +
208+ " title: Guides | Grails Framework\n body: guides\n ogurl: $u rl /guides/index.html \ n JAVASCRIPT: $url /javascripts/search.js\n ---\n " +
209209 GuidesPage . mainContent(guides, tags),
210210 ' UTF-8'
211211
@@ -215,7 +215,7 @@ abstract class GuidesTask extends GrailsWebsiteTask {
215215 for (def tag : tags) {
216216 def slug = " ${ tag.slug.toLowerCase()} .html"
217217 new File (tagsDir, slug). setText(
218- " ---\n title: Guides with tag: $tag . title | Grails Framework\n body: guides\n ---\n " +
218+ " ---\n title: Guides with tag: $tag . title | Grails Framework\n body: guides\n ogurl: $u rl /guides/tags/ $s lug \ n ---\n " +
219219 GuidesPage . mainContent(guides, tags, null , tag),
220220 ' UTF-8'
221221
@@ -225,7 +225,7 @@ abstract class GuidesTask extends GrailsWebsiteTask {
225225 for (def category : GuidesPage . categories. values()) {
226226 def slug = " ${ category.slug.toLowerCase()} .html"
227227 new File (categoriesDir, slug). setText(
228- " ---\n title: Guides at category $category . name | Grails Framework\n body: guides\n ---\n " +
228+ " ---\n title: Guides at category $category . name | Grails Framework\n body: guides\n ogurl: $u rl /guides/categories/ $s lug \ n ---\n " +
229229 GuidesPage . mainContent(guides, tags, category, null ),
230230 ' UTF-8'
231231 )
@@ -234,7 +234,7 @@ abstract class GuidesTask extends GrailsWebsiteTask {
234234 for (def version : GuidesPage . availableVersions(guides)) {
235235 def slug = " ${ version} .html"
236236 new File (versionsDir, slug). setText(
237- " ---\n title: Guides for Grails $version | Grails Framework\n body: guides\n ---\n " +
237+ " ---\n title: Guides for Grails $version | Grails Framework\n body: guides\n ogurl: $u rl /guides/versions/ $s lug \ n ---\n " +
238238 GuidesPage . mainContent(guides, tags, null , null , version),
239239 ' UTF-8'
240240 )
0 commit comments