Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use procs for nested properties #23

Open
mhuggins opened this issue Feb 7, 2015 · 2 comments
Open

Unable to use procs for nested properties #23

mhuggins opened this issue Feb 7, 2015 · 2 comments

Comments

@mhuggins
Copy link

mhuggins commented Feb 7, 2015

Hi there! Thanks for creating this gem. I'm trying to reuse title & description for twitter title & description, but not having any luck. I tried both:

= metamagic site: 'My Site',
            title: [:title, :site],
            separator: ' | ',
            description: 'Default description...',
            twitter: { card: 'summary', title: -> { title }, description: -> { description } }

and:

= metamagic site: 'My Site',
            title: [:title, :site],
            separator: ' | ',
            description: 'Default description...',
            twitter: { card: 'summary', title: [:title], description: [:description] }

Unfortunately neither the twitter:title nor twitter:description are rendered.

@jonn
Copy link

jonn commented Feb 11, 2015

Just ran into the same trying to set og:title without duplicating in every meta call.

@imgarylai
Copy link

I got same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants