Knowledge Base Design

Search Results Page

The design page that is used to search results page.

Basic objects

Name Type Description
cssUrl string

The style file url for knowledge base.

breadcrumbs string

Breadcrumb Navigation.

keywords string

Search keywords.

articles object

A collection of articles for search results.

breadcrumbs → {string}

Breadcrumb Navigation.

For example:
<div class="breadcrumbs">
    {{breadcrumbs}}
<div>

keywords → {string}

It control the layout of home page and category page.

For example:
{{keywords}}

articles → {object}

A collection of articles under the current category.

Article Object Properties:
Name Type Description
id number

Article Id.

title string

Article title.

url string

Article url.

if_featured boolean

Flag the article is featured.

body string

Article body.

views number

The views of article.

For example:
{% for article in articles %}
    <div class="article-list__title">
    {% if article.if_featured %}
        <i class="iconfont icon-feature"></i>
    {% endif %}
    <a href="{{article.url}}">{{article.title}}</a>
    </div>
    <div class="article-list__content">
         {{article.body}}
    </div>
{% endfor %}