1{%- include snippets/assign.html
2  target=site.data.variables.default.page.show_author_profile
3  source0=layout.show_author_profile source1=page.show_author_profile -%}
4{%- assign _show_author_profile = __return -%}
5
6{%- include snippets/assign.html
7  target=site.data.variables.default.page.show_subscribe
8  source0=layout.show_subscribe source1=page.show_subscribe -%}
9{%- assign _show_subscribe = __return -%}
10
11{%- include snippets/assign.html
12  target=site.data.variables.default.page.license
13  source0=layout.license source1=page.license -%}
14{%- assign _license = __return -%}
15
16<footer class="article__footer">
17  {%- if page.modify_date -%}
18    {%- include snippets/get-locale-string.html key='ARTICLE_DATE_FORMAT' -%}
19    {%- assign _locale_date_format = __return -%}
20
21    {%- include snippets/get-locale-string.html key='LAST_UPDATED' -%}
22    {%- assign _locale_last_update = __return -%}
23    <span>{{ _locale_last_update }}
24      <time itemprop="dateModified" datetime="{{ page.modify_date | date_to_xmlschema }}">{{ page.modify_date | date: _locale_date_format }}</time>
25    </span>
26  {%- elsif page.date -%}
27    <meta itemprop="dateModified" content="{{ page.date | date_to_xmlschema }}">
28  {%- endif -%}
29
30  {%- include article/footer/custom.html -%}
31
32  {%- if _show_author_profile -%}
33    {%- if page.author -%}
34      {%- assign _author = site.data.authors[page.author] -%}
35    {%- else -%}
36      {%- assign _author = site.author -%}
37    {%- endif -%}
38    {%- include article/footer/author-profile.html author=_author -%}
39  {%- endif -%}
40
41  {%- if _show_subscribe -%}
42    <div class="article__subscribe">{%- include article/footer/subscribe.html -%}</div>
43  {%- endif -%}
44
45  {%- if _license != false -%}
46    {%- assign _data_license = site.data.licenses-%}
47    {%- if site.license -%}
48      {%- assign _license_data = _data_license[site.license] -%}
49    {%- endif -%}
50    {%- if _license != true -%}
51      {%- assign _license_data = _data_license[_license] -%}
52    {%- endif -%}
53    <div class="article__license">{%- include article/footer/license.html license=_license_data -%}</div>
54  {%- endif -%}
55</footer>