Dynamic Routing & a template - YAML fails to upload


#1

Hi,

I’m trying to use dynamic routing for my webpage. I have the latest, updated ghost, running on Digital Ocean Ubuntu server. I am unable to upload my YAML file, appended below. I am using the Valkyrie template, fwiw.

I want to use dynamic routing to naviage my webpage as follows:
[Home, Projects, Blog, Social Media, Contact]

My Yaml file is:

routes:
  /projects/: 
    template: blog
    data: page.projects
  /blog/:
    template: blog
    data: page.blog
  /socialmedia/: 
    template: blog
    data: page.socialmedia
  /contact/: 
    template: custom-contact-form
    data: page.custom-contact-form
collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

closed #2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.