-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1f14a9a
Showing
458 changed files
with
20,304 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Deploy Jekyll with GitHub Pages dependencies preinstalled | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Build with Jekyll | ||
uses: actions/jekyll-build-pages@v1 | ||
with: | ||
source: ./ | ||
destination: ./_site | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
name: Deploy Hugo site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
|
||
|
||
# Environment variables available to all jobs and steps in this workflow | ||
env: | ||
HUGO_ENV: production | ||
HUGO_VERSION: "0.124.1" | ||
GO_VERSION: "1.22.2" | ||
NODE_VERSION: "20.0.0" | ||
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }} | ||
TINA_TOKEN: ${{ vars.TINA_TOKEN }} | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Hugo | ||
run: | | ||
curl -LO "https://github.com/gohugoio/hugo/releases/download/v${{ env.HUGO_VERSION }}/hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz" | ||
tar -xvf hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz | ||
sudo mv hugo /usr/local/bin/ | ||
rm hugo_extended_${{ env.HUGO_VERSION }}_Linux-64bit.tar.gz | ||
hugo version | ||
- name: Install Go | ||
run: | | ||
curl -LO "https://dl.google.com/go/go${{ env.GO_VERSION }}.linux-amd64.tar.gz" | ||
sudo tar -C /usr/local -xzf go${{ env.GO_VERSION }}.linux-amd64.tar.gz | ||
echo "export PATH=$PATH:/usr/local/go/bin" >> $GITHUB_ENV | ||
rm go${{ env.GO_VERSION }}.linux-amd64.tar.gz | ||
go version | ||
# - name: Setup Project | ||
# run: | | ||
# npm install -g npx --force | ||
# npm install -g postcss-cli | ||
# npm install tailwindcss@latest | ||
|
||
- name: Install npm dependencies | ||
run: npm install | ||
|
||
# - name: Publish to GitHub Pages | ||
# run: npm run build | ||
|
||
# - name: Upload artifact | ||
# uses: actions/upload-pages-artifact@v3 | ||
# with: | ||
# path: ./public | ||
|
||
# Deployment job | ||
# deploy: | ||
# environment: | ||
# name: github-pages | ||
# runs-on: ubuntu-latest | ||
# needs: build | ||
# steps: | ||
# - name: Deploy to GitHub Pages | ||
# id: deployment | ||
# uses: actions/deploy-pages@v4 | ||
|
||
- name: Build | ||
run: npm run build | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: public | ||
clean: true | ||
single-commit: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Thumbs.db | ||
.DS_Store | ||
.dist | ||
.tmp | ||
.lock | ||
.sass-cache | ||
npm-debug.log | ||
node_modules | ||
builds | ||
package-lock.json | ||
public | ||
resources | ||
.hugo_build.lock | ||
jsconfig.json | ||
hugo_stats.json | ||
go.sum | ||
yarn.lock | ||
themes/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Add your own custom styles here | ||
|
||
|
||
.nav-item { | ||
font-size: larger; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
################ English language ################## | ||
[en] | ||
languageName = "En" | ||
languageCode = "en-us" | ||
contentDir = "content/english" | ||
weight = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
############# English navigation ############## | ||
|
||
# main menu | ||
[[main]] | ||
name = "HOME" | ||
url = "/" | ||
weight = 1 | ||
|
||
[[main]] | ||
name = "GENOMES" | ||
url = "genomes/" | ||
weight = 2 | ||
|
||
[[main]] | ||
name = "VARIETIES" | ||
url = "/variety" | ||
weight = 3 | ||
|
||
[[main]] | ||
weight = 4 | ||
name = "RESOURCES" | ||
|
||
[[main]] | ||
parent = "RESOURCES" | ||
name = "Online resource" | ||
url = "mzor/" | ||
weight = 1 | ||
|
||
[[main]] | ||
parent = "RESOURCES" | ||
name = "Maize lab" | ||
url = "Maize-lab/" | ||
weight = 2 | ||
|
||
|
||
|
||
[[main]] | ||
weight = 5 | ||
name = "NEWS" | ||
|
||
[[main]] | ||
parent = "NEWS" | ||
name = "科研人物" | ||
url = "news1/" | ||
weight = 3 | ||
|
||
[[main]] | ||
parent = "NEWS" | ||
name = "科研动态" | ||
url = "news2/" | ||
weight = 3 | ||
|
||
[[main]] | ||
parent = "NEWS" | ||
name = "论文推荐" | ||
url = "news3/" | ||
weight = 3 | ||
|
||
[[main]] | ||
parent = "NEWS" | ||
name = "育种动态" | ||
url = "news4/" | ||
weight = 3 | ||
|
||
[[main]] | ||
parent = "NEWS" | ||
name = "玉米生产" | ||
url = "news5/" | ||
weight = 3 | ||
|
||
|
||
|
||
[[main]] | ||
name = "LITERATURE" | ||
url = "literature/" | ||
weight = 6 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
[hugoVersion] | ||
extended = true | ||
min = "0.124.1" | ||
|
||
[[imports]] | ||
path = "github.com/zeon-studio/hugoplate" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/search" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/pwa" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/images" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/videos" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/icons/font-awesome" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/icons/themify-icons" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/gzip-caching" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/adsense" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/accordion" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/table-of-contents" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/tab" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/modal" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/gallery-slider" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/components/preloader" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/components/social-share" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/components/cookie-consent" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/components/announcement" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/components/custom-script" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/components/render-link" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/components/valine-comment" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/components/crisp-chat" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/shortcodes/button" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/shortcodes/notice" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/seo-tools/basic-seo" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/seo-tools/site-verifications" | ||
|
||
[[imports]] | ||
path = "github.com/gethugothemes/hugo-modules/seo-tools/google-tag-manager" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/seo-tools/baidu-analytics" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/seo-tools/matomo-analytics" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/seo-tools/plausible-analytics" | ||
|
||
# [[imports]] | ||
# path = "github.com/gethugothemes/hugo-modules/seo-tools/counter-analytics" |
Oops, something went wrong.