1

What is the right way to add a Google web font css dependency to a grails app using the resources plugin?

For some reason, the grails resources plugin seems to want to remove the query string.

modules = {
    mainLayout {
        dependsOn 'bootstrap-css,bootstrap-responsive-css,bootstrap-dropdown'
        resource url: 'css/main.css'
        resource url: 'http://fonts.googleapis.com/css?family=Snowburst One', attrs: [type: "css"]
    }
}

The HTML has this:

4

1 に答える 1

0

メイン レイアウト ファイルに Web フォント a pi へのリンクを含めます。

<link href='http://fonts.googleapis.com/css?family=.../>
于 2013-04-10T22:14:48.843 に答える