Last active
March 27, 2017 21:07
-
-
Save sethvincent/093b0a4d31c150f039365b72e25fac0b to your computer and use it in GitHub Desktop.
my favorite jekyll title & description tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- formatted --> | |
<title> | |
{% if page.title %} | |
{{ page.title }} | {{ site.title}} | |
{% elsif post.title %} | |
{{ post.title }} | {{ site.title}} | |
{% else %} | |
{{ site.title }} | {{ site.description}} | |
{% endif %} | |
</title> | |
<meta name="description" content=" | |
{% if page.description %} | |
{{ page.description }} | |
{% elsif post.description %} | |
{{ post.description }} | |
{% else %} | |
{{ site.description }} | |
{% endif %} | |
"> | |
<!-- condensed --> | |
<title>{% if page.title %}{{ page.title }} | {{ site.title}}{% elsif post.title %}{{ post.title }} | {{ site.title}}{% else %}{{ site.title }} | {{ site.description}}{% endif %}</title> | |
<meta name="description" content="{% if page.description %}{{ page.description }}{% else if post.description %}{{ post.description }}{% else %}{{ site.description }}{% endif %}"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment