ketchuphq / ketchup

A simple CMS :tomato:
https://ketchuphq.com
Apache License 2.0
393 stars 31 forks source link

not reflected my added theme #14

Open habuka036 opened 6 years ago

habuka036 commented 6 years ago

I added my theme to ketchup(build by #11), but I cannot confirm to reflected my theme.

structure of my theme:

data/themes/mytheme/
|-- assets
|   `-- 404.html
|-- templates
|   `-- page.html
`-- theme.json

theme.json:

{
  "name": "mytheme",
  "templates": {
    "page.html": {
      "placeholders": [
        {
          "key": "content",
          "text": {
            "type": "markdown"
          }
        }
      ]
    }
  }
}

templates/page.html:

<html><head></head><body><div><header><a href="/">&larr; {{ .Site.Title }}</a></header><h1>{{ .Page.Title }}</h1>{{ .Page.Content }}</div></body></html>

image

image

Did you find anything wrong with my theme?

octavore commented 6 years ago

I've tested it against the latest release v0.3.1, everything looks like it renders correctly on my machine. Maybe try upgrading and see if it works?