File tree 4 files changed +8
-7
lines changed
4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ module github.com/picosh/docs
2
2
3
3
go 1.21.5
4
4
5
- // replace github.com/picosh/pdocs => /home/erock/dev/pico/pdocs
5
+ replace github.com/picosh/pdocs => /home/erock/dev/pico/pdocs
6
6
7
- require github.com/picosh/pdocs v0.0.0-20241118043636-3059918103f6
7
+ require github.com/picosh/pdocs v0.0.0-20241118044720-1a43b70d33b7
8
8
9
9
require (
10
10
github.com/alecthomas/chroma v0.10.0 // indirect
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
6
6
github.com/dlclark/regexp2 v1.4.0 /go.mod h1:2pZnwuY/m+8K6iRw6wQdMtk+rH5tNGR1i55kozfMjCc =
7
7
github.com/dlclark/regexp2 v1.10.0 h1:+/GIL799phkJqYW+3YbOd8LCcbHzT0Pbo8zl70MHsq0 =
8
8
github.com/dlclark/regexp2 v1.10.0 /go.mod h1:DHkYz0B9wPfa6wondMfaivmHpzrQ3v9q8cnmRbL6yW8 =
9
- github.com/picosh/pdocs v0.0.0-20241118043636-3059918103f6 h1:yU+cusov9cu4tcxL1E12GpBibMyxnwIWMRKRFbEffwY =
10
- github.com/picosh/pdocs v0.0.0-20241118043636-3059918103f6 /go.mod h1:KXO3Z0EVdA811AX6mlK4lwFDT+KgmegRVrEmZU5uLXU =
11
9
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
12
10
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
13
11
github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package main
2
2
3
3
import (
4
4
"log/slog"
5
+ "math/rand"
6
+ "strconv"
5
7
6
8
"github.com/picosh/pdocs"
7
9
)
@@ -221,6 +223,7 @@ func main() {
221
223
Out : "./public" ,
222
224
Tmpl : "./tmpl" ,
223
225
PageTmpl : "post.page.tmpl" ,
226
+ CacheId : strconv .Itoa (rand .Intn (10000 )),
224
227
}
225
228
226
229
err := config .GenSite ()
Original file line number Diff line number Diff line change 10
10
<link href="/logo.svg" rel="icon" type="image/svg+xml"/>
11
11
<link href="/logo.png" rel="icon" sizes="any" type="image/png"/>
12
12
13
- <link rel="stylesheet" href="/syntax.css" />
14
- <link rel="stylesheet" href="/smol.css" />
15
- <link rel="stylesheet" href="/main.css" />
13
+ <link rel="stylesheet" href="/syntax.css?v={{.CacheId}} " />
14
+ <link rel="stylesheet" href="/smol.css?v={{.CacheId}} " />
15
+ <link rel="stylesheet" href="/main.css?v={{.CacheId}} " />
16
16
{{template "meta" .}}
17
17
</head>
18
18
You can’t perform that action at this time.
0 commit comments