Skip to content

Commit

Permalink
Merge pull request #1 from hpcde/new-website-wowchemy
Browse files Browse the repository at this point in the history
New website with wowchemy academic theme
  • Loading branch information
genshen authored Jan 5, 2023
2 parents f2f9bf9 + 523e4fd commit a6ef1a6
Show file tree
Hide file tree
Showing 65 changed files with 1,396 additions and 476 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
push:
branches:
- master # Set a branch to deploy
pull_request:

jobs:
deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -17,14 +18,15 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.75.1'
# extended: true
hugo-version: '0.106.0'
extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./public
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*.swp
.DS_Store

# Hugo
/resources/
public/
assets/jsconfig.json
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

6 changes: 0 additions & 6 deletions archetypes/default.md

This file was deleted.

Binary file added assets/media/swirl_pattern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions assets/scss/template.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Make page header alignment consistent with widget page header alignment
.universal-wrapper h1 {
text-align: center;
}

// Center the CTA shortcode button
.cta-group {
justify-content: center;
}

.home-hero {
height: 360px;
}
.home-hero .bg-image {
background-repeat: repeat;
}
95 changes: 0 additions & 95 deletions config.toml

This file was deleted.

72 changes: 72 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Configuration of Hugo
# Guide: https://wowchemy.com/docs/getting-started/
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/

title: HPCDE Lab # Website name
baseURL: 'https://hpcde.github.io/' # Website URL

############################
## LANGUAGE
############################

defaultContentLanguage: zh
hasCJKLanguage: false
defaultContentLanguageInSubdir: false
removePathAccents: true

############################
## MODULES
############################

module:
imports:
- path: github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms
- path: github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify
- path: github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5

############################
## ADVANCED
############################

enableGitInfo: false
summaryLength: 30
paginate: 10
enableEmoji: true
enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
permalinks:
authors: '/author/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'
publication_types: '/publication-type/:slug/'
disableAliases: true
outputs:
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
section: [HTML, RSS]
imaging:
resampleFilter: lanczos
quality: 75
anchor: smart
timeout: 600000
taxonomies:
tag: tags
category: categories
publication_type: publication_types
author: authors
markup:
_merge: deep
related:
threshold: 80
includeNewer: true
toLower: true
indices:
- name: tags
weight: 100
- name: categories
weight: 70
security:
_merge: deep
sitemap:
_merge: deep
22 changes: 22 additions & 0 deletions config/_default/languages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Languages
# Create a section for each of your site's languages.
# Documentation: https://wowchemy.com/docs/guide/language/

# Default language
en:
languageCode: en-us
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
contentDir: content/en

# Uncomment the lines below to configure your website in a second language.
zh:
languageCode: zh-Hans
contentDir: content/zh
# title: Chinese website title...
# params:
# description: Site description in Chinese...
# menu:
# main:
# - name: 传
# url: '#about'
# weight: 1
27 changes: 27 additions & 0 deletions config/_default/menus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Navigation Links
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
# desired widget in your `content/home/` folder.
# The weight parameter defines the order that the links will appear in.

main:
- name: Tour
url: tour
weight: 10
- name: News
url: post
weight: 20
- name: People
url: people
weight: 30
# - name: Events
# url: event
# weight: 40
- name: Researches
url: researches
weight: 45
- name: Publications
url: publication
weight: 50
- name: Contact
url: contact
weight: 60
73 changes: 73 additions & 0 deletions config/_default/params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SITE SETUP
# Guide: https://wowchemy.com/docs/getting-started/
# Documentation: https://wowchemy.com/docs/
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/

# Appearance

appearance:
theme_day: minimal
theme_night:
font: native
font_size: M

# SEO


header:
navbar:
enable: true
align: r
show_logo: true
show_language: false
show_day_night: true
show_search: true
highlight_active_link: true

# Site footer

footer:
block: minimal
text: |
内网入口&ensp;[Cluster Docs](https://links.hpcer.dev/cluster-docs)&ensp; [Git Repository](https://links.hpcer.dev/git)&ensp; [Wiki](https://links.hpcer.dev/wiki) <br/>
相关链接&ensp;[北京科技大学计算机与通信工程学院](https://scce.ustb.edu.cn)&ensp; [智能超算融合应用技术教育部工程研究中心](http://ercis.ustb.edu.cn) <br/>
copyright:
notice: '© {year} HPCDE. This work is licensed under {license}'
license:
enable: true
allow_derivatives: false
share_alike: true
allow_commercial: false
show_translations: true

# Localization

locale:
date_format: 'Jan 2, 2006'
time_format: '3:04 PM'
address_format: en-us

# Site features
features:
syntax_highlighter:
enable: false
extra_languages:
- r
- latex
math:
enable: false
privacy_pack:
enable: false
repository:
url: 'https://github.com/hpcde/hpcde.github.com'
content_dir: content
branch: main
avatar:
gravatar: false
shape: circle

# Citation style

publications:
date_format: January 2006
citation_style: apa
Loading

0 comments on commit a6ef1a6

Please sign in to comment.