This commit is contained in:
parent
2fe5b49728
commit
74ed1bbbc2
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,6 +1,4 @@
|
||||
.idea/
|
||||
node_modules/
|
||||
static/styles/main.css
|
||||
static/styles/main*.css
|
||||
static/styles/main.css.map
|
||||
static/css/*.css
|
||||
dist/
|
||||
|
@ -54,9 +54,9 @@
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
{{ $siteBaseURL := .Site.BaseURL }}
|
||||
{{ $styleFolder := "./themes/vikunja/static/styles" }}
|
||||
{{ $styleFolder := "./themes/vikunja/static/css" }}
|
||||
{{ range readDir $styleFolder }}
|
||||
<link rel="stylesheet" href="{{ $siteBaseURL }}styles/{{ .Name }}">
|
||||
<link rel="stylesheet" href="{{ $siteBaseURL }}css/{{ .Name }}">
|
||||
{{ end }}
|
||||
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico">
|
||||
|
22
package.json
22
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vikunja-theme",
|
||||
"version": "0.2.0",
|
||||
"version": "1.0.0",
|
||||
"description": "A Hugo theme that gets used within all of our websites.",
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"author": {
|
||||
@ -8,23 +8,11 @@
|
||||
"email": "team@vikunja.io"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "gulp clean",
|
||||
"build": "gulp prod",
|
||||
"release": "gulp release",
|
||||
"watch": "gulp watch"
|
||||
},
|
||||
"dependencies": {
|
||||
"bulma": "^0.7.1"
|
||||
"prod": "tailwindcss -i src/style.css -o static/css/styles.css",
|
||||
"watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-clean": "^0.3.2",
|
||||
"gulp-clean-css": "^4.2.0",
|
||||
"gulp-gzip": "^1.4.0",
|
||||
"gulp-hash-filename": "^2.0.1",
|
||||
"gulp-replace": "^1.0.0",
|
||||
"gulp-sass": "^3.1.0",
|
||||
"gulp-sourcemaps": "^1.9.1",
|
||||
"gulp-tar-path": "^1.0.1"
|
||||
"postcss": "^8.4.5",
|
||||
"tailwindcss": "^3.0.17"
|
||||
}
|
||||
}
|
||||
|
3
src/style.css
Normal file
3
src/style.css
Normal file
@ -0,0 +1,3 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
0
static/css/.gitkeep
Normal file
0
static/css/.gitkeep
Normal file
10
tailwind.config.js
Normal file
10
tailwind.config.js
Normal file
@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
content: [
|
||||
'./src/*.css',
|
||||
'./layouts/**/*.html'
|
||||
],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
}
|
Reference in New Issue
Block a user