Skip to content

Commit

Permalink
optimization, images and resources
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Feb 22, 2023
1 parent 4517e8c commit f3791dc
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 10 deletions.
2 changes: 1 addition & 1 deletion assets/scss/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ main {

// HERO
.header-hero {
background-image: url(/images/texture.png);
background-image: url(/imgs/texture.png);
background-color: $blue;
text-align: center;
padding-left: 0;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added content/en/featured-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed content/en/featured-background.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added content/zh-cn/featured-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed content/zh-cn/featured-background.png
Binary file not shown.
2 changes: 1 addition & 1 deletion content/zh-cn/overview/core-features/ecosystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ feature:
description: >
一站式微服务生态适配:注册中心、网关、限流降级、负载均衡、一致性事务、异步消息、Tracing 等。
---

{{< mse >}}

Dubbo 社区和众多优秀的开源项目一起围绕 Dubbo 建立了丰富的微服务生态支持,这让开发者从选型 Dubbo 作为开发框架的第一天,就无需担心后续的服务治理诉求,Dubbo 对每一个常见问题均提供了生产级的解决方案。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@

# leave the "announcements" key in place
announcements:
- name: Dubbo Meetup Shanghai
- name: Brandnew Website
startTime: 2023-02-21T00:00:00
endTime: 2023-03-20T18:00:00
style: >-
background-image: linear-gradient(90deg, rgb(249, 145, 6) 0%, rgb(252, 29, 68) 100%);
title: |
<img src ="/imgs/announcements/announcement-apache-dubbo-white.png" style="float: right; width: 20%; height: auto;" />
<a href= "#">Apache Dubbo 全新改版网站与文档</a> <em> 正式上线!</em>
<a href= "#">The brandnew website and documentation</a> <em> is now available!</em>
message: |
新版文档仍处于持续完善中,将涵盖 Dubbo3 及最新特性使用方式,我们计划在未来几个月内为用户提供最完善、易用的使用体验!<br />
The new site is still under development and is aimming to cover all new features including Dubbo3. We are determined to provide all of our users with the best experience in the next few months! <br />
2023-02-21.
12 changes: 12 additions & 0 deletions data/announcements/zh/scheduled.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
announcements:
- name: Brandnew Website
startTime: 2023-02-21T00:00:00
endTime: 2023-03-20T18:00:00
style: >-
background-image: linear-gradient(90deg, rgb(249, 145, 6) 0%, rgb(252, 29, 68) 100%);
title: |
<img src ="/imgs/announcements/announcement-apache-dubbo-white.png" style="float: right; width: 20%; height: auto;" />
<a href= "#">Apache Dubbo 全新改版网站与文档</a> <em> 正式上线!</em>
message: |
新版文档仍处于持续完善中,将涵盖 Dubbo3 及最新特性使用方式,我们计划在未来几个月内为用户提供最完善、易用的使用体验!<br />
2023-02-21.
8 changes: 7 additions & 1 deletion layouts/partials/announcement.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{{ $dateRegExp := "^[0-9]{4}-1[0-2]|0[1-9]-(?:3[01]|0[1-9]|[12][0-9])T(?:2[0-3]|[01][0-9]):(?:[0-5][0-9]):(?:60|[0-5][0-9])$" }}
{{ $announcementShown := false }}
{{ range $.Site.Data.announcements }}

{{ $currentAnnouncements := $.Site.Data.announcements.zh }}
{{ if eq .Site.Language.Lang "en" }}
{{ $currentAnnouncements := $.Site.Data.announcements.en }}
{{ end }}

{{ range $currentAnnouncements }}
{{ range .announcements }}
{{ if or ( eq .endTime nil ) ( eq .message nil ) }}
{{ errorf "Invalid announcement: %#v" . }}
Expand Down
3 changes: 0 additions & 3 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
{{ end }}
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="/js/github-buttons.js"></script>
<script src="https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.js"></script>
<link rel="stylesheet" href="https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.css" />


<link href="/css/community.css" rel="stylesheet">
<link href="/css/contactus.css" rel="stylesheet">
Expand Down
2 changes: 2 additions & 0 deletions layouts/shortcodes/mse.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<script src="https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.js"></script>
<link rel="stylesheet" href="https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.css" />
Binary file added static/imgs/texture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f3791dc

Please sign in to comment.