Skip to content

Commit

Permalink
Added description metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dongryul-kim committed Apr 11, 2024
1 parent 032fb37 commit ed68250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="manifest" href="{{ config.base_url | safe }}/manifest.json">
{%- block metadata %}
<title>{{ config.title }}</title>
<title>{{ config.title }}{%- if current.title %} &bull; {{ current.title | safe }}{%- endif -%}</title>
<meta name="description" content="{% if current.description %}{{ current.description }}{% elif current.title %}{{ current.title }}{% if current.content %} - {{ current.content | striptags | truncate(length=120) }}{% endif %}{% else %}{{ config.title }}{% if config.description %} - {{ config.description }}{% endif %}{% endif %}"/>
<link rel="icon" type="image/x-icon" href="{{ get_url(path="icon.svg") }}">
{%- endblock %}
{%- block stylesheets %}
Expand Down

0 comments on commit ed68250

Please sign in to comment.