mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
1 parent
1121f74a54
commit
c5db4ba2b9
1 file changed
+2
-2
@@ -18,7 +18,7 @@ A prime use case for this is [CSS purging with PostCSS](#css-purging-with-postcs
|
|||||||
|
|
||||||
There are currently two limitations to this:
|
There are currently two limitations to this:
|
||||||
|
|
||||||
1. This only works for `*.html` files.
|
1. This only works in `*.html` templates (i.e. templates that produces HTML files).
|
||||||
2. You cannot manipulate the values returned from the resource's methods. E.g. the `upper` in this example will not work as expected:
|
2. You cannot manipulate the values returned from the resource's methods. E.g. the `upper` in this example will not work as expected:
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
@@ -67,4 +67,4 @@ Note that in the example above, the "CSS purge step" will only be applied to the
|
|||||||
{{ $css = $css | minify | fingerprint | resources.PostProcess }}
|
{{ $css = $css | minify | fingerprint | resources.PostProcess }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link href="{{ $css.RelPermalink }}" rel="stylesheet" />
|
<link href="{{ $css.RelPermalink }}" rel="stylesheet" />
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user