From 72971188d1a1beb1421c7784fd28241882accb1f Mon Sep 17 00:00:00 2001 From: xiangxinyong Date: Mon, 30 Dec 2019 15:27:21 +0800 Subject: [PATCH] add security --- config.toml | 14 +++++- content/en/security/index.md | 9 +++- content/zh/security/index.md | 13 ++++-- themes/project/layouts/partials/security.html | 5 ++ themes/project/layouts/security/single.html | 46 +++++++++++++++++++ 5 files changed, 80 insertions(+), 7 deletions(-) create mode 100644 themes/project/layouts/partials/security.html create mode 100644 themes/project/layouts/security/single.html diff --git a/config.toml b/config.toml index ca193dc..22b4cd9 100644 --- a/config.toml +++ b/config.toml @@ -124,12 +124,17 @@ paginate = 10 url = "/en/building/download.html" weight = 6 +[[menu.main]] + identifier = "security" + name = "Security" + url = "/en/security.html" + weight = 7 [[menu.main]] identifier = "lang" name = "中文" url = "/zh" - weight = 7 + weight = 8 # Menu chinese [[languages.zh.menu.main]] @@ -268,12 +273,17 @@ paginate = 10 url = "/zh/building/download.html" weight = 6 +[[languages.zh.menu.main]] + identifier = "security" + name = "安全" + url = "/zh/security.html" + weight = 7 [[languages.zh.menu.main]] identifier = "lang" name = "EN" url = "/en" - weight = 7 + weight = 8 # Top bar social links menu diff --git a/content/en/security/index.md b/content/en/security/index.md index a6354ec..bc93cb0 100644 --- a/content/en/security/index.md +++ b/content/en/security/index.md @@ -1,3 +1,9 @@ ++++ +title = "Security" +id = "security" ++++ + + - [Submit a CVE Issue](#itm1) - [Security Group Distributes CVE Issues](#itm2) - [Handle CVE Issues](#itm3) @@ -152,5 +158,4 @@ Maintainer identifies and distributes CVE issues. Solutions to CVE problems can

CVE Issues Proceure

- -![CVE Procedure](./procedure.png) \ No newline at end of file + diff --git a/content/zh/security/index.md b/content/zh/security/index.md index b7960c4..63d5b62 100644 --- a/content/zh/security/index.md +++ b/content/zh/security/index.md @@ -1,3 +1,8 @@ ++++ +title = "安全" +id = "security" ++++ + - [扫描并提交CVE问题](#itm1) - [安全团队分发CVE问题](#itm2) - [处理CVE问题](#itm3) @@ -121,13 +126,13 @@ Maintainer会对CVE问题进行确认和分发。CVE问题的解决方案可以 + 漏洞的详细描述(以下信息由CVE扫描工具提供) + [CVEID] : 必须包含对应的CVE链接 -+ [PRODUCT]:CVE提供的信息,包含供应商,开发人员或项目名称,以及存在漏洞的实际软 件或硬件的名称 ++ [PRODUCT]:CVE提供的信息,包含供应商,开发人员或项目名称,以及存在漏洞的实际软件或硬件的名称 + [ VERSION ]:包括版本,发行日期或供应商,开发人员或项目用来区分发行版本的任何差异信息。也可以用特定的版本号,版本范围或“版本号或日期之前/之后的所有版本”来描述。 + [ PROBLEMTYPE ]: + [ REFERENCES ]:相关URL链接和参考说明 -+ [ DESCRIPTION ]:漏洞的详细描述说明,包括:使用该漏洞的攻击类型的说明;漏洞的影 响;受漏洞影响的软件产品中的软件组件;可以利用此漏洞的任何攻击媒介 ++ [ DESCRIPTION ]:漏洞的详细描述说明,包括:使用该漏洞的攻击类型的说明;漏洞的影响;受漏洞影响的软件产品中的软件组件;可以利用此漏洞的任何攻击媒介 + [ ASSIGNINGCNA ]:分配CNA的名称 @@ -152,4 +157,6 @@ Maintainer会对CVE问题进行确认和分发。CVE问题的解决方案可以

CVE问题流程说明

-![CVE问题处理流程](./procedure.png) \ No newline at end of file +

CVE问题处理流程

+ + diff --git a/themes/project/layouts/partials/security.html b/themes/project/layouts/partials/security.html new file mode 100644 index 0000000..9ce994b --- /dev/null +++ b/themes/project/layouts/partials/security.html @@ -0,0 +1,5 @@ +
+
+ {{ .Content }} +
+
diff --git a/themes/project/layouts/security/single.html b/themes/project/layouts/security/single.html new file mode 100644 index 0000000..bcf224d --- /dev/null +++ b/themes/project/layouts/security/single.html @@ -0,0 +1,46 @@ + + + + {{ partial "head.html" . }} + + + +
+ +
+ + {{ partial "nav.html" . }} + +
+ + {{ partial "breadcrumbs.html" . }} + +
+ {{ if isset .Params "id" }} + + {{ partial .Params.id . }} + + {{ else }} + +
+ +
+ {{ .Content }} +
+ +
+ + + {{ end }} +
+ + + {{ partial "footer.html" . }} + +
+ + + {{ partial "scripts.html" . }} + + + -- GitLab