update repo to use tailwindcss theme
This commit is contained in:
parent
ff21e9d550
commit
fce9cd1369
22 changed files with 3977 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -199,3 +199,5 @@ $RECYCLE.BIN/
|
|||
*.lnk
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/jetbrains+all,linux,windows,macos,hugo,vim
|
||||
|
||||
node_modules
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +0,0 @@
|
|||
[submodule "themes/ananke"]
|
||||
path = themes/ananke
|
||||
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
|
|
@ -1,5 +0,0 @@
|
|||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
draft = true
|
||||
+++
|
1
assets/css/components/all.css
Normal file
1
assets/css/components/all.css
Normal file
|
@ -0,0 +1 @@
|
|||
@import "buttons.css";
|
15
assets/css/styles.css
Normal file
15
assets/css/styles.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@import "components/all.css";
|
||||
|
||||
html {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@screen md {
|
||||
html {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module github.com/bep/hugo-starter-tailwind-basic/v3
|
||||
|
||||
go 1.19
|
29
hugo.toml
29
hugo.toml
|
@ -1,4 +1,31 @@
|
|||
baseURL = 'https://cccsbg.at/'
|
||||
languageCode = 'de-at'
|
||||
title = 'CCC-Salzburg'
|
||||
theme = 'ananke'
|
||||
|
||||
disableKinds = ["page", "section", "taxonomy", "term"]
|
||||
|
||||
[module]
|
||||
[module.hugoVersion]
|
||||
extended = false
|
||||
min = "0.112.0"
|
||||
[[module.mounts]]
|
||||
source = "assets"
|
||||
target = "assets"
|
||||
[[module.mounts]]
|
||||
source = "hugo_stats.json"
|
||||
target = "assets/watching/hugo_stats.json"
|
||||
|
||||
[build]
|
||||
writeStats = true
|
||||
[[build.cachebusters]]
|
||||
source = "assets/watching/hugo_stats\\.json"
|
||||
target = "styles\\.css"
|
||||
[[build.cachebusters]]
|
||||
source = "(postcss|tailwind)\\.config\\.js"
|
||||
target = "css"
|
||||
[[build.cachebusters]]
|
||||
source = "assets/.*\\.(js|ts|jsx|tsx)"
|
||||
target = "js"
|
||||
[[build.cachebusters]]
|
||||
source = "assets/.*\\.(.*)$"
|
||||
target = "$1"
|
||||
|
|
23
layouts/_default/baseof.html
Normal file
23
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="dark:bg-gray-900 bg-gray-200">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
{{ .Title }}
|
||||
</title>
|
||||
<meta name="description" content="{{ .Description }}" />
|
||||
{{/* styles */}}
|
||||
{{ $options := dict "inlineImports" true }}
|
||||
{{ $styles := resources.Get "css/styles.css" }}
|
||||
{{ $styles = $styles | resources.PostCSS $options }}
|
||||
{{ if hugo.IsProduction }}
|
||||
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
|
||||
{{ end }}
|
||||
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
|
||||
</head>
|
||||
<body class="my-10">
|
||||
<div class="container px-4 lg:mx-auto">
|
||||
{{ block "main" . }}{{ end }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
13
layouts/index.html
Normal file
13
layouts/index.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ define "main" }}
|
||||
<article class="prose lg:prose-xl dark:prose-invert">
|
||||
<h1>Tailwind 3 Hugo Starter</h1>
|
||||
|
||||
<h2 class="text-4xl">Testing Tailwind 3 Features</h2>
|
||||
<div>
|
||||
<button class="bg-cyan-400 rounded-xl p-4">Share on Twitter</button>
|
||||
</div>
|
||||
|
||||
<h2 class="text-4xl">Markdowns: {{ .Title }}</h2>
|
||||
{{ .Content }}..
|
||||
</article>
|
||||
{{ end }}
|
2842
package-lock.json
generated
Normal file
2842
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
18
package.hugo.json
Normal file
18
package.hugo.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bep/hugo-starter-tailwind-basic.git"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/typography": "^0.4.1",
|
||||
"autoprefixer": "^10.3.1",
|
||||
"postcss": "^8.3.6",
|
||||
"postcss-cli": "^8.3.1",
|
||||
"postcss-purgecss": "^2.0.3",
|
||||
"tailwindcss": "^2.2.7"
|
||||
},
|
||||
"name": "hugo-starter-tailwind-basic",
|
||||
"version": "0.1.0"
|
||||
}
|
15
package.json
Normal file
15
package.json
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.local.cccsbg.at/CCCSBG-PR/cccsbg-hugo"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/typography": "^0.5.9",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"postcss": "^8.4.23",
|
||||
"postcss-cli": "^10.1.0",
|
||||
"tailwindcss": "^3.3.2"
|
||||
},
|
||||
"name": "cccsbg-hugo",
|
||||
"version": "0.1.0"
|
||||
}
|
1002
pnpm-lock.yaml
generated
Normal file
1002
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
8
postcss.config.js
Normal file
8
postcss.config.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
let tailwindConfig = process.env.HUGO_FILE_TAILWIND_CONFIG_JS || './tailwind.config.js';
|
||||
const tailwind = require('tailwindcss')(tailwindConfig);
|
||||
const autoprefixer = require('autoprefixer');
|
||||
|
||||
module.exports = {
|
||||
// eslint-disable-next-line no-process-env
|
||||
plugins: [tailwind, ...(process.env.HUGO_ENVIRONMENT === 'production' ? [autoprefixer] : [])],
|
||||
};
|
7
tailwind.config.js
Normal file
7
tailwind.config.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
/** @type {import('tailwindcss').Config} */
|
||||
const typography = require('@tailwindcss/typography');
|
||||
|
||||
module.exports = {
|
||||
content: ['./hugo_stats.json'],
|
||||
plugins: [typography],
|
||||
};
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 33fbda0e9d3e97c92af5d195be94e8eea8003239
|
Loading…
Add table
Reference in a new issue