{article}
{if category-docs-limited != "0"}
{foreach data="category-group"}
<div class="doc__group --[row:group-level:value]">
<h2 class="docs__title">[row:category-title]</h2>
<div class="docs__list">
{articles category="article" tags="<?php echo $services;?> && [row:category-alias:value] && <?php echo $doctype;?>" limit="<?php echo $doclimited;?>" ordering="<?php echo $ordering;?> <?php echo $ordering_direction;?>"}
<div>[link class="docs__item"][title][/link]</div>
{articles-else}
<div class="docs__empty">尚無文章</div>
{/articles}
{articles category="article" tags="<?php echo $services;?> && [row:category-alias:value] && <?php echo $doctype;?>" limit="1"}
{if total-no-limit >= <?php echo $doclimited;?>}
<a href="[row:category-more-url:value]" class="services-doc__more">看全部
[total-no-limit]篇文章
<i class="fa-regular fa-arrow-right"></i>
</a>
{/if}
{/articles}
</div>
</div>
{/foreach}
{else}
...
{/if}
{/article}
{article}
{if category-docs-limited != "0"}
{article id="current" category-docs-limited!="0"}
{article id="<?php echo $id;?>" category-docs-limited="!0"}
{articles key="!value"}
{if key!="value"}
<h[row:level:value]> ... </h[row:level:value]>