From 5b6a8fed0d3263ace27aabbdfbdb85bdad7c8127 Mon Sep 17 00:00:00 2001 From: Librahang <245462755@qq.com> Date: Tue, 31 Dec 2019 21:44:18 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=9A=90=E8=97=8Fversions=202.=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=8B=E8=BD=BD=E9=A1=B5=E9=9D=A2=203.=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BB=A3=E7=A0=81=E4=BB=93=E5=BA=93=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.toml | 79 +++---------------- i18n/en.toml | 18 +++++ i18n/zh.toml | 19 +++++ themes/project/layouts/download/list.html | 84 +++++---------------- themes/project/layouts/partials/cards.html | 4 +- themes/project/layouts/partials/nav.html | 30 ++++++++ themes/project/static/css/custom.css | 27 ++++++- themes/project/static/css/style.blue.css | 4 + themes/project/static/img/gitee-logo.ico | Bin 0 -> 41566 bytes 9 files changed, 128 insertions(+), 137 deletions(-) create mode 100644 themes/project/static/img/gitee-logo.ico diff --git a/config.toml b/config.toml index 3f055de..7ee882f 100644 --- a/config.toml +++ b/config.toml @@ -30,32 +30,6 @@ paginate = 10 url = "/en" weight = 1 -# [[menu.main]] -# identifier = "user" -# name = "User" -# url = "/en/introduction.html" -# weight = 2 -# -# [[menu.main]] -# identifier = "intro" -# name = "Brief Introduction" -# url = "/en/introduction.html" -# parent = "user" -# weight = 1 -# -# [[menu.main]] -# identifier = "story" -# name = "User Story" -# url = "/en/story.html" -# parent = "user" -# weight = 2 -# [[menu.main]] -# identifier = "contribution" -# name = "Contribution" -# url = "/en/contribution.html" -# weight = 1 -# parent = "developer" - [[menu.main]] identifier = "community" name = "Community" @@ -124,11 +98,11 @@ paginate = 10 url = "/en/news.html" weight = 1 -[[menu.main]] - identifier = "versions" - name = "Versions" - url = "/en/versions.html" - weight = 4 +#[[menu.main]] +# identifier = "versions" +# name = "Versions" +# url = "/en/versions.html" +# weight = 4 [[menu.main]] identifier = "docs" @@ -140,7 +114,7 @@ paginate = 10 [[menu.main]] identifier = "download" name = "Download" - url = "/en/building/download.html" + url = "/en/download.html" weight = 6 [[menu.main]] @@ -161,35 +135,6 @@ paginate = 10 url = "/zh" weight = 1 -# [[languages.zh.menu.main]] -# identifier = "user" -# name = "用户" -# url = "/zh/introduction.html" -# weight = 2 -# -# [[languages.zh.menu.main]] -# identifier = "intro" -# name = "软件介绍" -# url = "/zh/introduction.html" -# parent = "user" -# weight = 1 -# -# [[languages.zh.menu.main]] -# identifier = "story" -# name = "用户故事" -# url = "/zh/story.html" -# parent = "user" -# weight = 2 - - - -# [[languages.zh.menu.main]] -# identifier = "contribution" -# name = "如何贡献" -# url = "/zh/contribution.html" -# weight = 1 -# parent = "developer" - [[languages.zh.menu.main]] identifier = "community" name = "社区" @@ -260,11 +205,11 @@ paginate = 10 url = "/zh/news.html" weight = 2 -[[languages.zh.menu.main]] - identifier = "versions" - name = "版本" - url = "/zh/versions.html" - weight = 4 +#[[languages.zh.menu.main]] +# identifier = "versions" +# name = "版本" +# url = "/zh/versions.html" +# weight = 4 [[languages.zh.menu.main]] identifier = "docs" @@ -312,7 +257,7 @@ paginate = 10 [[languages.zh.menu.main]] identifier = "download" name = "下载" - url = "/zh/building/download.html" + url = "/zh/download.html" weight = 6 [[languages.zh.menu.main]] diff --git a/i18n/en.toml b/i18n/en.toml index 60f77fd..2875bb0 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -20,6 +20,15 @@ other = "openEuler builds an innovative platform and a unified and open OS that [main_cards_title_second] other = "iSula" +[main_cards_title_enter_repository] +other = ">>More" + +[main_nav_repository] +other = "Repository" + +[main_nav_packageSources] +other = "Package Sources" + [main_cards_description_second] other = "A cloud-native lightweight container solution that can meet the needs of device, edge, and cloud scenarios in ICT domain with a unified and flexible architecture." @@ -80,3 +89,12 @@ other = "Back to Home" [docs_nav_menu_name] other = "MENU" + +[download_title] +other = "Download ISO" + +[download_issues] +other = "Submit issues: " + +[download_iso_button] +other = "Get openEuler ISO" diff --git a/i18n/zh.toml b/i18n/zh.toml index b84c893..de03f02 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -20,6 +20,15 @@ other = "openEuler通过社区合作,打造创新平台,构建支持多处 [main_cards_title_second] other = "iSula" +[main_cards_title_enter_repository] +other = ">>更多" + +[main_nav_repository] +other = "代码仓" + +[main_nav_packageSources] +other = "软件包仓" + [main_cards_description_second] other = "iSula是一种云原生轻量级容器解决方案,可通过统一、灵活的架构满足ICT领域端、边、云场景的多种需求。" @@ -79,3 +88,13 @@ other = "返回首页" [docs_nav_menu_name] other = "目录" + +[download_title] +other = "下载ISO" + +[download_issues] +other = "如果您遇到问题,请在此提交问题:" + +[download_iso_button] +other = "下载openEuler ISO" + diff --git a/themes/project/layouts/download/list.html b/themes/project/layouts/download/list.html index 1debb79..b7b4fc0 100644 --- a/themes/project/layouts/download/list.html +++ b/themes/project/layouts/download/list.html @@ -1,82 +1,35 @@ - - {{ partial "head.html" . }} - - - +{{ partial "head.html" . }} +
-
- - {{ partial "nav.html" . }} - + {{ partial "nav.html" . }}
- - {{ partial "breadcrumbs.html" . }} - + {{ partial "breadcrumbs.html" . }} +
- - -
- - {{ $paginator := .Paginate (where .Data.Pages "Type" "download") }} - {{ range $paginator.Pages }} -
-
-
-

{{ .Content }}

-

{{ i18n "downloadImage" }} -

-
+
+
+
+

{{ i18n "download_title"}}

+
{{ i18n "download_issues"}}
+
https://gitee.com/openeuler/community-issue
-
-
- {{ end }} - - + +
+
- - - - - -
- - - - {{ partial "sidebar.html" (dict "context" . "downloadPage" "true") }} - - - -
- - - -
- - {{ partial "footer.html" . }} @@ -84,5 +37,8 @@ {{ partial "scripts.html" . }} - + + + + diff --git a/themes/project/layouts/partials/cards.html b/themes/project/layouts/partials/cards.html index 08a45c8..f7f9c5b 100644 --- a/themes/project/layouts/partials/cards.html +++ b/themes/project/layouts/partials/cards.html @@ -25,14 +25,14 @@
diff --git a/themes/project/layouts/partials/nav.html b/themes/project/layouts/partials/nav.html index 3409a0e..cc911eb 100644 --- a/themes/project/layouts/partials/nav.html +++ b/themes/project/layouts/partials/nav.html @@ -41,6 +41,18 @@ {{ end }} {{ end }} {{ end }} +

+ +

+ +

@@ -76,6 +88,7 @@ {{ $isChildren = true }} {{ end }} {{ end }} + {{ if ne .Identifier "lang" }} {{ end }} + {{ if eq .Identifier "lang" }} + + {{ end }} + {{ end }} +
  • + + +
  • + + + diff --git a/themes/project/static/css/custom.css b/themes/project/static/css/custom.css index c644abd..07166fd 100644 --- a/themes/project/static/css/custom.css +++ b/themes/project/static/css/custom.css @@ -94,9 +94,6 @@ position: relative; top: -160px; line-height: 120%; - /* margin-left: 0; */ - /* margin-right: 0 !important; */ - /* text-align: center; */ width: 100%; } @@ -144,6 +141,9 @@ font-size: 20px !important; top: -40px; } + .wrapper>div>div>p:nth-child(1)>a { + font-size: 10px !important; + } .wrapper>div>div>p:nth-child(2) { font-size: 12px !important; top: -30px; @@ -1078,4 +1078,23 @@ html,body { .cards a{ width:25%; } - +#downloadBlock{ + border-radius:10px; + border:1px solid rgba(221,221,221,2); + min-height:290px; +} +.downloadButtonBlock{ + width:100%; + height:70px; + background-color:rgba(242,242,242,2.5); + text-align: center; +} +.downloadContentBlock{ + min-height:220px; + text-align: left; + padding:10px; + padding-left:40px; +} +.downloadWholeBlock{ + margin-bottom: 30px; +} diff --git a/themes/project/static/css/style.blue.css b/themes/project/static/css/style.blue.css index c738447..0e17f50 100644 --- a/themes/project/static/css/style.blue.css +++ b/themes/project/static/css/style.blue.css @@ -523,6 +523,10 @@ body.boxed .navbar-affixed-top.affix { line-height: 1.42857143; border-radius: 0; } +.btn-download { + text-transform: none; + margin-top:15px; +} .input-group .btn { font-size: 14px; } diff --git a/themes/project/static/img/gitee-logo.ico b/themes/project/static/img/gitee-logo.ico new file mode 100644 index 0000000000000000000000000000000000000000..74846e716fcc9d60026bc3e738922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