From 4359e340c62e46cc46810c752afb267e00741595 Mon Sep 17 00:00:00 2001 From: mtail Date: Tue, 26 Jun 2018 07:27:03 -0700 Subject: [PATCH] Speed up loading of community page by inlining images --- content/community/_index.md | 12 ++-- content_zh/community/_index.md | 12 ++-- layouts/partials/community/drive.svg | 1 + .../partials/community}/group.svg | 4 +- .../partials/community}/mailing-list.svg | 3 +- .../partials/community}/rocket-chat.svg | 2 +- .../partials/community}/stackoverflow.svg | 3 +- .../partials/community}/twitter.svg | 3 +- static/img/bulb.svg | 2 +- static/img/drive.png | Bin 5694 -> 0 bytes static/img/exclamation-mark.svg | 55 +++++++++--------- static/img/rss.svg | 4 +- 12 files changed, 46 insertions(+), 55 deletions(-) create mode 100644 layouts/partials/community/drive.svg rename {static/img => layouts/partials/community}/group.svg (90%) rename {static/img => layouts/partials/community}/mailing-list.svg (85%) rename {static/img => layouts/partials/community}/rocket-chat.svg (93%) rename {static/img => layouts/partials/community}/stackoverflow.svg (87%) rename {static/img => layouts/partials/community}/twitter.svg (85%) delete mode 100644 static/img/drive.png diff --git a/content/community/_index.md b/content/community/_index.md index 2678d1dc58..c2a279451a 100644 --- a/content/community/_index.md +++ b/content/community/_index.md @@ -13,7 +13,7 @@ There are quite a few ways to get plugged in with the Istio community: - Mailing Lists + {{< inline_image "community/mailing-list.svg" >}} Join the istio-users@ mailing list to participate in discussions @@ -26,14 +26,14 @@ There are quite a few ways to get plugged in with the Istio community: - Twitter + {{< inline_image "community/twitter.svg" >}} Follow us on Twitter to get the latest news. - Stack Overflow + {{< inline_image "community/stackoverflow.svg" >}} Stack Overflow is for practical questions and curated answers on deploying, configuring, and using Istio. @@ -41,7 +41,7 @@ There are quite a few ways to get plugged in with the Istio community: - Rocket Chat + {{< inline_image "community/rocket-chat.svg" >}} Chat with members of the Istio community on Rocket Chat. @@ -55,7 +55,7 @@ There are quite a few ways to get plugged in with the Istio community: - Team Drive + {{< inline_image "community/drive.svg" >}} If you want to get into the nuts and bolts of Istio, check out our growing collection of design documents. To access these, simply join the @@ -66,7 +66,7 @@ There are quite a few ways to get plugged in with the Istio community: - Working Groups + {{< inline_image "community/group.svg" >}} If you'd like to contribute to the Istio project, consider participating in our working groups. diff --git a/content_zh/community/_index.md b/content_zh/community/_index.md index 80094b9635..9092beaadb 100644 --- a/content_zh/community/_index.md +++ b/content_zh/community/_index.md @@ -12,7 +12,7 @@ Istio是一个开源项目,拥有支持其使用和持续开发的活跃社区 - Mailing Lists + {{< inline_image "community/mailing-list.svg" >}} 加入 istio-users@ 邮件列表参与讨论,获取排除故障的帮助。 加入 istio-announce@ 了解最新发布、活动和其他事情。 @@ -21,21 +21,21 @@ Istio是一个开源项目,拥有支持其使用和持续开发的活跃社区 - Twitter + {{< inline_image "community/twitter.svg" >}} 关注我们的Twitter来获最新信息。 - Stack Overflow + {{< inline_image "community/stackoverflow.svg" >}} Stack Overflow中列举了针对实际问题以及部署、配置和使用Istio的各项回答。 - Rocket Chat + {{< inline_image "community/rocket-chat.svg" >}} 在Rocket Chat中与社区中的成员交流。 @@ -49,7 +49,7 @@ Istio是一个开源项目,拥有支持其使用和持续开发的活跃社区 - Team Drive + {{< inline_image "community/drive.svg" >}} 如果您想深入了解Istio的细节,请查看我们日益增加完善的设计文档。要访问这些文档,值需要加入 istio-team-drive-access@邮件列表。 @@ -59,7 +59,7 @@ Istio是一个开源项目,拥有支持其使用和持续开发的活跃社区 - Working Groups + {{< inline_image "community/group.svg" >}} 如果您想为Istio项目做出贡献,请考虑加入我们的 工作组。 diff --git a/layouts/partials/community/drive.svg b/layouts/partials/community/drive.svg new file mode 100644 index 0000000000..c7711c2190 --- /dev/null +++ b/layouts/partials/community/drive.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/img/group.svg b/layouts/partials/community/group.svg similarity index 90% rename from static/img/group.svg rename to layouts/partials/community/group.svg index df5cd3b127..f952a351ce 100644 --- a/static/img/group.svg +++ b/layouts/partials/community/group.svg @@ -1,6 +1,4 @@ - - - diff --git a/static/img/mailing-list.svg b/layouts/partials/community/mailing-list.svg similarity index 85% rename from static/img/mailing-list.svg rename to layouts/partials/community/mailing-list.svg index 375fe54b33..31d212ed3b 100644 --- a/static/img/mailing-list.svg +++ b/layouts/partials/community/mailing-list.svg @@ -1,5 +1,4 @@ - - + -