Skip to content

Instantly share code, notes, and snippets.

@kmgdevelopment
Created June 19, 2012 19:42
Show Gist options
  • Save kmgdevelopment/2956116 to your computer and use it in GitHub Desktop.
Save kmgdevelopment/2956116 to your computer and use it in GitHub Desktop.
NSM Better Meta & Preload Replacements
{preload_replace:page_title="{embed:page_title}"}
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset=utf-8" />
{if page_title}
<title>{page_title}</title>
{if:else}
{exp:channel:entries limit="1"}
{exp:nsm_better_meta:template entry_id="{entry_id}"}
{/exp:channel:entries}
{/if}
<link href="/css/style.css" rel="stylesheet" />
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment