diff --git a/content/en/_example/2020-03-03-sample-post.md b/content/en/_example/2020-03-03-sample-post.md deleted file mode 100644 index c5f0749e9ed65d25231ff8a1e1dc7e365e4d14e8..0000000000000000000000000000000000000000 --- a/content/en/_example/2020-03-03-sample-post.md +++ /dev/null @@ -1,80 +0,0 @@ -+++ -title = "Sample Post" -date = "2020-03-03" -tags = ["Sample", "ABC", "cccc"] -archives = "2020-03" -author = "openGauss Blog Maintainer" -summary = "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more." -+++ - -## HTML Elements - -Below is just about everything you'll need to style in the blog. - -# Heading 1 - -## Heading 2 - -### Heading 3 - -#### Heading 4 - -##### Heading 5 - -### Body text - -This blog is about bla bla. **This is strong**. - -![openGauss is open](/content/_example/2020-03-03-sample-post-01.png) - -### Quotation - -> The sites that have been chosen are listed and described next to each work, with encapsulating quotes or pieces of text narrating central themes for the groups. - -## List Types - -### Ordered Lists - -1. Item one - 1. sub item one - 2. sub item two - 3. sub item three -2. Item two - -### Unordered Lists - -* Item one -* Item two -* Item three - -## Tables - -| Header1 | Header2 | Header3 | -|:--------|:-------:|--------:| -| cell1 | cell2 | cell3 | -| cell4 | cell5 | cell6 | -|---- -| cell1 | cell2 | cell3 | -| cell4 | cell5 | cell6 | -|===== -| Foot1 | Foot2 | Foot3 -{: rules="groups"} - -## Code - -``` -struct async_entry { - struct list_head domain_list; - struct list_head global_list; - struct work_struct work; - async_cookie_t cookie; - async_func_t func; - void *data; - struct async_domain *domain; -}; -``` - -## Attachment - -Download the file here download: -[get the PNG](/content/_example/2020-03-03-sample-post-01.png) directly. 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 4fc43ec04296e8f50b545cd7b52589598f469c30..477cfcf399344e12aef46c0608f978b4776d8ad8 100644 --- a/content/en/post/traffic_millions/2020-03-27-VirtualBox.md +++ b/content/en/post/traffic_millions/2020-03-27-VirtualBox.md @@ -5,7 +5,8 @@ tags = ["安装openGauss"] archives = "2020-03" author = "traffic_millions" summary = "windows下使用VirtualBox安装openGauss虚拟机." - +img = "/img/blog_01.png" +times = "2106" +++ ### 【背景】 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 ffcd49fbc2486efb885e1ef32482c31747fd881e..3b1281113f8fc5143c170aae2c1b1e78115e1526 100644 --- a/content/en/post/traffic_millions/2020-03-27-qemu.md +++ b/content/en/post/traffic_millions/2020-03-27-qemu.md @@ -5,6 +5,8 @@ tages = ["安装openGauss"] archives = "2020-03" author = "traffic_millions" summary = "windows下使用qemu安装openGauss虚拟机" +img = "/img/blog_01.png" +times = "2106" +++ ### 【背景】 diff --git a/content/en/prepare/prepare.md b/content/en/prepare/prepare.md new file mode 100644 index 0000000000000000000000000000000000000000..61ba2fbf6ba1f264a3506308c00461f0f403025a --- /dev/null +++ b/content/en/prepare/prepare.md @@ -0,0 +1,5 @@ +* 1.请参阅来注册Gitee账户。 +* 2.在gitee中()设置您的主邮箱。 +* 3.在上签署您的CLA。 +* 4.参考准备git环境。 +* 5.了解博客格式。 \ No newline at end of file diff --git a/content/zh/_example/2020-03-03-sample-post.md b/content/zh/_example/2020-03-03-sample-post.md deleted file mode 100644 index c5f0749e9ed65d25231ff8a1e1dc7e365e4d14e8..0000000000000000000000000000000000000000 --- a/content/zh/_example/2020-03-03-sample-post.md +++ /dev/null @@ -1,80 +0,0 @@ -+++ -title = "Sample Post" -date = "2020-03-03" -tags = ["Sample", "ABC", "cccc"] -archives = "2020-03" -author = "openGauss Blog Maintainer" -summary = "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more." -+++ - -## HTML Elements - -Below is just about everything you'll need to style in the blog. - -# Heading 1 - -## Heading 2 - -### Heading 3 - -#### Heading 4 - -##### Heading 5 - -### Body text - -This blog is about bla bla. **This is strong**. - -![openGauss is open](/content/_example/2020-03-03-sample-post-01.png) - -### Quotation - -> The sites that have been chosen are listed and described next to each work, with encapsulating quotes or pieces of text narrating central themes for the groups. - -## List Types - -### Ordered Lists - -1. Item one - 1. sub item one - 2. sub item two - 3. sub item three -2. Item two - -### Unordered Lists - -* Item one -* Item two -* Item three - -## Tables - -| Header1 | Header2 | Header3 | -|:--------|:-------:|--------:| -| cell1 | cell2 | cell3 | -| cell4 | cell5 | cell6 | -|---- -| cell1 | cell2 | cell3 | -| cell4 | cell5 | cell6 | -|===== -| Foot1 | Foot2 | Foot3 -{: rules="groups"} - -## Code - -``` -struct async_entry { - struct list_head domain_list; - struct list_head global_list; - struct work_struct work; - async_cookie_t cookie; - async_func_t func; - void *data; - struct async_domain *domain; -}; -``` - -## Attachment - -Download the file here download: -[get the PNG](/content/_example/2020-03-03-sample-post-01.png) directly. 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 8bed95a299c2eb214f4e27c0ed7f84d56baea49c..6e6cf29670fabdce978fe0d69f1591abf436ca15 100644 --- a/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md +++ b/content/zh/post/traffic_millions/2020-03-27-VirtualBox.md @@ -3,9 +3,10 @@ title = "初试openGauss(二):windows下使用VirtualBox安装openGauss( date = "2020-03-27" tags = ["安装openGauss"] archives = "2020-03" -author = "traffic_millions" +author = "吴凡刚" summary = "windows下使用VirtualBox安装openGauss虚拟机." - +img = "/img/blog_01.png" +times = "2106" +++ ### 【背景】 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 c7ad3dc15d4b2f067f80cb0463091f5c29be1271..97aec32c639459e50d4e1edc2c3b3832219853bf 100644 --- a/content/zh/post/traffic_millions/2020-03-27-qemu.md +++ b/content/zh/post/traffic_millions/2020-03-27-qemu.md @@ -1,10 +1,12 @@ +++ title = "初试openGauss(一):windows下使用qemu安装openGauss(这是中文)" -date = "2020-03-27" +date = "2020-03-09" tages = ["安装openGauss"] archives = "2020-03" -author = "traffic_millions" +author = "吴凡刚" summary = "windows下使用qemu安装openGauss虚拟机" +img = "/img/blog_01.png" +times = "2106" +++ ### 【背景】 diff --git a/content/zh/prepare/prepare.md b/content/zh/prepare/prepare.md new file mode 100644 index 0000000000000000000000000000000000000000..61ba2fbf6ba1f264a3506308c00461f0f403025a --- /dev/null +++ b/content/zh/prepare/prepare.md @@ -0,0 +1,5 @@ +* 1.请参阅来注册Gitee账户。 +* 2.在gitee中()设置您的主邮箱。 +* 3.在上签署您的CLA。 +* 4.参考准备git环境。 +* 5.了解博客格式。 \ No newline at end of file diff --git a/data/img/banner02.png b/data/img/banner02.png new file mode 100644 index 0000000000000000000000000000000000000000..46f6e0c5512360b1e624411a3812cd6e4aebe561 Binary files /dev/null and b/data/img/banner02.png differ diff --git a/data/img/blog_01.png b/data/img/blog_01.png new file mode 100644 index 0000000000000000000000000000000000000000..9fa6e09051ca59acff7a86ffa78cf599b0c4f00e Binary files /dev/null and b/data/img/blog_01.png differ diff --git a/i18n/en.toml b/i18n/en.toml index 09d9ebf0d7ca78f5b3f465226b95e2ecfdf5ceda..f9cdda707ce58792713a8b734565b72520bcbe6e 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -29,4 +29,19 @@ other = "en/archives" other = "/en/guidance" [blog_blogs_url] -other = "/en" \ No newline at end of file +other = "/en" + +[blog_declare] +other = "[Disclaimer]" + +[blog_declare_content] +other = " This article only represents the author's opinions, and is irrelevant to this website. This website is neutral in terms of the statements and opinions in this article, and does not provide any express or implied warranty of accuracy, reliability, or completeness of the contents contained therein. This article is for readers' reference only, and all legal responsibilities arising therefrom are borne by the reader himself." + +[blog_prepare] +other = "Pre-blog preparation" + +[blog_guidance] +other = "Post a Blog" + +[comment_placeholder] +other = "Please leave a message..." \ No newline at end of file diff --git a/i18n/zh.toml b/i18n/zh.toml index 3b00f5c3887e132336a25cd88e3e1c298c019f83..75fdbbd80c84f664166c8373f2868d3012e714b2 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -29,4 +29,19 @@ other = "zh/archives" other = "/zh/guidance" [blog_blogs_url] -other = "/zh" \ No newline at end of file +other = "/zh" + +[blog_declare] +other = "【免责声明】" + +[blog_declare_content] +other = "本文仅代表作者本人观点,与本网站无关。本网站对文中陈述、观点判断保持中立,不对所包含内容的准确性、可靠性或完整性提供任何明示或暗示的保证。本文仅供读者参考,由此产生的所有法律责任均由读者本人承担。" + +[blog_prepare] +other = "博客前准备" + +[blog_guidance] +other = "写博客" + +[comment_placeholder] +other = "说点什么吧..." \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/_default/baseof.html b/themes/hugo-blog-jeffprod/layouts/_default/baseof.html index bda429b4e90711ce65223382a383270554765c7e..7b5593f8b9a45ec80d4f58db4556fddbfa56950b 100644 --- a/themes/hugo-blog-jeffprod/layouts/_default/baseof.html +++ b/themes/hugo-blog-jeffprod/layouts/_default/baseof.html @@ -1,9 +1,7 @@ {{ partial "header.html" . }} -
-
- {{ block "main" . }}{{ end }} -
-
+ +{{ block "main" . }}{{ end }} + {{ partial "footer.html" . }} \ 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 2790f618f857f5a900907ab1961439e29660ae50..b7d12d00766b378c0d0791efed4942ed6171b7e6 100644 --- a/themes/hugo-blog-jeffprod/layouts/_default/single.html +++ b/themes/hugo-blog-jeffprod/layouts/_default/single.html @@ -1,29 +1,29 @@ {{ define "main" }} - -
-
-
-
- {{ .Content }} +{{ partial "detail-banner" }} +
+
+
+
+
+ {{ .Content }} +
+
+
+
{{ i18n "blog_declare" }}{{ i18n "blog_declare_content" }}
+
+
+ + {{ partial "comments.html" . }}
-
-
-
【免责声明】本文仅代表作者本人观点,与本网站无关。本网站对文中陈述、观点判断保持中立,不对所包含内容的准确性、可靠性或完整性提供任何明示或暗示的保证。本文仅供读者参考,由此产生的所有法律责任均由读者本人承担。
-
[Disclaimer] This article only represents the author's opinions, and is irrelevant to this website. This website is neutral in terms of the statements and opinions in this article, and does not provide any express or implied warranty of accuracy, reliability, or completeness of the contents contained therein. This article is for readers' reference only, and all legal responsibilities arising therefrom are borne by the reader himself.
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-related.html" . }}
+ {{ partial "widget-archives.html" . }}
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-related.html" . }}
- {{ partial "widget-archives.html" . }} -
-
- - {{ partial "comments.html" . }} -
{{ end }} diff --git a/themes/hugo-blog-jeffprod/layouts/archives/list.html b/themes/hugo-blog-jeffprod/layouts/archives/list.html index e300c60f8877fcd43640e90ce92d869e0ad5adca..d90a6cff2f7824fb46bc931c1aa2d21691c9fefe 100644 --- a/themes/hugo-blog-jeffprod/layouts/archives/list.html +++ b/themes/hugo-blog-jeffprod/layouts/archives/list.html @@ -1,34 +1,41 @@ {{ define "main" }} {{ $archive := lower .Title }} -
-
-
-
-{{ range $key, $value := .Site.Taxonomies.archives }}{{ if eq $key $archive }}{{ range $value.Pages }} -
-
-
-

{{ .LinkTitle }}

-

- Published at {{ .Date.Format "January 2, 2006" }} · -  {{.ReadingTime}} min read -

-

{{ .Summary }}...

-
+
+
+
+
+
+
+ {{ range $key, $value := .Site.Taxonomies.archives }}{{ if eq $key $archive }}{{ range $value.Pages }} +
+
+ +
+ +
+

{{ .LinkTitle }}

+
+ {{ .Params.author }} + {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
+

{{ .Params.summary }}...

+
+
+ {{ end }}{{ end }}{{ end }}
-
-
-{{ end }}{{ end }}{{ end }} +
+
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-archives.html" . }}
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-archives.html" . }} -
- {{ end }} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/guidance/list.html b/themes/hugo-blog-jeffprod/layouts/guidance/list.html index 0ff4f135ef23b68efdb339bca7d01409e82ef34a..3e09cb66e836c1838771ddd7e0d7b52004b4d64c 100644 --- a/themes/hugo-blog-jeffprod/layouts/guidance/list.html +++ b/themes/hugo-blog-jeffprod/layouts/guidance/list.html @@ -2,18 +2,23 @@ {{ $tag := lower .Title }} -
-
- {{ range where $.Page.Site.Pages "Type" "guidance" }} -
{{ .Content }}
- {{ end }} -
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-archives.html" . }} +
+
+
+
+ {{ range where $.Page.Site.Pages "Type" "guidance" }} +
{{ .Content }}
+ {{ end }} +
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-archives.html" . }} +
+
+ {{ end }} diff --git a/themes/hugo-blog-jeffprod/layouts/index.html b/themes/hugo-blog-jeffprod/layouts/index.html index 0662db518f29461a7cc9aedf972eb5691984ea25..d769fe4e7584582e585b1f91fd2d2734d6a283ee 100644 --- a/themes/hugo-blog-jeffprod/layouts/index.html +++ b/themes/hugo-blog-jeffprod/layouts/index.html @@ -1,48 +1,53 @@ {{ define "main" }} {{ $paginator := .Paginate (where .Site.RegularPages "Section" "post").ByPublishDate.Reverse }} +
+
+
+
+
+ {{ range $paginator.Pages }} +
+
+ +
-
-
-
-
-

-
- {{ range $paginator.Pages }} -
-
-
-

{{ .LinkTitle }}

-

- Author: {{ .Params.author }} · Published at {{ .Date.Format "January 2, 2006" }} · -  {{.ReadingTime}} min read -

-

{{ .Params.summary }}...

+
+

{{ .LinkTitle }}

+
+ {{ .Params.author }} + {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
+

{{ .Params.summary }}...

-
-
- {{ end }} +
+ {{ end }} +
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-archives.html" . }} +
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-archives.html" . }} -
-
-
-
- +
+
+ +
+ {{ end }} diff --git a/themes/hugo-blog-jeffprod/layouts/partials/comments.html b/themes/hugo-blog-jeffprod/layouts/partials/comments.html index dd6256a5c74dc82cbd77f1146ba1d08884bc98f1..be2580e46f3ed09543756ac7748f3be5d68b5fca 100644 --- a/themes/hugo-blog-jeffprod/layouts/partials/comments.html +++ b/themes/hugo-blog-jeffprod/layouts/partials/comments.html @@ -2,11 +2,14 @@ {{- if .Site.Params.valine.enable -}} -
+
{{- end -}} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/detail-banner.html b/themes/hugo-blog-jeffprod/layouts/partials/detail-banner.html new file mode 100644 index 0000000000000000000000000000000000000000..d09be2adc62597db1034493a5d026a6742394069 --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/detail-banner.html @@ -0,0 +1,33 @@ +{{ if eq .Type "page" }} +
+ {{ partial "prepare.html" . }} +
+{{ else if .Title }} +
+
+
+

+ + {{ if eq .Type "tags" }} + #{{ .Title }} + {{ else if eq .Type "archives" }} + Archive {{ .Title }} + {{ else if eq .Type "guidance" }} + Post a blog + {{ else }} + {{ .Title }} + {{ end }} +

+ {{ if eq .Type "post" }} +
+ {{ .Params.author }} + {{ partial "svgs/ico_date_white.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read_white.svg" }} + {{ .Params.times }} +
+ {{ end }} +
+
+
+{{ end }} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/footer.html b/themes/hugo-blog-jeffprod/layouts/partials/footer.html index b9e1f571b379eab31562cb88ccc8429a0f0ab9f5..bf1ad64a4b7df6ba63c2625b05b4b6ed109f8e77 100644 --- a/themes/hugo-blog-jeffprod/layouts/partials/footer.html +++ b/themes/hugo-blog-jeffprod/layouts/partials/footer.html @@ -4,12 +4,26 @@ {{ end }} {{ end }} + diff --git a/themes/hugo-blog-jeffprod/layouts/partials/header.html b/themes/hugo-blog-jeffprod/layouts/partials/header.html index 412334eff303e722e93fb0b090eb5b25e9966911..993ef944f784956fe921374ec2843d40d19132e0 100644 --- a/themes/hugo-blog-jeffprod/layouts/partials/header.html +++ b/themes/hugo-blog-jeffprod/layouts/partials/header.html @@ -8,7 +8,8 @@ - + + {{ if .RSSLink }} @@ -20,3 +21,4 @@ + {{ partial "detail-banner.html" . }} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/prepare.html b/themes/hugo-blog-jeffprod/layouts/partials/prepare.html new file mode 100644 index 0000000000000000000000000000000000000000..64f73f72d0ac26c549665d51fb515ad9f6bb1600 --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/prepare.html @@ -0,0 +1,11 @@ +
+
+
+

{{ i18n "blog_prepare" }}

+ {{ range where $.Page.Site.Pages "Type" "prepare" }} + {{ .Content }} + {{ end }} + {{ i18n "blog_guidance" }} +
+
+
\ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_date.svg b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_date.svg new file mode 100644 index 0000000000000000000000000000000000000000..a43938afe21e28952f5537339d6f6b83c30d98f1 --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_date.svg @@ -0,0 +1,15 @@ + + + + 时间 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_date_white.svg b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_date_white.svg new file mode 100644 index 0000000000000000000000000000000000000000..bce5c016a8641671256888b4d8ed3950b125c8ea --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_date_white.svg @@ -0,0 +1,15 @@ + + + + 时间 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_head.svg b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_head.svg new file mode 100644 index 0000000000000000000000000000000000000000..cc5f1b262174ab4d5ef397e6079497ac2a2510e6 --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_head.svg @@ -0,0 +1,15 @@ + + + + 头像 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_read.svg b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_read.svg new file mode 100644 index 0000000000000000000000000000000000000000..13937510503865b89a22825758d250eae5dc4a4c --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_read.svg @@ -0,0 +1,15 @@ + + + + ico_阅读量 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_read_white.svg b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_read_white.svg new file mode 100644 index 0000000000000000000000000000000000000000..b827a342c871c9e02bc3cede8848710b30534c75 --- /dev/null +++ b/themes/hugo-blog-jeffprod/layouts/partials/svgs/ico_read_white.svg @@ -0,0 +1,15 @@ + + + + ico_阅读量 + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/partials/widget-archives.html b/themes/hugo-blog-jeffprod/layouts/partials/widget-archives.html index 58c67fdbcb238bbd3f7489ee3165a490830078d0..98e7a0fbd2762199d3f22219d43fa05d1d824b32 100644 --- a/themes/hugo-blog-jeffprod/layouts/partials/widget-archives.html +++ b/themes/hugo-blog-jeffprod/layouts/partials/widget-archives.html @@ -2,7 +2,7 @@

Archives

{{ range (where .Site.RegularPages "Section" "post").GroupByDate "2006-01" }} - {{ .Key }} ({{ len .Pages }})
+

{{ .Key }} ({{ len .Pages }})

{{ end }}
diff --git a/themes/hugo-blog-jeffprod/layouts/partials/widget-recent.html b/themes/hugo-blog-jeffprod/layouts/partials/widget-recent.html index 92428dd8d20539f1115beb153db50876e119c058..d54de3664ced8e5fd7aff87b1dda06f3264e3456 100644 --- a/themes/hugo-blog-jeffprod/layouts/partials/widget-recent.html +++ b/themes/hugo-blog-jeffprod/layouts/partials/widget-recent.html @@ -2,8 +2,13 @@

Recent posts

{{ range first 5 (where .Site.RegularPages "Section" "post").ByPublishDate.Reverse }} -

{{ .Title }}

- +

{{ .Title }}

+
+ {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
{{ end }}
diff --git a/themes/hugo-blog-jeffprod/layouts/post/list.html b/themes/hugo-blog-jeffprod/layouts/post/list.html index 5bf38e4cc140a8d5562f5da7cd0ef9fb0f852458..f3254af9a9f762877a2f9fb8d7d6390d69c23868 100644 --- a/themes/hugo-blog-jeffprod/layouts/post/list.html +++ b/themes/hugo-blog-jeffprod/layouts/post/list.html @@ -1,35 +1,42 @@ {{ define "main" }} {{ $archive := lower .Title }} -
-
-
-
-{{ range $key, $value := .Site.Taxonomies.archives }}{{ if eq $key $archive }}{{ range $value.Pages }} -
-
-
-

{{ .LinkTitle }}

-

- Author: {{ .Params.author }} · Published at {{ .Date.Format "January 2, 2006" }} · -  {{.ReadingTime}} min read -

-

{{ .Params.summary }}...

-
+
+
+
+
+
+
+ {{ range $key, $value := .Site.Taxonomies.archives }}{{ if eq $key $archive }}{{ range $value.Pages }} +
+
+ +
+ +
+

{{ .LinkTitle }}

+
+ {{ .Params.author }} + {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
+

{{ .Params.summary }}...

+
+
+ {{ end }}{{ end }}{{ end }}
-
-
-{{ end }}{{ end }}{{ end }} +
+
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-related.html" . }}
+ {{ partial "widget-archives.html" . }}
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-related.html" . }}
- {{ partial "widget-archives.html" . }} -
- {{ end }} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/tags/list.html b/themes/hugo-blog-jeffprod/layouts/tags/list.html index 63a7405388d7d9e3274ac220a1e10c2ef126217f..505d95481021cf3e41554572abf3b9a42741be4e 100644 --- a/themes/hugo-blog-jeffprod/layouts/tags/list.html +++ b/themes/hugo-blog-jeffprod/layouts/tags/list.html @@ -1,34 +1,41 @@ {{ define "main" }} {{ $tag := lower .Title }} +
+
+
+
+
+
+ {{ range $key, $value := .Site.Taxonomies.tags }}{{ if eq $key $tag }}{{ range $value.Pages }} +
+
+ +
-
-
-
-
-{{ range $key, $value := .Site.Taxonomies.tags }}{{ if eq $key $tag }}{{ range $value.Pages }} -
-
-
-

{{ .LinkTitle }}

-

- Author: {{ .Params.author }} · Published at {{ .Date.Format "January 2, 2006" }} · -  {{.ReadingTime}} min read -

-

{{ .Params.summary }}...

-
+
+

{{ .LinkTitle }}

+
+ {{ .Params.author }} + {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
+

{{ .Params.summary }}...

+
+
+ {{ end }}{{ end }}{{ end }}
-
-
-{{ end }}{{ end }}{{ end }} +
+
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-archives.html" . }}
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-archives.html" . }} -
{{ end }} diff --git a/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html b/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html index 5ef720a8dd671bff0e33950b52da0f2740d6eb1f..d90a6cff2f7824fb46bc931c1aa2d21691c9fefe 100644 --- a/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html +++ b/themes/hugo-blog-jeffprod/layouts/taxonomy/archive.html @@ -1,34 +1,41 @@ {{ define "main" }} {{ $archive := lower .Title }} -
-
-
-
-{{ range $key, $value := .Site.Taxonomies.archives }}{{ if eq $key $archive }}{{ range $value.Pages }} -
-
-
-

{{ .LinkTitle }}

-

- Author: {{ .Params.author }} · Published at {{ .Date.Format "January 2, 2006" }} · -  {{.ReadingTime}} min read -

-

{{ .Params.summary }}...

-
+
+
+
+
+
+
+ {{ range $key, $value := .Site.Taxonomies.archives }}{{ if eq $key $archive }}{{ range $value.Pages }} +
+
+ +
+ +
+

{{ .LinkTitle }}

+
+ {{ .Params.author }} + {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
+

{{ .Params.summary }}...

+
+
+ {{ end }}{{ end }}{{ end }}
-
-
-{{ end }}{{ end }}{{ end }} +
+
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-archives.html" . }}
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-archives.html" . }} -
- {{ end }} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html b/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html index 63a7405388d7d9e3274ac220a1e10c2ef126217f..58308c545cacf6821c1823f52fab76ae368c4fa8 100644 --- a/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html +++ b/themes/hugo-blog-jeffprod/layouts/taxonomy/tag.html @@ -2,33 +2,41 @@ {{ $tag := lower .Title }} -
-
-
-
-{{ range $key, $value := .Site.Taxonomies.tags }}{{ if eq $key $tag }}{{ range $value.Pages }} -
-
-
-

{{ .LinkTitle }}

-

- Author: {{ .Params.author }} · Published at {{ .Date.Format "January 2, 2006" }} · -  {{.ReadingTime}} min read -

-

{{ .Params.summary }}...

-
+
+
+
+
+
+
+ {{ range $key, $value := .Site.Taxonomies.tags }}{{ if eq $key $tag }}{{ range $value.Pages }} +
+
+ +
+ +
+

{{ .LinkTitle }}

+
+ {{ .Params.author }} + {{ partial "svgs/ico_date.svg" }} + {{ .Date.Format "2006-01-02" }} + {{ partial "svgs/ico_read.svg" }} + {{ .Params.times }} +
+

{{ .Params.summary }}...

+
+
+ {{ end }}{{ end }}{{ end }}
-
-
-{{ end }}{{ end }}{{ end }} +
+
+
+ {{ partial "widget-tags.html" . }}
+ {{ partial "widget-recent.html" . }}
+ {{ partial "widget-archives.html" . }}
-
- {{ partial "widget-tags.html" . }}
- {{ partial "widget-recent.html" . }}
- {{ partial "widget-archives.html" . }} -
{{ end }} diff --git a/themes/hugo-blog-jeffprod/static/css/blog.css b/themes/hugo-blog-jeffprod/static/css/blog.css index 1f41d534404a00f5604a14d5a9fda9166f4f3b43..78f92e5a2111eb52c7206d1eff006af13edff7b7 100644 --- a/themes/hugo-blog-jeffprod/static/css/blog.css +++ b/themes/hugo-blog-jeffprod/static/css/blog.css @@ -1,6 +1,7 @@ html,body { - font-family: 'Open Sans', sans-serif; - background: #F0F2F4; + /* font-family: FZLTHJW-GB1-0; */ + background: #ffffff; + font-size: 14px; } .hero-body { background-position: center; @@ -9,3 +10,264 @@ html,body { } .mysocial { color: hsl(0, 0%, 100%);} .mysocial:hover { color: hsl(0, 0%, 71%) } +.blog_bg { + width: 100%; + height: 612px; + background: url(../img/banner01.png); + background-size: 100% 100%; +} +.container { + max-width: 1140px; + width: 1140px; + margin: 0 auto 1rem; +} +.container .columns { + margin: 0; + display: flex; + justify-content: space-between; +} +.is-9 { + width: 70%; +} +.is-3 { + width: 25%; + margin-top: 0.75rem; +} +.prepare { + height: 100%; + display: flex; + flex-direction: column; + justify-content: center; +} +.prepare_warp { + width: 60%; + background-color: rgba(255, 255, 255, 0.85) +} +.prepare_content { + padding: 20px 50px; +} +.prepare_content>h2 { + font-size: 40px; + color: #080808; + display: inline-block; + font-weight: 500; +} +.prepare_content>h2::after { + content: ''; + display: block; + width: 100%; + height: 7px; + background: #467FBF; +} +.prepare_content>ul { + margin: 20px 0; +} +.prepare_content>ul li { + font-size: 18px; + line-height: 27px; + color: #080808; +} +.prepare_content>ul li a { + color: #467FBF; + text-decoration: none; +} +.btn { + text-decoration: none; + padding: 6px 30px; + background: #467FBF; + color: #ffffff; + outline: none; + border: none; + border-radius: 2px; +} +/* ------------------------blog 主页------------------------- */ +.article { + display: flex; + justify-content: space-between; + height: 160px; + margin-top: 0.75rem; +} +.article_left { + width: 25%; + height: 100%; +} +.article_right { + width: 70%; + height: 100%; +} +.article_left img { + width: 100%; + height: 100%; +} +.article_right h3 { + font-size: 0.44rem; + margin: 0; +} +.article_right a { + text-decoration: none; +} +.article_right>div { + margin: 0.2rem 0 0.3rem 0; +} +.article_right>div span { + font-size: 16px; +} +.article_right>div svg, +.article_right>div span { + color: #666666; +} +.article_right>div svg { + transform: translateY(2px); +} +.article_right_author { + margin-right: 0.6rem; +} +.article_right_date { + margin-right: 0.4rem; +} +.article_right>a>p { + font-size: 16px; + color: #666666; +} + +/* --------------tags--------------- */ +.title.is-5 { + font-size: 0.32rem; + color: #080808; +} +.tags .tag { + margin-right: .1rem; + margin-bottom: 0.3rem; + display: inline-block; +} +.tags .tag a { + text-decoration: none; + padding: 5px 16px; + background: #efefef; +} +.card-content { + padding: 0; +} +.block:not(:last-child), .box:not(:last-child), .breadcrumb:not(:last-child), .content:not(:last-child), .highlight:not(:last-child), .level:not(:last-child), .message:not(:last-child), .notification:not(:last-child), .progress:not(:last-child), .subtitle:not(:last-child), .table-container:not(:last-child), .table:not(:last-child), .tabs:not(:last-child), .title:not(:last-child) { + margin-bottom: 0.2rem; +} +.card { + box-shadow: none; +} +.tag>a, +.card-content>a { + color: #666666; +} +.card-content>div svg { + transform: translateY(2px); +} +.card-content>div { + margin-bottom: 0.2rem; +} +.card-content>p { + margin-bottom: 0.1rem; +} +.card-content>p>a { + font-size: 14px; + color: #080808; + text-decoration: none; +} +/* ---------------------pagination----------------------- */ +.pagination { + font-size: 0.32rem; + position: relative; + margin-top: 0.4rem; +} +.pagination, .pagination-list { + align-items: center; + display: flex; + justify-content: center; + text-align: center; +} +.pagination-link, .pagination-next, .pagination-previous { + text-decoration: none; + border: 1px solid #dbdbdb; + color: #363636; + display: inline-block; + padding: 5px 10px; +} +.pagination-link { + border-radius: 50%; +} +.pagination-next, .pagination-previous { + border-radius: 290486px; +} +.pagination-next { + position: absolute; + right: 0; +} +.pagination-previous { + position: absolute; + left: 0; +} +.pagination__item { + margin-right: 0.1rem; +} +.is-current { + background: #467FBF; + color: #ffffff; +} +.pagination-link:hover, .pagination-next:hover, .pagination-previous:hover { + border-color: #b5b5b5; +} +/* -------------------------blog detail--------------------------- */ +.hero-warp { + width: 100%; + height: 170px; + background: url("/img/banner02.png"); +} +.has-text-centered { + height: 100%; + color: #ffffff; + max-width: 1140px; + width: 1140px; + margin: 0 auto; + display: flex; + flex-direction: column; + justify-content: center; +} +.has-text-centered>div svg { + transform: translateY(2px); +} +.is-9 .tile,.guidance { + margin-top: 0.75rem; +} +.post_detail { + font-size: 16px; +} +.tile h3,.tile p,.tile ul,.guidance h2 { + color: #080808; +} +.tile p,.tile ul { + margin-bottom: 0.4rem; + line-height: 0.52rem; +} +.post-comment { + margin-top: 0.6rem; +} + +/* -------------------------guidance------------------------ */ +.guidance pre { + -webkit-overflow-scrolling: touch; + overflow-x: auto; + padding: 1.25em 1.5em; + white-space: pre; + word-wrap: normal; + background-color: #f5f5f5; + color: #4a4a4a; + font-size: .875em; + margin: 0.4rem 0; +} +.guidance h2 { + margin-bottom: 0.4rem; + font-size: 0.44rem; +} +.guidance p,.guidance ol { + line-height: 0.32rem; + margin-bottom: 0.2rem; +} \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/static/css/commen.css b/themes/hugo-blog-jeffprod/static/css/commen.css new file mode 100644 index 0000000000000000000000000000000000000000..d668282a3b7b7d174712ce31550a901f011437c8 --- /dev/null +++ b/themes/hugo-blog-jeffprod/static/css/commen.css @@ -0,0 +1,76 @@ +html { + overflow-x:auto; + overflow-y:scroll; + } + body, dl, dt, dd, ul, ol, li, pre, form, fieldset, input, p, blockquote, th, td { + font-weight:400; + margin:0; + padding:0; + } + h1, h2, h3, h4, h4, h5 { + margin:0; + padding:0; + } + body { + background-color:#FFFFFF; + color:#666666; + font-family:Helvetica,Arial,sans-serif; + font-size:14px; + padding:0; + text-align:left; + } + select { + font-size:12px; + } + table { + border-collapse:collapse; + } + fieldset, img { + border:0 none; + } + fieldset { + margin:0; + padding:0; + } + fieldset p { + margin:0; + padding:0 0 0 8px; + } + legend { + display:none; + } + address, caption, em, strong, th, i { + font-style:normal; + font-weight:700; + } + table caption { + margin-left:-1px; + } + hr { + border-bottom:1px solid #FFFFFF; + border-top:1px solid #E4E4E4; + border-width:1px 0; + clear:both; + height:2px; + margin:5px 0; + overflow:hidden; + } + ol, ul { + list-style-image:none; + list-style-position:outside; + list-style-type:none; + } + caption, th { + text-align:left; + } + q:before, q:after, blockquote:before, blockquote:after { + content:””; + } + li { + list-style: none; + } + table td + { + word-break: keep-all; + white-space:nowrap; + } \ No newline at end of file diff --git a/themes/hugo-blog-jeffprod/static/css/custom.css b/themes/hugo-blog-jeffprod/static/css/custom.css index 21a23d88bcd812bf1bce55cabc7a94b821e81300..cfba78b1bfb7324f372dd4a8a9f442102ad54d33 100644 --- a/themes/hugo-blog-jeffprod/static/css/custom.css +++ b/themes/hugo-blog-jeffprod/static/css/custom.css @@ -33,9 +33,10 @@ div#comments.comments.v{ } .v .vwrap{ - border: 2px solid black !important; + border: 1px solid #dfdfdf !important; overflow: visible !important; counter-reset: avater; + background: #efefef; } .v .vwrap .vedit .vemojis{ diff --git a/themes/hugo-blog-jeffprod/static/img/banner01.png b/themes/hugo-blog-jeffprod/static/img/banner01.png new file mode 100644 index 0000000000000000000000000000000000000000..b28734b64a00c1abb1ba05c72f7a65dead5e53b1 Binary files /dev/null and b/themes/hugo-blog-jeffprod/static/img/banner01.png differ diff --git a/themes/hugo-blog-jeffprod/static/img/banner02.png b/themes/hugo-blog-jeffprod/static/img/banner02.png new file mode 100644 index 0000000000000000000000000000000000000000..46f6e0c5512360b1e624411a3812cd6e4aebe561 Binary files /dev/null and b/themes/hugo-blog-jeffprod/static/img/banner02.png differ diff --git a/themes/hugo-blog-jeffprod/static/img/blog_01.png b/themes/hugo-blog-jeffprod/static/img/blog_01.png new file mode 100644 index 0000000000000000000000000000000000000000..9fa6e09051ca59acff7a86ffa78cf599b0c4f00e Binary files /dev/null and b/themes/hugo-blog-jeffprod/static/img/blog_01.png differ diff --git a/themes/hugo-blog-jeffprod/static/js/flexible.js b/themes/hugo-blog-jeffprod/static/js/flexible.js new file mode 100644 index 0000000000000000000000000000000000000000..895635b48c1e9b5d25d0dbe166e7f1bf9fccb9c1 --- /dev/null +++ b/themes/hugo-blog-jeffprod/static/js/flexible.js @@ -0,0 +1,38 @@ +/** + * 可伸缩布局方案 + * rem计算方式:设计图尺寸px / 100 = 实际rem 例: 100px = 1rem + */ +!function (window) { + + /* 设计图文档宽度 */ + var docWidth = 750; + + var doc = window.document, + docEl = doc.documentElement, + resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'; + + var recalc = (function refreshRem () { + var clientWidth = docEl.getBoundingClientRect().width; + + /* 8.55:小于320px不再缩小,11.2:大于420px不再放大 */ + docEl.style.fontSize = Math.max(Math.min(20 * (clientWidth / docWidth), 11.2), 8.55) * 5 + 'px'; + + return refreshRem; + })(); + + /* 添加倍屏标识,安卓为1 */ + docEl.setAttribute('data-dpr', window.navigator.appVersion.match(/iphone/gi) ? window.devicePixelRatio : 1); + + if (/iP(hone|od|ad)/.test(window.navigator.userAgent)) { + /* 添加IOS标识 */ + doc.documentElement.classList.add('ios'); + /* IOS8以上给html添加hairline样式,以便特殊处理 */ + if (parseInt(window.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1], 10) >= 8) + doc.documentElement.classList.add('hairline'); + } + + if (!doc.addEventListener) return; + window.addEventListener(resizeEvt, recalc, false); + doc.addEventListener('DOMContentLoaded', recalc, false); + +}(window); \ No newline at end of file