Compare commits
7 Commits
2ccab138b8
...
a9fab2b114
Author | SHA1 | Date | |
---|---|---|---|
|
a9fab2b114 | ||
|
eaf0b512c6 | ||
|
c2fe588fe8 | ||
|
3bf6014537 | ||
|
8d898eb69a | ||
|
2475d2d67e | ||
|
9367f85f5f |
@@ -72,7 +72,7 @@ markup:
|
|||||||
|
|
||||||
module:
|
module:
|
||||||
imports:
|
imports:
|
||||||
- path: hugo-theme-gruvbox
|
- path: custom-theme
|
||||||
mounts:
|
mounts:
|
||||||
- source: node_modules/simple-icons/icons
|
- source: node_modules/simple-icons/icons
|
||||||
target: assets/simple-icons
|
target: assets/simple-icons
|
||||||
|
@@ -104,9 +104,9 @@ Something to consider is whether or not you want to use ssh with git. One method
|
|||||||
|
|
||||||
## Theming
|
## Theming
|
||||||
|
|
||||||
I discovered some themes for gitea [here](https://git.sainnhe.dev/sainnhe/gitea-themes) and decided to try out gruvbox.
|
I discovered some themes for gitea [here](https://git.sainnhe.dev/sainnhe/gitea-themes).
|
||||||
|
|
||||||
I added the theme by cloning [theme-gruvbox-auto.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-gruvbox-auto.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`:
|
I added the theme by copying [theme-palenight.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-palenight.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- GITEA__ui__DEFAULT_THEME=palenight
|
- GITEA__ui__DEFAULT_THEME=palenight
|
||||||
|
6
package-lock.json
generated
@@ -1390,9 +1390,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tabler/icons": {
|
"node_modules/@tabler/icons": {
|
||||||
"version": "2.45.0",
|
"version": "2.47.0",
|
||||||
"resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.45.0.tgz",
|
"resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.47.0.tgz",
|
||||||
"integrity": "sha512-J10UDghOni9wlrj5CpKAzychDCABCKYq897mGg0wGFsd+tYLaUdz0dt/HZeGnV8gZJo0hIiTPLGwBp5EW42Qsg==",
|
"integrity": "sha512-4w5evLh+7FUUiA1GucvGj2ReX2TvOjEr4ejXdwL/bsjoSkof6r1gQmzqI+VHrE2CpJpB3al7bCTulOkFa/RcyA==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
"url": "https://github.com/sponsors/codecalm"
|
"url": "https://github.com/sponsors/codecalm"
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "davegallant.github.io",
|
|
||||||
"version": "0.1.0"
|
|
||||||
}
|
|
@@ -16,10 +16,10 @@
|
|||||||
--bg3: #665c54;
|
--bg3: #665c54;
|
||||||
--bg4: #32344a;
|
--bg4: #32344a;
|
||||||
--fg: var(--fg1);
|
--fg: var(--fg1);
|
||||||
--fg0: #ad8ee6;
|
--fg0: #a1a1a1;
|
||||||
--fg1: #dddfeb;
|
--fg1: #dddfeb;
|
||||||
--fg2: #7da6ff;
|
--fg2: #7da6ff;
|
||||||
--fg3: #9ece6a;
|
--fg3: #6a6c67;
|
||||||
--fg4: #32344a;
|
--fg4: #32344a;
|
||||||
--gray1: var(--fg4);
|
--gray1: var(--fg4);
|
||||||
--gray2: #444b6a;
|
--gray2: #444b6a;
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
--green2: #b9f27c;
|
--green2: #b9f27c;
|
||||||
--yellow1: #e0af68;
|
--yellow1: #e0af68;
|
||||||
--yellow2: #ff9e64;
|
--yellow2: #ff9e64;
|
||||||
--blue1: #7da6ff;
|
--blue1: #63A8D3;
|
||||||
--blue2: #7aa2f7;
|
--blue2: #63A8D3;
|
||||||
--purple1: #ad8ee6;
|
--purple1: #ad8ee6;
|
||||||
--purple2: #bb9af7;
|
--purple2: #bb9af7;
|
||||||
--aqua1: #449dab;
|
--aqua1: #449dab;
|
||||||
@@ -44,7 +44,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
{{ $themeColor := .Param "themeColor" | default "blue" }}
|
--primary: var(--blue1);
|
||||||
--primary: var(--{{ $themeColor }}1);
|
--primary-alt: var(--blue2);
|
||||||
--primary-alt: var(--{{ $themeColor }}2);
|
|
||||||
}
|
}
|
@@ -65,7 +65,7 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: var(--fg3);
|
color: var(--fg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
&[type="search"]::-webkit-search-cancel-button {
|
&[type="search"]::-webkit-search-cancel-button {
|
@@ -1,7 +1,7 @@
|
|||||||
.post,
|
.post,
|
||||||
.content-section {
|
.content-section {
|
||||||
border-bottom: 2px dotted var(--bg1);
|
border-bottom: 2px dotted var(--bg1);
|
||||||
padding: 2rem 0;
|
padding: 0rem 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 4.0 MiB After Width: | Height: | Size: 4.0 MiB |
Before Width: | Height: | Size: 2.3 MiB After Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 861 KiB After Width: | Height: | Size: 861 KiB |
Before Width: | Height: | Size: 362 KiB After Width: | Height: | Size: 362 KiB |
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
{{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }}
|
{{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }}
|
||||||
{{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }}
|
{{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }}
|
||||||
{{ $prismDark := resources.Get "prism-themes/prism-synthwave84.css" }}
|
{{ $prismDark := resources.Get "prism-themes/prism-coldark-dark.css" }}
|
||||||
{{ $prismLight := resources.Get "prism-themes/prism-synthwave84.css" }}
|
{{ $prismLight := resources.Get "prism-themes/prism-coldark-dark.css" }}
|
||||||
|
|
||||||
{{ if hugo.IsProduction }}
|
{{ if hugo.IsProduction }}
|
||||||
{{ $critical = $critical | resources.PostProcess }}
|
{{ $critical = $critical | resources.PostProcess }}
|
13
themes/custom-theme/layouts/partials/post-list.html
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{{ range $pageIndex, $page := .Pages }}
|
||||||
|
<article class="post">
|
||||||
|
<div class="post-header">
|
||||||
|
<div class="post-meta">
|
||||||
|
{{- with $page.Date -}}
|
||||||
|
<span>{{ .Format "2006-01-02" }}</span>
|
||||||
|
{{- end -}}: <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ partial "pagination.html" . }}
|
@@ -1368,9 +1368,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@tabler/icons": {
|
"node_modules/@tabler/icons": {
|
||||||
"version": "2.44.0",
|
"version": "2.47.0",
|
||||||
"resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.44.0.tgz",
|
"resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.47.0.tgz",
|
||||||
"integrity": "sha512-WPPtihDcAwEm1QZM9MXQw6+r/R2/qx7KMU1eegsi9DsqBLAb0W2kbt6e/syvd6j9c+6XNpRVBW1ziGqSWQAWOg==",
|
"integrity": "sha512-4w5evLh+7FUUiA1GucvGj2ReX2TvOjEr4ejXdwL/bsjoSkof6r1gQmzqI+VHrE2CpJpB3al7bCTulOkFa/RcyA==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
"url": "https://github.com/sponsors/codecalm"
|
"url": "https://github.com/sponsors/codecalm"
|
||||||
@@ -7569,9 +7569,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@tabler/icons": {
|
"@tabler/icons": {
|
||||||
"version": "2.44.0",
|
"version": "2.47.0",
|
||||||
"resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.44.0.tgz",
|
"resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-2.47.0.tgz",
|
||||||
"integrity": "sha512-WPPtihDcAwEm1QZM9MXQw6+r/R2/qx7KMU1eegsi9DsqBLAb0W2kbt6e/syvd6j9c+6XNpRVBW1ziGqSWQAWOg=="
|
"integrity": "sha512-4w5evLh+7FUUiA1GucvGj2ReX2TvOjEr4ejXdwL/bsjoSkof6r1gQmzqI+VHrE2CpJpB3al7bCTulOkFa/RcyA=="
|
||||||
},
|
},
|
||||||
"@trysound/sax": {
|
"@trysound/sax": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|