From 27c175f6c626175598ee0a3d5c7b750a84d583e2 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 22 Sep 2016 17:47:14 -0700 Subject: adding a generator for custom post content types, slug for url based on title, main file to manage commands --- system/admin/admin.go | 14 ++++++++++++++ system/admin/auth.go | 11 +++++++++++ system/admin/config.go | 5 +++++ 3 files changed, 30 insertions(+) create mode 100644 system/admin/auth.go create mode 100644 system/admin/config.go (limited to 'system/admin') diff --git a/system/admin/admin.go b/system/admin/admin.go index bbc34cf..8febbf7 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -4,6 +4,7 @@ package admin import ( "bytes" + "fmt" "html/template" "github.com/nilslice/cms/content" @@ -13,6 +14,17 @@ const adminHTML = ` CMS +

CMS

@@ -43,6 +55,8 @@ func Admin(manager []byte) []byte { Subview: template.HTML(manager), } + fmt.Println(a.Types) + buf := &bytes.Buffer{} tmpl := template.Must(template.New("admin").Parse(adminHTML)) tmpl.Execute(buf, a) diff --git a/system/admin/auth.go b/system/admin/auth.go new file mode 100644 index 0000000..153a31a --- /dev/null +++ b/system/admin/auth.go @@ -0,0 +1,11 @@ +package admin + +// Session ... +type Session struct { + User + token string +} + +// User ... +type User struct { +} diff --git a/system/admin/config.go b/system/admin/config.go new file mode 100644 index 0000000..e067299 --- /dev/null +++ b/system/admin/config.go @@ -0,0 +1,5 @@ +package admin + +// Config represents the confirgurable options of the system +type Config struct { +} -- cgit v1.2.3