File tree Expand file tree Collapse file tree 8 files changed +367
-893
lines changed Expand file tree Collapse file tree 8 files changed +367
-893
lines changed Original file line number Diff line number Diff line change 2222 cache : ' npm'
2323 cache-dependency-path : package-lock.json
2424 registry-url : ' https://npm.pkg.github.com/'
25- - name : Install Tools
26- run : npm install -g postcss-cli autoprefixer
2725 - name : NPM install
2826 run : |
2927 npm config set "@skymatic:registry" https://npm.pkg.github.com/
Original file line number Diff line number Diff line change 33# Usage
44## Requirements
55* Hugo
6- * NPM
7- * postcss-cli (` npm install -g postcss-cli ` )
8- * autoprefixer (` npm install -g autoprefixer ` )
96* Fontawesome Pro ` npm config set "@skymatic:registry" https://npm.pkg.github.com/ && npm config set "//npm.pkg.github.com/:_authToken" TOKEN `
107
118## Building
Original file line number Diff line number Diff line change 11/* purgecss start ignore */
22@import 'tailwindcss' ;
33/* purgecss end ignore */
4- @import './custom.css' layer(components) ;
5- @import './fonts.css' layer(components) ;
4+ @import './custom.css' ;
5+ @import './fonts.css' ;
66@import '@skymatic/fontawesome-pro/css/all' layer(components);
77
88@plugin '@tailwindcss/forms' ;
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ enableemoji = true
1414 languageName = " Deutsch"
1515 languageCode = " de_DE"
1616
17+ [build ]
18+ [[build .cachebusters ]]
19+ source = ' layouts/.*'
20+ target = ' css'
21+
1722[outputs ]
1823 home = [" HTML" , " RSS" ]
1924 section = [" HTML" ]
Original file line number Diff line number Diff line change 5252 {{ end }}
5353 < meta name ="apple-itunes-app " content ="app-id=1560822163 ">
5454 {{ if hugo.IsServer }}
55- {{ $css := resources.Get "css/main.css" | postCSS }}
55+ {{ $css := resources.Get "css/main.css" | css.TailwindCSS }}
5656 < link rel ="stylesheet " href ="{{ $css.RelPermalink }} " media ="screen " />
5757 {{ else }}
58- {{ $css := resources.Get "css/main.css" | postCSS | minify | fingerprint }}
58+ {{ $tailwindOpts := dict "minify" true }}
59+ {{ $css := resources.Get "css/main.css" | css.TailwindCSS $tailwindOpts | fingerprint }}
5960 < link rel ="stylesheet " href ="{{ $css.RelPermalink }} " integrity ="{{ $css.Data.Integrity }} " media ="screen " />
6061 {{ end }}
6162 < link rel ="alternate " type ="application/rss+xml " title ="RSS Feed " href ="{{ .Site.LanguagePrefix }}/feed.xml " />
You can’t perform that action at this time.
0 commit comments