aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-09-06 18:03:23 +0200
committerOscar Najera <hi@oscarnajera.com>2023-09-06 18:03:23 +0200
commit3f901f09c7be956e5ccee99a6202d51ca361193d (patch)
tree0e857e434fbd5d045f180c5b0d40434a38d32193
parentf46e4e60d95850d1761fff0e8e1ab35332eb3cb2 (diff)
downloadhugo-minimalist-theme-3f901f09c7be956e5ccee99a6202d51ca361193d.tar.gz
hugo-minimalist-theme-3f901f09c7be956e5ccee99a6202d51ca361193d.tar.bz2
hugo-minimalist-theme-3f901f09c7be956e5ccee99a6202d51ca361193d.zip
update tachyons usage
-rw-r--r--assets/scss/style.scss5
-rw-r--r--layouts/partials/head.html5
-rw-r--r--package-lock.json40
-rw-r--r--package.json5
-rw-r--r--readme.org9
5 files changed, 12 insertions, 52 deletions
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 @@
<meta charset="utf-8">
<link rel="icon" href="/images/favicon.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
- {{ $styles := resources.Get "scss/style.scss" | resources.ToCSS | resources.Minify }}
- <link rel="stylesheet" href="{{ $styles.Permalink }}" type="text/css" media="screen" />
+ {{ with resources.Get "scss/style.scss" | resources.ToCSS (dict "includePaths" (slice "node_modules") "targetPath" "static/css/style.css") | resources.Minify | fingerprint }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" type="text/css" media="screen" />
+ {{ end }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{{ $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.