HashandSalt / kirby3-seo

A plugin for generating SEO meta tags
10 stars 2 forks source link

Can't get it running using the bare minimum controller from README.md #2

Closed seakrebel closed 4 years ago

seakrebel commented 4 years ago

It's impossible to get it running using the "bare minimum controller" code from README.md

<?php

return function ($page, $kirby, $site) {

  // SEO
  $seo = $kirby->controller('seo' , compact('page', 'site', 'kirby'));

  return compact($seo);

};

but, I changed it and now it works:

<?php

return function ($page, $kirby, $site) {

  // SEO
  $seo = $kirby->controller('seo' , compact('page', 'site', 'kirby'));

  return $seo; // <--------- here is the change

};
HashandSalt commented 4 years ago

Fixed!