diff --git a/README.md b/README.md index 3587ce2..182ae2e 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,13 @@ [![Netlify Status](https://api.netlify.com/api/v1/badges/7c893944-b841-4547-8340-ce593a43b9a3/deploy-status)](https://app.netlify.com/sites/dongtai-io/deploys) DongTai-website + +# hugo 使用流程 + +- 安装地址 + +> https://github.com/gohugoio/hugo/releases/tag/v0.99.1 + +启动项目:hogo serve 启动成功会给出一个localhost:1313 本地访问的服务 + +打包项目:hogo 编译项目生成public文件 diff --git a/config/_default/menus.zh.toml b/config/_default/menus.zh.toml index 018a40b..d4862fa 100755 --- a/config/_default/menus.zh.toml +++ b/config/_default/menus.zh.toml @@ -30,10 +30,7 @@ name = "关于我们" url = "about/" weight = 6 -[[main]] -parent = "关于我们" -name = "公司简介" -url = "about" + [[main]] parent = "关于我们" diff --git a/config/_default/params.toml b/config/_default/params.toml index df37004..add7ea5 100755 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -35,6 +35,7 @@ link = "https://mp.weixin.qq.com/s/Z9NWJp8f1fscoQrY1W2X8w" enable = true label = "" link = "/business/" +guide = "images/guide.png" #[navigation_button_linked] diff --git a/static/images/guide.png b/static/images/guide.png new file mode 100644 index 0000000..6258085 Binary files /dev/null and b/static/images/guide.png differ diff --git a/static/images/ty-book.png b/static/images/ty-book.png new file mode 100644 index 0000000..1bf3207 Binary files /dev/null and b/static/images/ty-book.png differ diff --git a/static/images/ty.pdf b/static/images/ty.pdf new file mode 100644 index 0000000..dd922e2 Binary files /dev/null and b/static/images/ty.pdf differ diff --git a/themes/copper-hugo/exampleSite/config/_default/params.toml b/themes/copper-hugo/exampleSite/config/_default/params.toml index c36c188..ceaf4e0 100755 --- a/themes/copper-hugo/exampleSite/config/_default/params.toml +++ b/themes/copper-hugo/exampleSite/config/_default/params.toml @@ -7,6 +7,7 @@ apple_touch_icon = "images/favicon.png" # logo logo_text = "Copper" logo = "images/logo.png" +guide = "images/guide.png" logo_width = "" # OpenGraph / Twitter Card metadata description = "This is meta description" diff --git a/themes/copper-hugo/exampleSite/static/images/guide.png b/themes/copper-hugo/exampleSite/static/images/guide.png new file mode 100644 index 0000000..6258085 Binary files /dev/null and b/themes/copper-hugo/exampleSite/static/images/guide.png differ diff --git a/themes/copper-hugo/layouts/_default/about.html b/themes/copper-hugo/layouts/_default/about.html index 0ffb31f..fdf12ba 100755 --- a/themes/copper-hugo/layouts/_default/about.html +++ b/themes/copper-hugo/layouts/_default/about.html @@ -3,7 +3,7 @@ {{ if .Params.about.enable }} {{ with .Params.about }} -
+ -
+

用户案例

diff --git a/themes/copper-hugo/layouts/_default/business.html b/themes/copper-hugo/layouts/_default/business.html index 2c9f9c1..3de902a 100644 --- a/themes/copper-hugo/layouts/_default/business.html +++ b/themes/copper-hugo/layouts/_default/business.html @@ -40,9 +40,15 @@
企业版
@@ -66,6 +72,38 @@
+ {{ end }} {{ end }} diff --git a/themes/copper-hugo/layouts/index.html b/themes/copper-hugo/layouts/index.html index 8cbbda1..c8e9d7a 100755 --- a/themes/copper-hugo/layouts/index.html +++ b/themes/copper-hugo/layouts/index.html @@ -43,8 +43,14 @@

{{ .title | markdownify }}

OR
{{ end }} {{ end }} {{ if .button.enable }} {{ with .button }} - - {{with .icon}} {{end}} {{.label}} + + + {{with .icon}} {{end}} {{.label}} +
+

+ +
+
{{ end }} {{ end }} @@ -339,7 +345,7 @@

{{ .title | markdownify }}

{{ .content | markdownify }}

-
+ +
+
《IAST金融行业专刊——基调听云》 下载 +
+

《IAST金融行业专刊——基调听云》申请

+ +

填写并提交问卷后即可下载

+
+
@@ -402,5 +417,38 @@

{{ .title | markdownify }}

/* 2 */ color: #33A9AC; } + + .btn-outline-primary-modal { + position: relative; + z-index: 2; + } + + .btn-outline-primary-modal:hover .download-buss { + display: block; + } + + .download-buss { + display: none; + text-align: center; + border-radius: 4px; + padding: 24px; + width: 260px; + position: absolute; + right: 100px; + top: -196px; + background: #fff; + color: rgb(34, 34, 34); + z-index: 1000; + } + + .download-buss img { + width: 140px; + height: 140px; + padding: 4px; + } + + .download-buss p { + font-size: 12px; + } {{ end }} {{ end }} {{ end }} \ No newline at end of file diff --git a/themes/copper-hugo/layouts/partials/footer.html b/themes/copper-hugo/layouts/partials/footer.html index 13766af..286ecd8 100755 --- a/themes/copper-hugo/layouts/partials/footer.html +++ b/themes/copper-hugo/layouts/partials/footer.html @@ -88,10 +88,10 @@
{{ i18n "subscribe"}}
{{ end }} {{ end }} --> -
+ +
联 系 我 们
DongTaiQRCode @@ -103,7 +103,7 @@
{{ i18n "contact_wechat"}}
-
+
--> diff --git a/themes/copper-hugo/layouts/partials/header.html b/themes/copper-hugo/layouts/partials/header.html index 4811774..a9a506a 100755 --- a/themes/copper-hugo/layouts/partials/header.html +++ b/themes/copper-hugo/layouts/partials/header.html @@ -1,5 +1,5 @@ {{ "" | safeHTML }} -
+
+ \ No newline at end of file