Skip to content

Commit

Permalink
[sync] Disable description for /posts and /community
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 23, 2023
1 parent b500a8b commit 68e79b3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/_layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
{% endif %}

{% assign desc = page.description -%}
{% unless desc and desc != '' -%}
{% unless page.url contains '/posts' or page.url contains '/community' or desc and desc != '' -%}
{% assign error = page.url | append: ' must have a description specified!' -%}
{{ error | throw_error }}
{% endunless %}
Expand Down
4 changes: 2 additions & 2 deletions src/development/ui/navigation/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
title: Navigation and routing
title: 路由和导航
Description: Overview of Flutter's navigation and routing features
Description: Flutter路由和导航的概览。
description: Overview of Flutter's navigation and routing features
description: Flutter路由和导航的概览。
tags: 用户界面,Flutter UI,布局
keywords: 路由和导航
---
Expand Down
7 changes: 0 additions & 7 deletions src/development/ui/splash-screen/index.md

This file was deleted.

1 change: 1 addition & 0 deletions src/disclaimer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Disclaimer
title: Flutter 社区中文资源网站特别说明 (免责条款)
tags: 站点资源
keywords: 免责声明, Flutter.cn免责说明
description: Flutter 社区中文资源网站特别说明及免责条款
---

*英文在下方 (ENGLISH BELOW)*
Expand Down
1 change: 1 addition & 0 deletions src/subscribe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- url: https://www.google.cn/js/gweb/analytics/autotrack.js
- defer: true
url: /assets/js/subscribe.js
description: 订阅来自 Flutter 团队(官方)的更新
---

<div class="form-page">
Expand Down
1 change: 1 addition & 0 deletions src/subscribe/subscribed.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Subscribe
layout: base
show_banner: False
description: 已订阅来自 Flutter 团队(官方)的更新
---

<div class="subscribed-page">
Expand Down

0 comments on commit 68e79b3

Please sign in to comment.