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