Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Last active June 10, 2017 18:43
Show Gist options
  • Select an option

  • Save josephabrahams/d23aa91da5fbefc8526d8ce0636cded3 to your computer and use it in GitHub Desktop.

Select an option

Save josephabrahams/d23aa91da5fbefc8526d8ce0636cded3 to your computer and use it in GitHub Desktop.
WP Timber Boilerplate
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<title>{% if wp_title %}{{ post.title }} - {{ site.name }}{% else %}{{ site.name }} - {{ site.description }}{% endif %}</title>
<meta charset="{{ site.charset }}">
<meta name="description" content="{{ site.description }}">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta property="og:title" content="{% if wp_title %}{{ post.title }} - {% endif %}{{ site.name }}">
<meta property="og:description" content="{{ site.description }}">
<meta property="og:image" content="{{ theme.link }}/static/img/share-logo.jpg">
<meta property="og:url" content="{{ post.link }}">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="{{ theme.link }}/static/img/share-icon.png">
<script>document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/,'js');</script>
{{ wp_head }}
</head>
<body class="{{ body_class }}">
{{ wp_footer }}
</body>
</html>
@josephabrahams

Copy link
Copy Markdown
Author

Follow the WordPress Codex instructions for Creating a Favicon.

Filename Description Used by
share-icon.png 512x512px w/ padding Twitter
share-logo.png 1200x900px w/ padding Facebook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment