Skip to content

Commit 1198617

Browse files
authored
Initial commit
0 parents  commit 1198617

Some content is hidden

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

52 files changed

+1303
-0
lines changed

.editorconfig

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.toml]
14+
max_line_length = 100
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

.github/FUNDING.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: gcushen
2+
custom: https://hugoblox.com/sponsor/
+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Hugo Blox GitHub Action to convert Bibtex publications to Markdown-based webpages
2+
name: Import Publications From Bibtex
3+
4+
# Require permission to create a PR
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
# Run workflow when a `.bib` file is added or updated in the `data/` folder
10+
on:
11+
push:
12+
branches: ['main']
13+
paths: ['publications.bib']
14+
15+
# Allows you to run this workflow manually from the Actions tab
16+
workflow_dispatch:
17+
18+
jobs:
19+
hugoblox:
20+
if: github.repository_owner != 'HugoBlox'
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout the repo
24+
uses: actions/checkout@v4
25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install academic==0.10.0
33+
- name: Run Academic (Bibtex To Markdown Converter)
34+
# Check `.bib` file exists for case when action runs on `.bib` deletion
35+
# Note GH only provides hashFiles func in `steps.if` context, not `jobs.if` context
36+
if: ${{ hashFiles('publications.bib') != '' }}
37+
run: academic import publications.bib content/publication/ --compact
38+
- name: Create Pull Request
39+
# Set ID for `Check outputs` stage
40+
id: cpr
41+
uses: peter-evans/create-pull-request@v6
42+
with:
43+
commit-message: 'content: import publications from Bibtex'
44+
title: Hugo Blox Builder - Import latest publications
45+
body: |
46+
Import the latest publications from `publications.bib` to `content/publication/`.
47+
将最新的出版物从`publications.bib`导入到`content/publication/`。
48+
[View Documentation](https://github.com/GetRD/academic-file-converter)
49+
base: main
50+
labels: automated-pr, content
51+
branch: hugoblox-import-publications
52+
delete-branch: true
53+
- name: Check outputs
54+
if: ${{ steps.cpr.outputs.pull-request-number }}
55+
run: |
56+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
57+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

.github/workflows/publish.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Deploy website to GitHub Pages
2+
3+
env:
4+
WC_HUGO_VERSION: '0.135.0'
5+
6+
on:
7+
# Trigger the workflow every time you push to the `main` branch
8+
push:
9+
branches: ["main"]
10+
# Allows you to run this workflow manually from the Actions tab on GitHub.
11+
workflow_dispatch:
12+
13+
# Provide permission to clone the repo and deploy it to GitHub Pages
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
# Build website
25+
build:
26+
if: github.repository_owner != 'HugoBlox'
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
# Fetch history for Hugo's .GitInfo and .Lastmod
33+
fetch-depth: 0
34+
- name: Setup Hugo
35+
uses: peaceiris/actions-hugo@v3
36+
with:
37+
hugo-version: ${{ env.WC_HUGO_VERSION }}
38+
extended: true
39+
- uses: actions/cache@v4
40+
with:
41+
path: /tmp/hugo_cache_runner/
42+
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
43+
restore-keys: |
44+
${{ runner.os }}-hugomod-
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v5
48+
- name: Build with Hugo
49+
env:
50+
HUGO_ENVIRONMENT: production
51+
run: |
52+
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
53+
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./public
58+
59+
# Deploy website to GitHub Pages hosting
60+
deploy:
61+
if: github.repository_owner != 'HugoBlox'
62+
environment:
63+
name: github-pages
64+
url: ${{ steps.deployment.outputs.page_url }}
65+
runs-on: ubuntu-latest
66+
needs: build
67+
steps:
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# IDEs
2+
.idea/
3+
4+
# Hugo
5+
/resources/
6+
public/
7+
assets/jsconfig.json

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020-present George Cushen
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# [Hugo Research Group Theme](https://github.com/wowchemy/starter-hugo-research-group)
2+
3+
[![Screenshot](preview.png)](https://hugoblox.com/hugo-themes/)
4+
5+
The **Research Group Template** empowers your research group to easily create a beautiful website with a stunning homepage, news, academic publications, events, team profiles, and a contact form.
6+
7+
**Trusted by 250,000+ researchers, educators, and students.** Highly customizable via the integrated **no-code, widget-based Wowchemy page builder**, making every site truly personalized ⭐⭐⭐⭐⭐
8+
9+
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/hugo-themes/)
10+
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
11+
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter)](https://twitter.com/wowchemy)
12+
13+
Easily write technical content with plain text Markdown, LaTeX math, diagrams, RMarkdown, or Jupyter, and import publications from BibTeX.
14+
15+
[Check out the latest demo](https://research-group.netlify.app/) of what you'll get in less than 60 seconds, or [view the showcase](https://hugoblox.com/creators/).
16+
17+
The integrated [**Wowchemy**](https://hugoblox.com) website builder and CMS makes it easy to create a beautiful website for free. Edit your site in the CMS (or your favorite editor), generate it with [Hugo](https://github.com/gohugoio/hugo), and deploy with GitHub or Netlify. Customize anything on your site with widgets, light/dark themes, and language packs.
18+
19+
- 👉 [**Get Started**](https://hugoblox.com/hugo-themes/)
20+
- 📚 [View the **documentation**](https://docs.hugoblox.com/)
21+
- 💬 [Chat with the **Wowchemy research community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
22+
- ⬇️ **Automatically import citations from BibTeX** with the [Hugo Academic CLI](https://github.com/GetRD/academic-file-converter)
23+
- 🐦 Share your new site with the community: [@wowchemy](https://twitter.com/wowchemy) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithWowchemy](https://twitter.com/search?q=%23MadeWithWowchemy&src=typed_query)
24+
- 🗳 [Take the survey and help us improve #OpenSource](https://forms.gle/NioD9VhUg7PNmdCAA)
25+
- 🚀 [Contribute improvements](https://github.com/HugoBlox/hugo-blox-builder/blob/main/CONTRIBUTING.md) or [suggest improvements](https://github.com/HugoBlox/hugo-blox-builder/issues)
26+
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/hugo-tutorials/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
27+
28+
## We ask you, humbly, to support this open source movement
29+
30+
Today we ask you to defend the open source independence of the Wowchemy website builder and themes 🐧
31+
32+
We're an open source movement that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way.
33+
34+
### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)
35+
36+
## Demo credits
37+
38+
Please replace the demo images with your own.
39+
40+
- [Female scientist](https://unsplash.com/photos/uVnRa6mOLOM)
41+
- [2 Coders](https://unsplash.com/photos/kwzWjTnDPLk)
42+
- [Cafe](https://unsplash.com/photos/RnDGGnMEOao)
43+
- Blog posts
44+
- https://unsplash.com/photos/AndE50aaHn4
45+
- https://unsplash.com/photos/OYzbqk2y26c
46+
- Avatars
47+
- https://unsplash.com/photos/5yENNRbbat4
48+
- https://unsplash.com/photos/WNoLnJo7tS8

assets/media/coders.jpg

165 KB
Loading

assets/media/contact.jpg

165 KB
Loading

assets/media/icon.png

11.6 KB
Loading

assets/media/icons/.gitkeep

Whitespace-only changes.

assets/media/welcome.jpg

33.4 KB
Loading

assets/scss/template.scss

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Make page header alignment consistent with widget page header alignment
2+
.universal-wrapper h1 {
3+
text-align: center;
4+
}
5+
6+
// Center the CTA shortcode button
7+
.cta-group {
8+
justify-content: center;
9+
}

config/_default/hugo.yaml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Configuration of Hugo
2+
# Guide: https://docs.hugoblox.com/tutorial/
3+
# Hugo Documentation: https://gohugo.io/getting-started/configuration/#all-configuration-settings
4+
# This file is formatted using YAML syntax - learn more at https://learnxinyminutes.com/docs/yaml/
5+
6+
title: Wowchemy Research Group # Website name
7+
baseURL: 'https://example.com/' # Website URL
8+
9+
############################
10+
## LANGUAGE
11+
############################
12+
13+
defaultContentLanguage: en
14+
hasCJKLanguage: false
15+
defaultContentLanguageInSubdir: false
16+
removePathAccents: true
17+
18+
############################
19+
## ADVANCED
20+
############################
21+
22+
enableGitInfo: false
23+
summaryLength: 30
24+
pagination:
25+
pagerSize: 10
26+
enableEmoji: true
27+
enableRobotsTXT: true
28+
footnotereturnlinkcontents: <sup>^</sup>
29+
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
30+
permalinks:
31+
authors: '/author/:slug/'
32+
tags: '/tag/:slug/'
33+
categories: '/category/:slug/'
34+
publication_types: '/publication-type/:slug/'
35+
disableAliases: true
36+
outputs:
37+
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
38+
section: [HTML, RSS]
39+
imaging:
40+
resampleFilter: lanczos
41+
quality: 75
42+
anchor: smart
43+
timeout: 600000
44+
taxonomies:
45+
tag: tags
46+
category: categories
47+
publication_type: publication_types
48+
author: authors
49+
markup:
50+
_merge: deep
51+
related:
52+
threshold: 80
53+
includeNewer: true
54+
toLower: true
55+
indices:
56+
- name: tags
57+
weight: 100
58+
- name: categories
59+
weight: 70
60+
security:
61+
_merge: deep
62+
sitemap:
63+
_merge: deep

config/_default/languages.yaml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Languages
2+
# Create a section for each of your site's languages.
3+
# Documentation: https://docs.hugoblox.com/reference/language/
4+
5+
# Default language
6+
en:
7+
languageCode: en-us
8+
# Uncomment for multi-lingual sites, and move English content into `en` sub-folder.
9+
#contentDir: content/en
10+
11+
# Uncomment the lines below to configure your website in a second language.
12+
#zh:
13+
# languageCode: zh-Hans
14+
# contentDir: content/zh
15+
# title: Chinese website title...
16+
# params:
17+
# description: Site description in Chinese...
18+
# menu:
19+
# main:
20+
# - name: 传
21+
# url: '#about'
22+
# weight: 1

config/_default/menus.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Navigation Links
2+
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
3+
# desired widget in your `content/home/` folder.
4+
# The weight parameter defines the order that the links will appear in.
5+
6+
main:
7+
- name: Tour
8+
url: tour
9+
weight: 10
10+
- name: News
11+
url: post
12+
weight: 20
13+
- name: People
14+
url: people
15+
weight: 30
16+
- name: Events
17+
url: event
18+
weight: 40
19+
- name: Publications
20+
url: publication
21+
weight: 50
22+
- name: Contact
23+
url: contact
24+
weight: 60

config/_default/module.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
############################
2+
## HUGO MODULES
3+
## Install or uninstall themes and plugins here.
4+
## Docs: https://gohugo.io/hugo-modules/
5+
############################
6+
7+
imports:
8+
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-decap-cms
9+
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
10+
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5

0 commit comments

Comments
 (0)