summaryrefslogtreecommitdiffstats
path: root/docs/content/en/hugo-pipes/resource-from-string.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/hugo-pipes/resource-from-string.md')
-rwxr-xr-xdocs/content/en/hugo-pipes/resource-from-string.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/content/en/hugo-pipes/resource-from-string.md b/docs/content/en/hugo-pipes/resource-from-string.md
index 8b942d2f3..ae7598ebe 100755
--- a/docs/content/en/hugo-pipes/resource-from-string.md
+++ b/docs/content/en/hugo-pipes/resource-from-string.md
@@ -4,7 +4,6 @@ linkTitle: Resource from String
description: Hugo Pipes allows the creation of a resource from a string.
date: 2018-07-14
publishdate: 2018-07-14
-lastmod: 2018-07-14
categories: [asset management]
keywords: []
menu:
@@ -13,7 +12,6 @@ menu:
weight: 90
weight: 90
sections_weight: 90
-draft: false
---
It is possible to create a resource directly from the template using `resources.FromString` which takes two arguments, the given string and the resource target path.
@@ -26,6 +24,6 @@ The following example creates a resource file containing localized variables for
{{ $vars := $string | resources.FromString $targetPath }}
{{ $global := resources.Get "js/global.js" | resources.Minify }}
-<script type="text/javascript" src="{{ $vars.Permalink }}"></script>
-<script type="text/javascript" src="{{ $global.Permalink }}"></script>
+<script src="{{ $vars.Permalink }}"></script>
+<script src="{{ $global.Permalink }}"></script>
```