Skip to content

Commit 1f14a9a

Browse files
committed
2024-8-26
0 parents  commit 1f14a9a

File tree

458 files changed

+20304
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+20304
-0
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Build job
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v5
33+
- name: Build with Jekyll
34+
uses: actions/jekyll-build-pages@v1
35+
with:
36+
source: ./
37+
destination: ./_site
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v3
40+
41+
# Deployment job
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

.github/workflows/main.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
2+
name: Deploy Hugo site to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["main"]
8+
9+
10+
11+
# Environment variables available to all jobs and steps in this workflow
12+
env:
13+
HUGO_ENV: production
14+
HUGO_VERSION: "0.124.1"
15+
GO_VERSION: "1.22.2"
16+
NODE_VERSION: "20.0.0"
17+
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
18+
TINA_TOKEN: ${{ vars.TINA_TOKEN }}
19+
20+
jobs:
21+
# Build job
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Set up Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: ${{ env.NODE_VERSION }}
30+
31+
- name: Install Hugo
32+
run: |
33+
curl -LO "https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz"
34+
tar -xvf hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
35+
sudo mv hugo /usr/local/bin/
36+
rm hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz
37+
hugo version
38+
39+
- name: Install Go
40+
run: |
41+
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz"
42+
sudo tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz
43+
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV
44+
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz
45+
go version
46+
47+
# - name: Setup Project
48+
# run: |
49+
# npm install -g npx --force
50+
# npm install -g postcss-cli
51+
# npm install tailwindcss@latest
52+
53+
- name: Install npm dependencies
54+
run: npm install
55+
56+
# - name: Publish to GitHub Pages
57+
# run: npm run build
58+
59+
# - name: Upload artifact
60+
# uses: actions/upload-pages-artifact@v3
61+
# with:
62+
# path: ./public
63+
64+
# Deployment job
65+
# deploy:
66+
# environment:
67+
# name: github-pages
68+
# runs-on: ubuntu-latest
69+
# needs: build
70+
# steps:
71+
# - name: Deploy to GitHub Pages
72+
# id: deployment
73+
# uses: actions/deploy-pages@v4
74+
75+
- name: Build
76+
run: npm run build
77+
- name: Deploy 🚀
78+
uses: JamesIves/github-pages-deploy-action@v4.4.2
79+
with:
80+
branch: gh-pages
81+
folder: public
82+
clean: true
83+
single-commit: true

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Thumbs.db
2+
.DS_Store
3+
.dist
4+
.tmp
5+
.lock
6+
.sass-cache
7+
npm-debug.log
8+
node_modules
9+
builds
10+
package-lock.json
11+
public
12+
resources
13+
.hugo_build.lock
14+
jsconfig.json
15+
hugo_stats.json
16+
go.sum
17+
yarn.lock
18+
themes/

assets/images/avatar-sm.png

3.91 KB
Loading

assets/images/avatar.png

2.22 KB
Loading

assets/images/banner.png

65.6 KB
Loading

assets/images/call-to-action.png

19.3 KB
Loading

assets/images/favicon.png

12.4 KB
Loading

assets/images/gallery/01.jpg

74.4 KB
Loading

assets/images/gallery/02.jpg

697 KB
Loading

assets/images/gallery/03.jpg

253 KB
Loading

assets/images/gallery/04.jpg

58.5 KB
Loading

assets/images/gallery/05.jpg

210 KB
Loading

assets/images/gallery/06.jpg

74.4 KB
Loading

assets/images/image-placeholder.png

4.77 KB
Loading

assets/images/logo-darkmode.png

3.02 KB
Loading

assets/images/logo.png

3.56 KB
Loading

assets/images/no-search-found.png

8.07 KB
Loading

assets/images/og-image.png

65.6 KB
Loading

assets/images/service-1.png

11.2 KB
Loading

assets/images/service-2.png

19.1 KB
Loading

assets/images/service-3.png

16.1 KB
Loading

assets/scss/custom.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Add your own custom styles here
2+
3+
4+
.nav-item {
5+
font-size: larger;
6+
}
7+
8+

config/_default/languages.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
################ English language ##################
2+
[en]
3+
languageName = "En"
4+
languageCode = "en-us"
5+
contentDir = "content/english"
6+
weight = 1

config/_default/menus.en.toml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
############# English navigation ##############
2+
3+
# main menu
4+
[[main]]
5+
name = "HOME"
6+
url = "/"
7+
weight = 1
8+
9+
[[main]]
10+
name = "GENOMES"
11+
url = "genomes/"
12+
weight = 2
13+
14+
[[main]]
15+
name = "VARIETIES"
16+
url = "/variety"
17+
weight = 3
18+
19+
[[main]]
20+
weight = 4
21+
name = "RESOURCES"
22+
23+
[[main]]
24+
parent = "RESOURCES"
25+
name = "Online resource"
26+
url = "mzor/"
27+
weight = 1
28+
29+
[[main]]
30+
parent = "RESOURCES"
31+
name = "Maize lab"
32+
url = "Maize-lab/"
33+
weight = 2
34+
35+
36+
37+
[[main]]
38+
weight = 5
39+
name = "NEWS"
40+
41+
[[main]]
42+
parent = "NEWS"
43+
name = "科研人物"
44+
url = "news1/"
45+
weight = 3
46+
47+
[[main]]
48+
parent = "NEWS"
49+
name = "科研动态"
50+
url = "news2/"
51+
weight = 3
52+
53+
[[main]]
54+
parent = "NEWS"
55+
name = "论文推荐"
56+
url = "news3/"
57+
weight = 3
58+
59+
[[main]]
60+
parent = "NEWS"
61+
name = "育种动态"
62+
url = "news4/"
63+
weight = 3
64+
65+
[[main]]
66+
parent = "NEWS"
67+
name = "玉米生产"
68+
url = "news5/"
69+
weight = 3
70+
71+
72+
73+
[[main]]
74+
name = "LITERATURE"
75+
url = "literature/"
76+
weight = 6
77+
78+
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+

config/_default/module.toml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
[hugoVersion]
2+
extended = true
3+
min = "0.124.1"
4+
5+
[[imports]]
6+
path = "github.com/zeon-studio/hugoplate"
7+
8+
[[imports]]
9+
path = "github.com/gethugothemes/hugo-modules/search"
10+
11+
[[imports]]
12+
path = "github.com/gethugothemes/hugo-modules/pwa"
13+
14+
[[imports]]
15+
path = "github.com/gethugothemes/hugo-modules/images"
16+
17+
[[imports]]
18+
path = "github.com/gethugothemes/hugo-modules/videos"
19+
20+
[[imports]]
21+
path = "github.com/gethugothemes/hugo-modules/icons/font-awesome"
22+
23+
# [[imports]]
24+
# path = "github.com/gethugothemes/hugo-modules/icons/themify-icons"
25+
26+
[[imports]]
27+
path = "github.com/gethugothemes/hugo-modules/gzip-caching"
28+
29+
[[imports]]
30+
path = "github.com/gethugothemes/hugo-modules/adsense"
31+
32+
[[imports]]
33+
path = "github.com/gethugothemes/hugo-modules/accordion"
34+
35+
[[imports]]
36+
path = "github.com/gethugothemes/hugo-modules/table-of-contents"
37+
38+
[[imports]]
39+
path = "github.com/gethugothemes/hugo-modules/tab"
40+
41+
[[imports]]
42+
path = "github.com/gethugothemes/hugo-modules/modal"
43+
44+
[[imports]]
45+
path = "github.com/gethugothemes/hugo-modules/gallery-slider"
46+
47+
[[imports]]
48+
path = "github.com/gethugothemes/hugo-modules/components/preloader"
49+
50+
[[imports]]
51+
path = "github.com/gethugothemes/hugo-modules/components/social-share"
52+
53+
[[imports]]
54+
path = "github.com/gethugothemes/hugo-modules/components/cookie-consent"
55+
56+
[[imports]]
57+
path = "github.com/gethugothemes/hugo-modules/components/announcement"
58+
59+
[[imports]]
60+
path = "github.com/gethugothemes/hugo-modules/components/custom-script"
61+
62+
[[imports]]
63+
path = "github.com/gethugothemes/hugo-modules/components/render-link"
64+
65+
# [[imports]]
66+
# path = "github.com/gethugothemes/hugo-modules/components/valine-comment"
67+
68+
# [[imports]]
69+
# path = "github.com/gethugothemes/hugo-modules/components/crisp-chat"
70+
71+
[[imports]]
72+
path = "github.com/gethugothemes/hugo-modules/shortcodes/button"
73+
74+
[[imports]]
75+
path = "github.com/gethugothemes/hugo-modules/shortcodes/notice"
76+
77+
[[imports]]
78+
path = "github.com/gethugothemes/hugo-modules/seo-tools/basic-seo"
79+
80+
[[imports]]
81+
path = "github.com/gethugothemes/hugo-modules/seo-tools/site-verifications"
82+
83+
[[imports]]
84+
path = "github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager"
85+
86+
# [[imports]]
87+
# path = "github.com/gethugothemes/hugo-modules/seo-tools/baidu-analytics"
88+
89+
# [[imports]]
90+
# path = "github.com/gethugothemes/hugo-modules/seo-tools/matomo-analytics"
91+
92+
# [[imports]]
93+
# path = "github.com/gethugothemes/hugo-modules/seo-tools/plausible-analytics"
94+
95+
# [[imports]]
96+
# path = "github.com/gethugothemes/hugo-modules/seo-tools/counter-analytics"

0 commit comments

Comments
 (0)