From 3f901f09c7be956e5ccee99a6202d51ca361193d Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Wed, 6 Sep 2023 18:03:23 +0200 Subject: update tachyons usage --- assets/scss/style.scss | 5 +++-- layouts/partials/head.html | 5 +++-- package-lock.json | 40 ---------------------------------------- package.json | 5 ----- readme.org | 9 ++++++--- 5 files changed, 12 insertions(+), 52 deletions(-) delete mode 100644 package-lock.json delete mode 100644 package.json diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 38438c4..40155e5 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -1,4 +1,4 @@ -@import "node_modules/tachyons-sass/tachyons.scss"; +@import "tachyons/css/tachyons"; div.highlight pre { overflow-x: scroll; @@ -169,7 +169,8 @@ footer { // Title font @font-face { font-family: "BerkshireSwash-Regular"; - src: url("/css/fonts/BerkshireSwash-Regular.ttf.woff") format("woff"), + src: + url("/css/fonts/BerkshireSwash-Regular.ttf.woff") format("woff"), url("/css/fonts/BerkshireSwash-Regular.ttf.svg#BerkshireSwash-Regular") format("svg"), url("/css/fonts/BerkshireSwash-Regular.ttf.eot"), diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 8a87f41..2cd7196 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -2,8 +2,9 @@ - {{ $styles := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }} - + {{ with resources.Get "scss/style.scss" | resources.ToCSS (dict "includePaths" (slice "node_modules") "targetPath" "static/css/style.css") | resources.Minify | fingerprint }} + + {{ end }} {{ $title := print .Site.Title " | " .Title }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 0c9e308..0000000 --- a/package-lock.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "minimalist", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "dependencies": { - "tachyons-sass": "^4.9.5" - } - }, - "node_modules/tachyons-custom": { - "version": "4.9.8", - "resolved": "https://registry.npmjs.org/tachyons-custom/-/tachyons-custom-4.9.8.tgz", - "integrity": "sha512-MVnslsN5dFswmh2+Sw+OOA4/6pQfnJrA8/wrtaf+Px347wze3MIk3lp3Q3QmbUPqrJda79s0dZtY3dgTwVHdfg==" - }, - "node_modules/tachyons-sass": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/tachyons-sass/-/tachyons-sass-4.9.5.tgz", - "integrity": "sha512-GPPUIoM+8OkaHF7Ii8+AE5AQzVekfrRnGv55oXYTspXw8BMThmiXr/HrCUmYGiuSnBG73T0862tvzqLGP8B/Mg==", - "dependencies": { - "tachyons-custom": "^4.9.5" - } - } - }, - "dependencies": { - "tachyons-custom": { - "version": "4.9.8", - "resolved": "https://registry.npmjs.org/tachyons-custom/-/tachyons-custom-4.9.8.tgz", - "integrity": "sha512-MVnslsN5dFswmh2+Sw+OOA4/6pQfnJrA8/wrtaf+Px347wze3MIk3lp3Q3QmbUPqrJda79s0dZtY3dgTwVHdfg==" - }, - "tachyons-sass": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/tachyons-sass/-/tachyons-sass-4.9.5.tgz", - "integrity": "sha512-GPPUIoM+8OkaHF7Ii8+AE5AQzVekfrRnGv55oXYTspXw8BMThmiXr/HrCUmYGiuSnBG73T0862tvzqLGP8B/Mg==", - "requires": { - "tachyons-custom": "^4.9.5" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 544e857..0000000 --- a/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "dependencies": { - "tachyons-sass": "^4.9.5" - } -} diff --git a/readme.org b/readme.org index c49fe5a..a3ed023 100644 --- a/readme.org +++ b/readme.org @@ -1,3 +1,6 @@ -* Dependencies -- Install =tachyons-sass= over npm -- Hugo takes care of the scss conversion +* Usage +On your project run +#+begin_src bash +npm install tachyons +#+end_src +This will allow the system to compile the css. -- cgit v1.2.3