From e33474030489251bc629d55f19e2e13061438084 Mon Sep 17 00:00:00 2001 From: wangpeiheng Date: Mon, 20 Apr 2020 10:44:45 +0800 Subject: [PATCH 1/3] blog h5 style --- content/en/prepare/prepare.md | 10 +- .../traffic_millions/2020-03-27-VirtualBox.md | 2 +- .../post/traffic_millions/2020-03-27-qemu.md | 2 +- content/zh/prepare/prepare.md | 10 +- .../layouts/_default/single.html | 2 +- .../layouts/archives/list.html | 2 +- .../layouts/guidance/list.html | 2 +- themes/hugo-blog-jeffprod/layouts/index.html | 6 +- .../layouts/partials/header.html | 1 + .../hugo-blog-jeffprod/layouts/post/list.html | 2 +- .../hugo-blog-jeffprod/layouts/tags/list.html | 2 +- .../layouts/taxonomy/archive.html | 2 +- .../layouts/taxonomy/tag.html | 2 +- themes/hugo-blog-jeffprod/static/css/blog.css | 8 +- .../hugo-blog-jeffprod/static/css/commen.css | 3 +- .../hugo-blog-jeffprod/static/css/mobile.css | 153 ++++++++++++++++++ 16 files changed, 183 insertions(+), 26 deletions(-) create mode 100644 themes/hugo-blog-jeffprod/static/css/mobile.css diff --git a/content/en/prepare/prepare.md b/content/en/prepare/prepare.md index 90323770..aa555a91 100644 --- a/content/en/prepare/prepare.md +++ b/content/en/prepare/prepare.md @@ -1,5 +1,5 @@ -* 1.Please refer to the to register for Gitee account. -* 2.Set up your main mailbox in gitee(). -* 3.Sign your CLA in the . -* 4.Refer to the to prepare the git environment. -* 5.Understand the blog format. \ No newline at end of file +1. Please refer to the to register for Gitee account. +2. Set up your main mailbox in gitee(). +3. Sign your CLA in the . +4. Refer to the to prepare the git environment. +5. Understand the blog format. \ No newline at end of file diff --git a/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md b/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md index 6e6cf296..a44d2b89 100644 --- a/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md +++ b/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md @@ -1,5 +1,5 @@ +++ -title = "初试openGauss(二):windows下使用VirtualBox安装openGauss(这是中文)" +title = "初试openGauss(二):windows下使用VirtualBox安装openGauss" date = "2020-03-27" tags = ["安装openGauss"] archives = "2020-03" diff --git a/content/zh/post/traffic_millions/2020-03-27-qemu.md b/content/zh/post/traffic_millions/2020-03-27-qemu.md index 97aec32c..0f720e50 100644 --- a/content/zh/post/traffic_millions/2020-03-27-qemu.md +++ b/content/zh/post/traffic_millions/2020-03-27-qemu.md @@ -1,5 +1,5 @@ +++ -title = "初试openGauss(一):windows下使用qemu安装openGauss(这是中文)" +title = "初试openGauss(一):windows下使用qemu安装openGauss" date = "2020-03-09" tages = ["安装openGauss"] archives = "2020-03" diff --git a/content/zh/prepare/prepare.md b/content/zh/prepare/prepare.md index 61ba2fbf..e3e2e9f0 100644 --- a/content/zh/prepare/prepare.md +++ b/content/zh/prepare/prepare.md @@ -1,5 +1,5 @@ -* 1.请参阅来注册Gitee账户。 -* 2.在gitee中()设置您的主邮箱。 -* 3.在上签署您的CLA。 -* 4.参考准备git环境。 -* 5.了解博客格式。 \ No newline at end of file +1. 请参阅来注册Gitee账户。 +2. 在gitee中()设置您的主邮箱。 +3. 在上签署您的CLA。 +4. 参考准备git环境。 +5. 了解博客格式。 \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/_default/single.html b/themes/hugo-blog-jeffprod/layouts/_default/single.html index 5b0cb055..ce3d0a04 100644 --- a/themes/hugo-blog-jeffprod/layouts/_default/single.html +++ b/themes/hugo-blog-jeffprod/layouts/_default/single.html @@ -16,7 +16,7 @@ {{ partial "comments.html" . }} -
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-related.html" . }}
diff --git a/themes/hugo-blog-jeffprod/layouts/archives/list.html b/themes/hugo-blog-jeffprod/layouts/archives/list.html index 5e1db027..67011e6a 100644 --- a/themes/hugo-blog-jeffprod/layouts/archives/list.html +++ b/themes/hugo-blog-jeffprod/layouts/archives/list.html @@ -31,7 +31,7 @@
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-archives.html" . }} diff --git a/themes/hugo-blog-jeffprod/layouts/guidance/list.html b/themes/hugo-blog-jeffprod/layouts/guidance/list.html index 3e09cb66..4e3590cf 100644 --- a/themes/hugo-blog-jeffprod/layouts/guidance/list.html +++ b/themes/hugo-blog-jeffprod/layouts/guidance/list.html @@ -10,7 +10,7 @@
{{ .Content }}
{{ end }}
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-archives.html" . }} diff --git a/themes/hugo-blog-jeffprod/layouts/index.html b/themes/hugo-blog-jeffprod/layouts/index.html index 7265df96..71b6e74c 100644 --- a/themes/hugo-blog-jeffprod/layouts/index.html +++ b/themes/hugo-blog-jeffprod/layouts/index.html @@ -29,7 +29,7 @@
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-archives.html" . }} @@ -38,8 +38,8 @@
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-related.html" . }}
diff --git a/themes/hugo-blog-jeffprod/layouts/tags/list.html b/themes/hugo-blog-jeffprod/layouts/tags/list.html index d6c291b5..9e139812 100644 --- a/themes/hugo-blog-jeffprod/layouts/tags/list.html +++ b/themes/hugo-blog-jeffprod/layouts/tags/list.html @@ -31,7 +31,7 @@
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-archives.html" . }} diff --git a/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html b/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html index 5e1db027..67011e6a 100644 --- a/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html +++ b/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html @@ -31,7 +31,7 @@
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-archives.html" . }} diff --git a/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html b/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html index 432d424e..2108f156 100644 --- a/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html +++ b/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html @@ -32,7 +32,7 @@
-
+
{{ partial "widget-tags.html" . }}
{{ partial "widget-recent.html" . }}
{{ partial "widget-archives.html" . }} diff --git a/themes/hugo-blog-jeffprod/static/css/blog.css b/themes/hugo-blog-jeffprod/static/css/blog.css index 843429d6..58bc0b3f 100644 --- a/themes/hugo-blog-jeffprod/static/css/blog.css +++ b/themes/hugo-blog-jeffprod/static/css/blog.css @@ -59,15 +59,17 @@ html,body { height: 7px; background: #467FBF; } -.prepare_content>ul { +.prepare_content>ol { margin: 20px 0; + padding-left: 0.3rem; } -.prepare_content>ul li { +.prepare_content>ol li { font-size: 18px; line-height: 27px; color: #080808; + list-style-type: decimal; } -.prepare_content>ul li a { +.prepare_content>ol li a { color: #467FBF; text-decoration: none; } diff --git a/themes/hugo-blog-jeffprod/static/css/commen.css b/themes/hugo-blog-jeffprod/static/css/commen.css index d668282a..e156e309 100644 --- a/themes/hugo-blog-jeffprod/static/css/commen.css +++ b/themes/hugo-blog-jeffprod/static/css/commen.css @@ -73,4 +73,5 @@ html { { word-break: keep-all; white-space:nowrap; - } \ No newline at end of file + } + \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/static/css/mobile.css b/themes/hugo-blog-jeffprod/static/css/mobile.css new file mode 100644 index 00000000..d6fd8114 --- /dev/null +++ b/themes/hugo-blog-jeffprod/static/css/mobile.css @@ -0,0 +1,153 @@ +@media screen and (min-width: 768px) and (max-width: 1280px) { + .isPc { + display: none; + } + .container { + width: 100%; + } + .prepare { + align-items: center; + } + .is-9 { + width: 100%; + } + .has-text-centered { + width: 100%; + } + .container { + width: 95%; + } + .has-text-centered h1, + .has-text-centered div { + text-align: center; + } + .prepare_warp { + width: 100%; + } + .blog_bg { + height: 400px; + } + a { + word-wrap:break-word; + } +} +@media screen and (min-width: 1280px) { + .isPc { + display: block; + } + .isH5 { + display: none; + } +} +@media screen and (min-width: 319px) and (max-width: 767px) { + .isPc { + display: none; + } + .isH5 { + display: block; + } + .container { + width: 95%; + } + body { + font-size: 0.24rem; + } + .blog_bg { + height: 250px; + } + .prepare_warp { + width: 100%; + } + .prepare_content { + padding: 0.2rem 0.4rem; + } + .prepare_content>h2 { + font-size: 0.32rem; + } + .prepare_content>h2::after { + height: 0.07rem; + } + .prepare_content>ol { + margin: 0.2rem 0; + } + .prepare_content>ol li { + font-size: 0.24rem; + line-height: 0.24rem; + } + .btn { + padding: 0.06rem 0.3rem; + font-size: 0.24rem; + } + .is-9 { + width: 100%; + } + .article { + height: 2rem; + margin-top: 0.3rem; + } + .article_left { + width: 2.6rem; + height: 100%; + } + .article_right { + margin-left: 0.3rem; + } + .article_right h3 { + font-size: 0.26rem; + } + .article_right>div span { + font-size: 0.24rem; + margin-right: 0.3rem; + } + .article_right>div { + margin: 0.1rem 0 0.12rem 0; + } + .article_right>a>p { + font-size: 0.24rem; + line-height: 0.24rem; + } + .article_right>div svg { + width: 0.24rem; + height: 0.24rem; + } + /* -----------------分页--------------- */ + .pagination-link, .pagination-next, .pagination-previous { + padding: 0.05rem 0.1rem; + font-size: 0.24rem; + } + + /* -----------------single page----------------- */ + a { + word-wrap:break-word; + } + .has-text-centered { + width: 100%; + /* display: flex; + flex-direction: column; + justify-content: center; + align-items: center; */ + } + .hero-warp { + height: 2.2rem; + } + .has-text-centered h1, + .has-text-centered div { + text-align: center; + } + .has-text-centered h1 { + padding: 0 0.5rem; + font-size: 0.32rem; + } + .post_detail { + font-size: 0.24rem; + } + .tile p, .tile ul { + line-height: 0.32rem; + } + .is-9 .tile, .guidance { + margin-top: 0.5rem; + } + .content h3 { + margin-bottom: 0.2rem; + } +} \ No newline at end of file -- Gitee From b50aabf03fd33187045e10525e86ca07b18ef4ee Mon Sep 17 00:00:00 2001 From: wangpeiheng Date: Mon, 20 Apr 2020 15:38:42 +0800 Subject: [PATCH 2/3] modify some style --- content/en/post/traffic_millions/2020-03-27-VirtualBox.md | 2 +- content/en/post/traffic_millions/2020-03-27-qemu.md | 2 +- themes/hugo-blog-jeffprod/layouts/index.html | 3 --- themes/hugo-blog-jeffprod/static/css/mobile.css | 6 +----- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/content/en/post/traffic_millions/2020-03-27-VirtualBox.md b/content/en/post/traffic_millions/2020-03-27-VirtualBox.md index 477cfcf3..f91d6347 100644 --- a/content/en/post/traffic_millions/2020-03-27-VirtualBox.md +++ b/content/en/post/traffic_millions/2020-03-27-VirtualBox.md @@ -1,5 +1,5 @@ +++ -title = "初试openGauss(二):windows下使用VirtualBox安装openGauss" +title = "Try a openGauss(2): install the opengauss in the window environment" date = "2020-03-27" tags = ["安装openGauss"] archives = "2020-03" diff --git a/content/en/post/traffic_millions/2020-03-27-qemu.md b/content/en/post/traffic_millions/2020-03-27-qemu.md index 3b128111..5a0b8c7b 100644 --- a/content/en/post/traffic_millions/2020-03-27-qemu.md +++ b/content/en/post/traffic_millions/2020-03-27-qemu.md @@ -1,5 +1,5 @@ +++ -title = "初试openGauss(一):windows下使用qemu安装openGauss" +title = "Try a openGauss(1): install the opengauss in the window environment" date = "2020-03-27" tages = ["安装openGauss"] archives = "2020-03" diff --git a/themes/hugo-blog-jeffprod/layouts/index.html b/themes/hugo-blog-jeffprod/layouts/index.html index 71b6e74c..64d2bf08 100644 --- a/themes/hugo-blog-jeffprod/layouts/index.html +++ b/themes/hugo-blog-jeffprod/layouts/index.html @@ -51,8 +51,5 @@
-
- -
{{ end }} diff --git a/themes/hugo-blog-jeffprod/static/css/mobile.css b/themes/hugo-blog-jeffprod/static/css/mobile.css index d6fd8114..f551c0c4 100644 --- a/themes/hugo-blog-jeffprod/static/css/mobile.css +++ b/themes/hugo-blog-jeffprod/static/css/mobile.css @@ -122,10 +122,6 @@ } .has-text-centered { width: 100%; - /* display: flex; - flex-direction: column; - justify-content: center; - align-items: center; */ } .hero-warp { height: 2.2rem; @@ -148,6 +144,6 @@ margin-top: 0.5rem; } .content h3 { - margin-bottom: 0.2rem; + margin-bottom: 0; } } \ No newline at end of file -- Gitee From 5da8aa1eb0aa07b4cde2e7c776bb1d77ab91dfbd Mon Sep 17 00:00:00 2001 From: wangpeiheng Date: Mon, 20 Apr 2020 15:46:54 +0800 Subject: [PATCH 3/3] modify english post title --- content/en/post/traffic_millions/2020-03-27-VirtualBox.md | 2 +- content/en/post/traffic_millions/2020-03-27-qemu.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/post/traffic_millions/2020-03-27-VirtualBox.md b/content/en/post/traffic_millions/2020-03-27-VirtualBox.md index f91d6347..ba4a7025 100644 --- a/content/en/post/traffic_millions/2020-03-27-VirtualBox.md +++ b/content/en/post/traffic_millions/2020-03-27-VirtualBox.md @@ -1,5 +1,5 @@ +++ -title = "Try a openGauss(2): install the opengauss in the window environment" +title = "Try a openGauss(2)" date = "2020-03-27" tags = ["安装openGauss"] archives = "2020-03" diff --git a/content/en/post/traffic_millions/2020-03-27-qemu.md b/content/en/post/traffic_millions/2020-03-27-qemu.md index 5a0b8c7b..da0474f7 100644 --- a/content/en/post/traffic_millions/2020-03-27-qemu.md +++ b/content/en/post/traffic_millions/2020-03-27-qemu.md @@ -1,5 +1,5 @@ +++ -title = "Try a openGauss(1): install the opengauss in the window environment" +title = "Try a openGauss(1)" date = "2020-03-27" tages = ["安装openGauss"] archives = "2020-03" -- Gitee