docs/_includes/article-list.html
{%- else -%} {%- endif -%} {%- if _article.cover and include.show_cover-%} {%- include snippets/get-nav-url.html path=_article.cover -%} {%- assign _article_cover = __return -%} {%- if include.cover_size == 'lg' -%} {%- elsif include.cover_size == 'sm' -%} {%- else -%} {%- endif -%} {%- endif -%}
{%- if _article.excerpt and include.show_excerpt -%} {%- if _excerpt_type == 'html' -%} {{ _article.excerpt }} {%- else -%} {{ _article.excerpt | strip_html | strip | truncate: _excerpt_truncate }} {%- endif -%} {%- endif -%} {%- if include.show_readmore -%}
{%- endif -%} {%- if include.show_info -%} {%- include snippets/assign.html target=site.data.variables.default.page.pageview source0=_article.pageview -%} {%- assign _show_pageview = __return -%} {%- include article-info.html article=_article show_pageview=_show_pageview -%} {%- endif -%}
{%- elsif include.type == 'brief' -%} {%- assign _tags = '' -%} {%- for _tag in _article.tags -%} {%- assign _tag_encode = _tag | strip | url_encode -%} {%- if forloop.last -%} {%- assign _tags = _tags | append: _tag_encode -%} {%- else -%} {%- assign _tags = _tags | append: _tag_encode | append: ',' -%} {%- endif -%} {%- endfor -%} {%- if include.group_by == 'year' -%} {%- assign _currentdate = _article.date | date: '%Y' -%} {%- if _currentdate != _date -%} {%- unless forloop.first -%}{%- endunless -%}
{%- assign _date = _currentdate -%} {%- endif -%} {%- endif -%} {%- include snippets/get-locale-string.html key='ARTICLE_LIST_DATE_FORMAT' -%} - {%- if include.show_info -%} {{ _article.date | date: __return }} {%- endif -%} {{ _article.title }} {%- elsif include.type == 'grid' -%} {%- if include.size == 'sm' -%}
{%- if _article.cover -%}
{%- endif -%}
{%- else -%}
{%- if _article.cover -%}
{%- endif -%}
{%- endif -%} {%- endif -%} {%- endfor -%}