splorp / newton-glossary

An almost definitive guide to terms and trivia related to the Apple Newton.
9 stars 4 forks source link

Header snippet inserting trailing linebreak in meta description #4

Closed splorp closed 10 years ago

splorp commented 10 years ago

It probably has something to do with the custom array elements being passed into the header.php snippet from the default template.

<?php snippet('header', array('title' => $page->title(), 'page_description' => str::unhtml(kirbytext($page->text())))); ?>

For example:

<!DOCTYPE html>
<html lang="en">
<head>

  <title>The Newton Glossary - Address</title>
  <meta charset="utf-8" />
  <meta name="description" content="A binary value specifying where in the memory a chunk of data or code exists.
" />
  <meta name="keywords" content="apple, newton, pda, messagepad, emate, computer, glossary, dictionary, reference" />