Skip to content

Can’t get started #211

@jeffcovey

Description

@jeffcovey

Hello, everyone!

I'm sorry to say I can't seem to get started with this gem. Following the instructions, I've installed it and added this to app/views/layouts/application.html.slim:

doctype html
  html
    head
      = display_meta_tags site: "My site's name"
[...]
    body
      h1.pb-2.text-center
        = title 'page title'

The page title is set as a variable from the view, but you get the idea. I've tried setting it as an interpolated variable and as a simple string.

The documentation says: "When views are rendered, the page title will be included in the right spots", but... it's not. The <title> tag contains only the name of the site. The name of the specific page is absent. Can anyone tell me what I'm doing incorrectly?

Thanks very much,
Jeff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions