Have got site creation working
This commit is contained in:
parent
4ecc12f035
commit
f8e7ea482b
15 changed files with 281 additions and 11 deletions
10
providers/themes/meta.go
Normal file
10
providers/themes/meta.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package themes
|
||||
|
||||
import "lmika.dev/lmika/hugo-crm/models"
|
||||
|
||||
var themes = map[string]models.ThemeMeta{
|
||||
"bear": models.ThemeMeta{
|
||||
Name: "bear",
|
||||
URL: "https://github.com/janraasch/hugo-bearblog",
|
||||
},
|
||||
}
|
||||
14
providers/themes/provider.go
Normal file
14
providers/themes/provider.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package themes
|
||||
|
||||
import "lmika.dev/lmika/hugo-crm/models"
|
||||
|
||||
type Provider struct{}
|
||||
|
||||
func New() *Provider {
|
||||
return &Provider{}
|
||||
}
|
||||
|
||||
func (p *Provider) Lookup(name string) (models.ThemeMeta, bool) {
|
||||
t, ok := themes[name]
|
||||
return t, ok
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue