Skip to content

Instantly share code, notes, and snippets.

@Lanace
Created July 12, 2018 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lanace/ee6897c33b38de4b58662da08e1c6d0a to your computer and use it in GitHub Desktop.
Save Lanace/ee6897c33b38de4b58662da08e1c6d0a to your computer and use it in GitHub Desktop.
Jekyll에 default.html에다 open graph 적용하기
<head>
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} • {% endif %}{{ site.title }}</title>
{% if page.excerpt %}<meta name="description" content="{{ page.excerpt | strip_html }}">{% endif %}
{% if page.tags %}<meta name="keywords" content="{{ page.tags | join: ', ' }}">{% endif %}
{% if page.author %}
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
{% endif %}
{% include open-graph.html %}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment