Skip to content

Commit

Permalink
Improve page title in various contexts
Browse files Browse the repository at this point in the history
Gscan is temporarily disabled from `npm test` since it raises false alarm on usage of `author` in `default.hbs`.
Reported to Gscan as TryGhost/gscan#365.
  • Loading branch information
adamkudrna committed Nov 15, 2020
1 parent 9f367c1 commit a58c8de
Show file tree
Hide file tree
Showing 4 changed files with 1,667 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
${{ runner.OS }}-node-v${{ matrix.node }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
${{ runner.OS }}-node-v${{ matrix.node }}-
- name: Install dependencies
run: npm install --global gscan

- name: Install
run: npm ci

Expand Down
15 changes: 14 additions & 1 deletion default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,20 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<title>{{#is "home"}}{{@site.title}} — První český online magazín o webovém frontendu{{else}}{{meta_title}} | {{@site.title}}{{/is}}</title>
<title>
{{#is "home"}}
{{@site.title}}{{@site.description}}
{{/is}}
{{#is "author"}}
{{author.name}} | {{@site.title}}
{{/is}}
{{#is "tag"}}
{{tag.name}} | {{@site.title}}
{{/is}}
{{^is "home, author, tag"}}
{{meta_title}} | {{@site.title}}
{{/is}}
</title>

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.17.1/themes/prism-okaidia.min.css" />
<link rel="stylesheet" type="text/css" href="{{asset "built/css/main.min.css"}}" class="js-versioned-asset" />
Expand Down
Loading

0 comments on commit a58c8de

Please sign in to comment.