Skip to content

Commit

Permalink
use site.title if no page.title
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle committed Jul 29, 2019
1 parent b03ed16 commit d83d2db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ page.title }}</title>
<title>{{ page.title | default: site.title }}</title>
<meta name="description" content="{{ content | strip_html | truncate: 100, '' }}">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:image" content="{{ 'site.styling_options.logo_path' | relative_url }}">
Expand Down Expand Up @@ -59,7 +59,7 @@ <h1 class="site-header-text">
<img class="agency-logo" src="{{ site.styling_options.logo_path | relative_url }}">
</a>
<a class="search-btn top-mobile-btn">
<img src="{{ '/assets/images/search-icon-dark.svg' | relative_url }}">
<img src="{{ '/assets/images/search-icon-dark.svg' | relative_url }}">
</a>
</div>
</div>
Expand Down Expand Up @@ -128,7 +128,7 @@ <h2 id="document-title">
{%- endif- %}
</main>
<div class="site-branding no-print">
Powered by <a href="https://opendoc.sg"><img src="{{ '/assets/images/opendoc-logo-full.svg' | relative_url }}"></a>
Powered by <a href="https://opendoc.sg"><img src="{{ '/assets/images/opendoc-logo-full.svg' | relative_url }}"></a>
</div>

<script src="{{ '/assets/vendor/jump.min.js' | relative_url }}" charset="utf-8"></script>
Expand Down

0 comments on commit d83d2db

Please sign in to comment.