Skip to content

Commit

Permalink
Merge pull request #52 from bikesheddev/feat/display-section-title
Browse files Browse the repository at this point in the history
feat: display section title if provided
  • Loading branch information
not-matthias authored Mar 26, 2024
2 parents 4b9787d + fd52d88 commit 24b339e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% if page.extra.meta %}
<!-- the meta data config goes here -->
{% for data in page.extra.meta %}
<meta
<meta
{% for key, value in data%}
{% if key == "property" and value == "og:title"%}
{% set_global page_has_og_title = true -%}
Expand Down Expand Up @@ -38,6 +38,7 @@
{% else %}
<title>
{% if page.title %} {{ page.title }}
{% elif section.title %} {{ section.title }}
{% elif config.title %} {{ config.title }}
{% else %} Post {% endif %}
</title>
Expand Down Expand Up @@ -146,4 +147,4 @@
<link rel="stylesheet" href="{{ get_url(path=stylesheet) }}">
{% endfor %}
{% endif %}
</head>
</head>

0 comments on commit 24b339e

Please sign in to comment.