static String latestGuides()

in buildSrc/src/main/groovy/org/grails/guides/GuidesPage.groovy [190:216]


    static String latestGuides(List<Guide> guides) {
        StringWriter writer = new StringWriter()
        MarkupBuilder html = new MarkupBuilder(writer)
        html.div(class: 'latestguides') {
            h3 class: 'columnheader', 'Latest Guides'
            ul {
                List<Guide> latestGuides = guides.findAll {
                    it.publicationDate
                }.sort { Guide a, Guide b ->
                    b.publicationDate <=> a.publicationDate
                }.take(NUMBER_OF_LATEST_GUIDES)
                latestGuides.each { Guide guide ->
                    li {
                        b guide.title
                        span {

                            mkp.yield new SimpleDateFormat('MMM dd, yyyy').format(guide.publicationDate)
                            mkp.yield ' - '
                            mkp.yield guide.category
                        }
                        a href: "${GUIDES_URL}/${guide.name}/guide/index.html", 'Read More'
                    }
                }
            }
        }
        writer.toString()
    }