mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-10 01:24:47 -04:00
content: Update css.TailwindCSS example
This commit is contained in:
parent
49a2e7d71b
commit
1f6614ee8e
@ -60,7 +60,7 @@ target = "css"
|
|||||||
Step 3
|
Step 3
|
||||||
: Create a CSS entry file:
|
: Create a CSS entry file:
|
||||||
|
|
||||||
{{< code file=assets/css/main.css >}}
|
{{< code file=assets/css/main.css copy=true >}}
|
||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
@source "hugo_stats.json";
|
@source "hugo_stats.json";
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
@ -71,6 +71,7 @@ Step 4
|
|||||||
: Create a partial template to process the CSS with the Tailwind CSS CLI:
|
: Create a partial template to process the CSS with the Tailwind CSS CLI:
|
||||||
|
|
||||||
{{< code file=layouts/partials/css.html copy=true >}}
|
{{< code file=layouts/partials/css.html copy=true >}}
|
||||||
|
{{ with (templates.Defer (dict "key" "global")) }}
|
||||||
{{ with resources.Get "css/main.css" }}
|
{{ with resources.Get "css/main.css" }}
|
||||||
{{ $opts := dict
|
{{ $opts := dict
|
||||||
"minify" hugo.IsProduction
|
"minify" hugo.IsProduction
|
||||||
@ -86,6 +87,7 @@ Step 4
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
Step 5
|
Step 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user