-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/package-lock.json | ||
/node_modules | ||
/.next | ||
resources/_gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- hugo | ||
- daisyui | ||
- postcss | ||
- tailwindcss | ||
|
||
--- | ||
|
||
install hugo: https://gohugo.io/getting-started/installing/ | ||
install node modules: | ||
|
||
``` | ||
npm install | ||
``` | ||
``` | ||
npm run dev | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: "{{ replace .Name "-" " " | title }}" | ||
date: {{ .Date }} | ||
draft: true | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
baseURL = 'http://example.org/' | ||
languageCode = 'en-us' | ||
title = 'My New Hugo Site' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ .Language.Lang }}"> | ||
<head> | ||
{{ partial "head.html" . }} | ||
</head> | ||
<body> | ||
{{ block "main" . }}{{ end }} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{ define "main" }} | ||
<main> | ||
<!-- default theme (dark) --> | ||
<div class="p-10 bg-base-100 text-base-content"> | ||
<button class="btn">button</button> | ||
<button class="btn btn-primary">button</button> | ||
<button class="btn btn-secondary">button</button> | ||
<button class="btn btn-accent">button</button> | ||
</div> | ||
|
||
<!-- garden theme --> | ||
<div class="p-10 bg-base-100 text-base-content" data-theme="garden"> | ||
<button class="btn">button</button> | ||
<button class="btn btn-primary">button</button> | ||
<button class="btn btn-secondary">button</button> | ||
<button class="btn btn-accent">button</button> | ||
</div> | ||
|
||
<!-- forest theme --> | ||
<div class="p-10 bg-base-100 text-base-content" data-theme="forest"> | ||
<button class="btn">button</button> | ||
<button class="btn btn-primary">button</button> | ||
<button class="btn btn-secondary">button</button> | ||
<button class="btn btn-accent">button</button> | ||
</div> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
{{ $styles := resources.Get "css/main.css" | postCSS }} | ||
|
||
{{ if .Site.IsServer }} | ||
<link rel="stylesheet" href="{{ $styles.RelPermalink }}"/> | ||
{{ else }} | ||
{{ $styles := $styles | minify | fingerprint | resources.PostProcess }} | ||
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}"/> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scripts": {}, | ||
"dependencies": { | ||
"autoprefixer": "^10.3.7", | ||
"daisyui": "^1.14.4", | ||
"postcss": "^8.3.9", | ||
"postcss-cli": "^9.0.1", | ||
"tailwindcss": "^2.2.16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
purge: ['layouts/**/*.html'], | ||
darkMode: false, // or 'media' or 'class' | ||
theme: { | ||
extend: {}, | ||
}, | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [ | ||
require('daisyui'), | ||
], | ||
daisyui: { | ||
logs: false, | ||
} | ||
} |