1{%- include snippets/get-article-title.html article=include.article-%}
2{%- assign _article_title = __return -%}
3
4{%- if include.html != false -%}
5
6  {%- include snippets/assign.html
7    target=site.data.variables.default.page.show_title
8    source0=layout.show_title source1=include.article.show_title -%}
9  {%- assign _show_title = __return -%}
10
11  {%- include snippets/assign.html
12    target=site.data.variables.default.page.show_edit_on_github
13    source0=layout.show_edit_on_github source1=include.article.show_edit_on_github -%}
14  {%- assign _show_edit_on_github = __return -%}
15
16  {%- if _show_title or _show_edit_on_github -%}
17    <div class="article__header">
18      {%- if _show_title -%}
19        <header><h1>{{ _article_title }}</h1></header>
20      {%- endif -%}
21      {%- if _show_edit_on_github -%}
22        {%- if site.repository and site.repository_tree -%}
23          {%- include snippets/is_collection.html page=include.article -%}
24          {%- assign _is_article_collection = __return -%}
25          {%- include snippets/get-locale-string.html key='POST_ON_GITHUB' -%}
26          {%- assign _locale_post_on_github = __return -%}
27          {%- if _is_article_collection -%}
28            {%- include snippets/prepend-path.html path=include.article.path prepend_path=site.collections_dir -%}
29            {%- assign _article_path = __return -%}
30          {%- else -%}
31            {%- assign _article_path = include.article.path -%}
32          {%- endif -%}
33          {%- assign _github_path = site.repository | append: '/tree/' | append: site.repository_tree | append: '/' | append: _article_path | replace:'//','/' -%}
34          <span class="split-space">&nbsp;</span>
35          <a class="edit-on-github"
36            title="{{ _locale_post_on_github }}"
37            href="https://github.com/{{ _github_path }}">
38            <i class="far fa-edit"></i></a>
39        {%- endif -%}
40      {%- endif -%}
41    </div>
42  {%- else -%}
43    <header style="display:none;"><h1>{{ _article_title }}</h1></header>
44  {%- endif -%}
45{%- endif -%}
46
47{%- if include.semantic != false -%}
48  <meta itemprop="headline" content="{{ _article_title }}">
49{%- endif -%}
50