mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Reihen Page -- all kinds of stuff
This commit is contained in:
19
pages/static.go
Normal file
19
pages/static.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/app"
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/pagemodels"
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/templating"
|
||||
)
|
||||
|
||||
func init() {
|
||||
RegisterStaticPage("/datenschutz/")
|
||||
}
|
||||
|
||||
func RegisterStaticPage(url string) {
|
||||
app.Register(&pagemodels.Page{
|
||||
Name: url,
|
||||
Layout: templating.DEFAULT_LAYOUT_NAME,
|
||||
Template: url,
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user