Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website #1

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/hugo-swift-theme"]
path = themes/hugo-swift-theme
url = https://github.com/onweru/hugo-swift-theme.git
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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 # 博客源码的分支
14 changes: 14 additions & 0 deletions archetypes/products.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
best: false #上首页使用
tags: []
description:
photos: []
bullets: []
amazon_url:
price: 0.00
draft: true
---


12 changes: 12 additions & 0 deletions assets/js/index.js
Original file line number Diff line number Diff line change
@@ -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);
})
115 changes: 115 additions & 0 deletions assets/sass/_base.sass
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions assets/sass/_footer.sass
Original file line number Diff line number Diff line change
@@ -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;
84 changes: 84 additions & 0 deletions assets/sass/_home.sass
Original file line number Diff line number Diff line change
@@ -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)
7 changes: 7 additions & 0 deletions assets/sass/_nav.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.site-nav
background-color: #fff;
height: 88px;
.nav-link
color: #000
.navbar-brand img
height: 40px;
11 changes: 11 additions & 0 deletions assets/sass/_product.sass
Original file line number Diff line number Diff line change
@@ -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;
Empty file added assets/sass/_variables.sass
Empty file.
8 changes: 8 additions & 0 deletions assets/sass/main.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import 'base'
@import 'variables'
@import 'nav'
@import 'home'
@import 'product'
@import 'footer'


49 changes: 46 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions content/products/BATHMAT-01-DG40.ja.md
Original file line number Diff line number Diff line change
@@ -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
---




## 老板
你是我最崇拜的人。欢迎资源
Loading