[solved] Automatic title of page

I’m trying to follow the instructions for using a unixtimestamp as an automatic title of a new page, as described here:

But, I keep getting the error: “basename(): Argument #1 ($path) must be of type string, array given”

Any ideas?

Heres my home.yml


title: Startseite
icon: home

sections:
  posts:
    type: pages
    headline: Updates
    template: post
    sortBy: date desc
    create:
      title: "{{ site.time }}"
      slug: "{{ site.time }}"
      template: post
      content:
        date: "{{ site.date('Y-m-d') }}"

and here my post.yml

title: Beitrag
icon: text

fields:
  date:
    label: Datum
    type: date
  text:
    label: Text
    type: textarea

okay, I fixed it. I moved the create section to the post.yml and removed it from home.yml … makes perfect sense now :wink: leaving the post here in case anyone also got confused.