Skip to content

Commit 05b6722

Browse files
Initial commit
1 parent 4f26a08 commit 05b6722

Some content is hidden

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

67 files changed

+2307
-44
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: gcushen
2+
custom: https://hugoblox.com/sponsor/

.github/preview.webp

55.5 KB
Loading

.github/workflows/deploy.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 57 additions & 0 deletions
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@v3
25+
- name: Set up Python 3.12
26+
uses: actions/setup-python@v4
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@v5
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

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: Deploy website to GitHub Pages
2+
3+
env:
4+
WC_HUGO_VERSION: '0.148.2'
5+
NODE_VERSION: '20'
6+
7+
on:
8+
# Trigger the workflow every time you push to the `main` branch
9+
push:
10+
branches: ["main"]
11+
# Allows you to run this workflow manually from the Actions tab on GitHub.
12+
workflow_dispatch:
13+
14+
# Provide permission to clone the repo and deploy it to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Build website
26+
build:
27+
if: github.repository_owner != 'HugoBlox'
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
with:
33+
# Fetch history for Hugo's .GitInfo and .Lastmod
34+
fetch-depth: 0
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
41+
- name: Setup pnpm
42+
if: hashFiles('package.json') != ''
43+
uses: pnpm/action-setup@v4
44+
45+
- name: Install dependencies
46+
run: |
47+
# Install Tailwind CLI if package.json exists
48+
if [ -f "package.json" ]; then
49+
echo "Installing Tailwind dependencies..."
50+
pnpm install || npm install
51+
fi
52+
53+
- name: Setup Hugo
54+
uses: peaceiris/actions-hugo@v3
55+
with:
56+
hugo-version: ${{ env.WC_HUGO_VERSION }}
57+
extended: true
58+
59+
- uses: actions/cache@v4
60+
with:
61+
path: |
62+
/tmp/hugo_cache_runner/
63+
node_modules/
64+
modules/*/node_modules/
65+
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod', '**/package-lock.json', '**/pnpm-lock.yaml') }}
66+
restore-keys: |
67+
${{ runner.os }}-hugomod-
68+
69+
- name: Setup Pages
70+
id: pages
71+
uses: actions/configure-pages@v5
72+
73+
- name: Build with Hugo
74+
env:
75+
HUGO_ENVIRONMENT: production
76+
run: |
77+
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
78+
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
79+
80+
- name: Generate Pagefind search index (if applicable)
81+
run: |
82+
# Check if site uses Pagefind
83+
if [ -f "package.json" ] && grep -q "pagefind" package.json; then
84+
pnpm dlx pagefind --source "public" || npx pagefind --source "public"
85+
elif [ -f "netlify.toml" ] && grep -q "pagefind" netlify.toml; then
86+
pnpm dlx pagefind --source "public" || npx pagefind --source "public"
87+
fi
88+
89+
- name: Upload artifact
90+
uses: actions/upload-pages-artifact@v3
91+
with:
92+
path: ./public
93+
94+
# Deploy website to GitHub Pages hosting
95+
deploy:
96+
if: github.repository_owner != 'HugoBlox'
97+
environment:
98+
name: github-pages
99+
url: ${{ steps.deployment.outputs.page_url }}
100+
runs-on: ubuntu-latest
101+
needs: build
102+
steps:
103+
- name: Deploy to GitHub Pages
104+
id: deployment
105+
uses: actions/deploy-pages@v4

.github/workflows/updater-wip.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow is only for the Hugo Blox repository. It is safe to delete from your site.
2+
name: Updater (WIP)
3+
4+
on:
5+
schedule:
6+
- cron: 0 0 * * 0
7+
# Allows you to run this workflow manually from the Actions tab on GitHub.
8+
workflow_dispatch:
9+
10+
# Provide permission to clone the repo and deploy it to GitHub Pages
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
update:
16+
if: github.repository_owner == 'HugoBlox'
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: HugoBlox/gh-action-updater@v2
20+
with:
21+
feed-url: https://hugoblox.com/rss.xml
22+
readme-section: news
23+
branch: main
24+
github_token: ${{ secrets.GITHUB_TOKEN }}

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023-present George Cushen (https://georgecushen.com/)
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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# [Hugo Academic CV Theme](https://github.com/HugoBlox/theme-academic-cv)
2+
3+
[![Screenshot](.github/preview.webp)](https://hugoblox.com/templates/)
4+
5+
The Hugo **Academic CV Template** empowers you to easily create your job-winning online resumé, showcase your academic publications, and create online courses or knowledge bases to grow your audience.
6+
7+
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/)
8+
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
9+
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter)](https://twitter.com/GetResearchDev)
10+
11+
**Trusted by 250,000+ researchers, educators, and students.** Highly customizable via the integrated **no-code, Hugo Blox Builder**, making every site truly personalized ⭐⭐⭐⭐⭐
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://academic-demo.netlify.app/) of what you'll get in less than 10 minutes, or [get inspired by our academics and research groups](https://hugoblox.com/creators/).
16+
17+
The integrated [**Hugo Blox Builder**](https://hugoblox.com) 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/templates/)
20+
- 📚 [View the **documentation**](https://docs.hugoblox.com/)
21+
- 💬 [Chat with the **Hugo Blox Builder community**](https://discord.gg/z8wNYzb) or [**Hugo community**](https://discourse.gohugo.io)
22+
- 🐦 Twitter: [@GetResearchDev](https://twitter.com/GetResearchDev) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithHugoBlox](https://twitter.com/search?q=%23MadeWithHugoBlox&src=typed_query)
23+
- ⬇️ **Automatically import your publications from BibTeX** with the [Hugo Academic CLI](https://github.com/GetRD/academic-file-converter)
24+
- 💡 [Suggest an improvement](https://github.com/HugoBlox/hugo-blox-builder/issues)
25+
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/reference/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
26+
27+
## We ask you, humbly, to support this open source movement
28+
29+
Today we ask you to defend the open source independence of the Hugo Blox Builder and themes 🐧
30+
31+
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.
32+
33+
### [❤️ Click here to become a Sponsor, unlocking awesome perks such as _exclusive academic templates and blocks_](https://hugoblox.com/sponsor/)
34+
35+
<!--
36+
<p align="center"><a href="https://hugoblox.com/templates/" target="_blank" rel="noopener"><img src="https://hugoblox.com/uploads/readmes/academic_logo_200px.png" alt="Hugo Academic Theme for Hugo Blox Builder"></a></p>
37+
-->
38+
39+
## Demo image credits
40+
41+
- [Unsplash](https://unsplash.com)
42+
43+
## Latest news
44+
45+
<!--START_SECTION:news-->
46+
47+
- [Easily make an academic CV website to get more cites and grow your audience 🚀](https://hugoblox.com/blog/easily-make-academic-website/)
48+
- [What&#39;s new in v5.2?](https://hugoblox.com/blog/whats-new-in-v5.2/)
49+
- [What&#39;s new in v5.1?](https://hugoblox.com/blog/whats-new-in-v5.1/)
50+
- [Version 5.0 (February 2021)](https://hugoblox.com/blog/version-5.0-february-2021/)
51+
- [Version 5.0 Beta 3 (February 2021)](https://hugoblox.com/blog/version-5.0-beta-3-february-2021/)
52+
<!--END_SECTION:news-->

assets/media/icons/.gitkeep

Whitespace-only changes.

assets/media/stacked-peaks.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)