${define "sitebar"}

## 推荐文章

${$newsParams := .newsParams} ${$newsParams := SetNewsParams $newsParams "Recommended" "1"} ${$listRec:=GetNewsList 0 4 (GetNewsParams $newsParams)} ${range $index,$article := $listRec}

- ${subStr $article.NewsTitle 20}

  ${$article.PublishedTime|timeFormatYear}
  ${if ne $article.Thumbnail ""}
  ${end}
${end}

## 点击最多的文章

${$newsParams := .newsParams} ${$newsParams := SetNewsParams $newsParams "OrderBy" "news.news_hits desc"} ${$listHits:=GetNewsList 0 4 (GetNewsParams $newsParams)} ${range $index,$article := $listHits}

- ${subStr $article.NewsTitle 20}

  ${$article.PublishedTime|timeFormatYear}
  ${if ne $article.Thumbnail ""}
  ${end}
${end}

${end}