diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f1f9d75 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-swift-theme"] + path = themes/hugo-swift-theme + url = https://github.com/onweru/hugo-swift-theme.git diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..aaaf24c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,36 @@ +language: go + +go: + - "1.14" # 指定Golang 1.14 + +# Specify which branches to build using a safelist +# 分支白名单限制: 只有hugo分支的提交才会触发构建 +branches: + only: + - website + +install: +# 安装最新的hugo + # - go get github.com/spf13/hugo +install: + - uname -a + - wget https://github.com/gohugoio/hugo/releases/download/v0.67.1/hugo_0.67.1_Linux-64bit.deb + - sudo dpkg -i hugo*.deb + - hugo version + - ls + - pwd + +script: +# 运行hugo命令 + - hugo + +deploy: + provider: pages # 重要,指定这是一份github pages的部署配置 + skip-cleanup: true # 重要,不能省略 + local-dir: public # 静态站点文件所在目录 + target-branch: master # 要将静态站点文件发布到哪个分支 + github-token: $GITHUB_TOKEN # 重要,$GITHUB_TOKEN是变量,需要在GitHub上申请、再到配置到Travis + fqdn: www.yazen.xyz # 如果是自定义域名,此处要填 + keep-history: true # 是否保持target-branch分支的提交记录 + on: + branch: website # 博客源码的分支 \ No newline at end of file diff --git a/archetypes/products.md b/archetypes/products.md new file mode 100644 index 0000000..afd2d90 --- /dev/null +++ b/archetypes/products.md @@ -0,0 +1,14 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +best: false #上首页使用 +tags: [] +description: +photos: [] +bullets: [] +amazon_url: +price: 0.00 +draft: true +--- + + diff --git a/assets/js/index.js b/assets/js/index.js new file mode 100644 index 0000000..9d149d2 --- /dev/null +++ b/assets/js/index.js @@ -0,0 +1,12 @@ +$(function () { + var lang = navigator.language || navigator.userLanguage;//常规浏览器语言和IE浏览器 + lang = lang.substr(0, 2); + //语言自动切换 + if ($('[hreflang=' + lang + ']').length > 0) { + window.location.href = '/' + lang; + } + setTimeout(() => { + $('main.d-none').removeClass('d-none'); + $('div.spinner-container').remove(); + }, 1000); +}) \ No newline at end of file diff --git a/assets/sass/_base.sass b/assets/sass/_base.sass new file mode 100644 index 0000000..2f00e2c --- /dev/null +++ b/assets/sass/_base.sass @@ -0,0 +1,115 @@ +* + box-sizing: border-box + -webkit-appearance: none + margin: 0 + padding: 0 + +body, html + scroll-behavior: smooth + +body + font-family: var(--font) + background-color: var(--bg) + color: var(--text) + font-size: 14px + line-height: 1.5 + max-width: 1440px + margin: 0 auto + position: relative + font-kerning: normal + display: flex + flex-direction: column + justify-content: space-between + min-height: 100vh + -webkit-font-smoothing: antialiased + -moz-osx-font-smoothing: grayscale + +a + text-decoration: none + color: inherit + +blockquote + opacity: 0.8 + padding: 1rem + position: relative + quotes: '\201C''\201D''\2018''\2019' + margin: 0.75rem 0 + display: flex + flex-flow: row wrap + background-repeat: no-repeat + background-size: 5rem + background-position: 50% 50% + position: relative + &::before + content: "" + padding: 1px + position: absolute + top: 0 + bottom: 0 + left: 0 + background: var(--theme) + + p + padding-left: 0.5rem 0 !important + font-size: 1.1rem !important + width: 100% + font-weight: 300 + font-style: italic + +h1,h2,h3,h4,h5 + font-family: inherit + font-weight: 500 + padding: 5px 0 + margin: 15px 0 + color: inherit + line-height: 1.35 + +h1 + font-size: 200% +h2 + font-size: 175% +h3 + font-size: 150% +h4 + font-size: 125% +h5 + font-size: 120% +h6 + font-size: 100% + +img, svg, video + max-width: 100% + vertical-align: middle +img + height: auto + margin: 1rem auto + padding: 0 + +main + padding-bottom: 45px + flex: 1 + +ul + list-style: none + -webkit-padding-start: 0 + -moz-padding-start: 0 + +b, strong, em + font-weight: 500 + +hr + border: none + padding: 0.5px + background: var(--text) + opacity: 0.5 + margin: 1rem 0 + +aside + margin-top: 4rem + h3 + position: relative + margin: 0 !important + +span + &.pager_link + opacity: 0.5 diff --git a/assets/sass/_footer.sass b/assets/sass/_footer.sass new file mode 100644 index 0000000..3001ece --- /dev/null +++ b/assets/sass/_footer.sass @@ -0,0 +1,17 @@ +footer.container-fluid + background: #f0f0f0; + h3 + font-size: 18px; + margin-top: 0; + input,textarea,button + border-radius: 0; + + button + background: #ff4a26; + border: none; + width: 100%; + color: #fff; + .link + margin-bottom: 0.5rem; + p + color: #696969; \ No newline at end of file diff --git a/assets/sass/_home.sass b/assets/sass/_home.sass new file mode 100644 index 0000000..7ed941e --- /dev/null +++ b/assets/sass/_home.sass @@ -0,0 +1,84 @@ +.banner + background: url(/images/banner.jpg) repeat center + height: 580px + .takeoff + background: #fff + opacity: 0.7 +.section-title + font-size: 200% + +.section-header + h2 + font-size: 200% + position: relative + &:before + position: absolute + content: '' + width: 8% + height: 2px + background: #2cbcd6 + bottom: 0 + left: 46% + right: 46% + p + color: #696969 + +.service + img + height: 60px + h5 + font-size: 16px + p + font-size: 12px + color: #696969 + +.spinner-container + position: absolute + height: 100% + width: 100% + background: #fff + z-index: 9999 + .spinner + margin: 0 auto + width: 50px + height: 60px + text-align: center + font-size: 10px + + &>div + background-color: #67CF22 + height: 100% + width: 6px + display: inline-block + -webkit-animation: stretchdelay 1.2s infinite ease-in-out + animation: stretchdelay 1.2s infinite ease-in-out + + & .rect2 + -webkit-animation-delay: -1.1s + animation-delay: -1.1s + + & .rect3 + -webkit-animation-delay: -1.0s + animation-delay: -1.0s + + & .rect4 + -webkit-animation-delay: -0.9s + animation-delay: -0.9s + + & .rect5 + -webkit-animation-delay: -0.8s + animation-delay: -0.8s + +@-webkit-keyframes stretchdelay +0%, 40%, 100% + -webkit-transform: scaleY(0.4) +20% + -webkit-transform: scaleY(1.0) + +@keyframes stretchdelay + 0%, 40%, 100% + transform: scaleY(0.4) + -webkit-transform: scaleY(0.4) + 20% + transform: scaleY(1.0) + -webkit-transform: scaleY(1.0) diff --git a/assets/sass/_nav.sass b/assets/sass/_nav.sass new file mode 100644 index 0000000..92b2d54 --- /dev/null +++ b/assets/sass/_nav.sass @@ -0,0 +1,7 @@ +.site-nav + background-color: #fff; + height: 88px; + .nav-link + color: #000 + .navbar-brand img + height: 40px; \ No newline at end of file diff --git a/assets/sass/_product.sass b/assets/sass/_product.sass new file mode 100644 index 0000000..c5882e1 --- /dev/null +++ b/assets/sass/_product.sass @@ -0,0 +1,11 @@ + +.product-item + .card-title + font-size: 14px + .card-text + font-size: 12px + color: #696969 +#infomation-cart + .cart-button + img + height: 80px; \ No newline at end of file diff --git a/assets/sass/_variables.sass b/assets/sass/_variables.sass new file mode 100644 index 0000000..e69de29 diff --git a/assets/sass/main.sass b/assets/sass/main.sass new file mode 100644 index 0000000..8944ef5 --- /dev/null +++ b/assets/sass/main.sass @@ -0,0 +1,8 @@ +@import 'base' +@import 'variables' +@import 'nav' +@import 'home' +@import 'product' +@import 'footer' + + \ No newline at end of file diff --git a/config.toml b/config.toml index e4b7418..ca99137 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,46 @@ -baseURL = "http://example.org/" -languageCode = "en-us" -title = "My New Hugo Site" +baseURL = "http://www.yazen.xyz" +title = "YAZEN" +description = "YAZEN" +DefaultContentLanguage = "en" +copyright = "YAZEN" + +[params] + ga_analytics='UA-142977531-1' + +[menu] + [[menu.main]] + identifier = "home" + name = "Home" + url = "/" + weight = 1 + [[menu.main]] + identifier = "products" + name = "Products" + url = "/products" + weight = 2 + [[menu.main]] + identifier = "blog" + name = "Blog" + url = "/posts" + weight = 3 + +[languages] + [languages.en] + languageName = "English" + weight = 1 + + [languages.ja] + languageName = "Japanese" + weight = 2 + [[languages.ja.menu.main]] + url = "/" + name = "Home" + weight = 1 + [[languages.ja.menu.main]] + url = "/ja/products" + name = "Products" + weight = 2 + [[languages.ja.menu.main]] + url = "/ja/blog" + name = "Blog" + weight = 3 \ No newline at end of file diff --git a/content/products/BATHMAT-01-DG40.ja.md b/content/products/BATHMAT-01-DG40.ja.md new file mode 100644 index 0000000..854fce6 --- /dev/null +++ b/content/products/BATHMAT-01-DG40.ja.md @@ -0,0 +1,16 @@ +--- +title: "BATHMAT 01 DG40" +date: 2020-03-23T22:51:54+08:00 +best: true #上首页使用 +tags: [] +photos: ["https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/dcsbhW.jpg"] +description: 【2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超強い吸水 消臭 抗菌 安全 約60cm×39cm×0.9cm +price: 0.00 +draft: true +--- + + + + +## 老板 +你是我最崇拜的人。欢迎资源 \ No newline at end of file diff --git a/content/products/BATHMAT-01-G40.ja.md b/content/products/BATHMAT-01-G40.ja.md new file mode 100644 index 0000000..a45faf6 --- /dev/null +++ b/content/products/BATHMAT-01-G40.ja.md @@ -0,0 +1,18 @@ +--- +title: "BATHMAT 01 G40" +date: 2020-03-23T22:51:50+08:00 +best: true #上首页使用 +tags: [] +photos: ["https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/2rrvKJ.jpg","https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/2rrvKJ.jpg"] +bullets: [ + "2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超", + "2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超", + "2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超", + "2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超", + "2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超"] +description: 【2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超強い吸水 消臭 抗菌 安全 約60cm×39cm×0.9cm +price: 0.00 +draft: true +--- + + diff --git a/content/products/BATHMAT-01-W40.ja.md b/content/products/BATHMAT-01-W40.ja.md new file mode 100644 index 0000000..7a479f4 --- /dev/null +++ b/content/products/BATHMAT-01-W40.ja.md @@ -0,0 +1,12 @@ +--- +title: "BATHMAT 01 W40" +date: 2020-03-23T22:33:52+08:00 +best: true #上首页使用 +tags: [] +photos: ["https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/b24uR7.jpg","https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/b24uR7.jpg"] +description: 【2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超強い吸水 消臭 抗菌 安全 約60cm×39cm×0.9cm +price: 0.00 +draft: true +--- + + diff --git a/content/products/BATHMAT-01-W60.ja.md b/content/products/BATHMAT-01-W60.ja.md new file mode 100644 index 0000000..7a479f4 --- /dev/null +++ b/content/products/BATHMAT-01-W60.ja.md @@ -0,0 +1,12 @@ +--- +title: "BATHMAT 01 W40" +date: 2020-03-23T22:33:52+08:00 +best: true #上首页使用 +tags: [] +photos: ["https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/b24uR7.jpg","https://yazenstore.oss-cn-shenzhen.aliyuncs.com/uPic/b24uR7.jpg"] +description: 【2020新型 珪藻土バスマット 速乾 お風呂マット】YAZEN 折り畳み式 足ふきマット 超強い吸水 消臭 抗菌 安全 約60cm×39cm×0.9cm +price: 0.00 +draft: true +--- + + diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..e69de29 diff --git a/i18n/ja.yaml b/i18n/ja.yaml new file mode 100644 index 0000000..e69de29 diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..2219f77 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,22 @@ + + +{{- partial "head" . }} + +
+{{ . }}
+ {{ end }} + +The best Online sales to shop these weekend
+We will serve you with a smile
+Goods shipped with efficient Amazon Fulfillment.
+Provide you with high quality and cheap products.
+Order and pay on Amazon, buy with confidence.
+Cras sit amet nibh libero, in gravida nulla.
+The best Online sales to shop these weekend
+We will serve you with a smile
+Goods shipped with efficient Amazon Fulfillment.
+Provide you with high quality and cheap products.
+Order and pay on Amazon, buy with confidence.
+Cras sit amet nibh libero, in gravida nulla.
+{{ . }}
+ {{ end }} + +