Commit 147e6e30 by Scott

Ensure meta description is shown on home page

Fixes #267.
parent 52b34ebf
......@@ -112,8 +112,6 @@
qa_set_template('custom');
$qa_content=qa_content_prepare();
$qa_content['title']=qa_html(qa_opt('custom_home_heading'));
if (qa_opt('show_home_description'))
$qa_content['description']=qa_html(qa_opt('home_description'));
$qa_content['custom']=qa_opt('custom_home_content');
return $qa_content;
}
......@@ -162,9 +160,6 @@
null // category nav params
);
if ( (!$explicitqa) && (!$countslugs) && qa_opt('show_home_description') )
$qa_content['description']=qa_html(qa_opt('home_description'));
return $qa_content;
......
......@@ -525,6 +525,11 @@
'widgets' => array(),
);
// add meta description if we're on the home page
if ($request === '' || $request === array_search('', qa_get_request_map())) {
$qa_content['description'] = qa_html(qa_opt('home_description'));
}
if (qa_opt('show_custom_in_head'))
$qa_content['head_lines'][]=qa_opt('custom_in_head');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment