Swap Bulma for DaisyUI (Tailwind) (#111)
This commit is contained in:
parent
fc5db0e95a
commit
c1e9baabe6
53 changed files with 1124 additions and 632 deletions
13
pkg/ui/ui.go
13
pkg/ui/ui.go
|
|
@ -3,8 +3,6 @@ package ui
|
|||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/mikestefanello/pagoda/config"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -12,7 +10,12 @@ var (
|
|||
cacheBuster = fmt.Sprint(time.Now().Unix())
|
||||
)
|
||||
|
||||
// File generates a relative URL to a static file including a cache-buster query parameter.
|
||||
func File(filepath string) string {
|
||||
return fmt.Sprintf("/%s/%s?v=%s", config.StaticPrefix, filepath, cacheBuster)
|
||||
// PublicFile generates a relative URL to a public file.
|
||||
func PublicFile(filepath string) string {
|
||||
return fmt.Sprintf("/%s/%s", "files", filepath)
|
||||
}
|
||||
|
||||
// StaticFile generates a relative URL to a static file including a cache-buster query parameter.
|
||||
func StaticFile(filepath string) string {
|
||||
return fmt.Sprintf("/%s/%s?v=%s", "static", filepath, cacheBuster)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue