Skip to content

Commit d0cc433

Browse files
authored
Initial commit
0 parents  commit d0cc433

Some content is hidden

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

65 files changed

+2209
-0
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
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: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Deploy website to GitHub Pages
2+
3+
env:
4+
WC_HUGO_VERSION: '0.136.5'
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@v2
36+
with:
37+
hugo-version: ${{ env.WC_HUGO_VERSION }}
38+
extended: true
39+
- uses: actions/cache@v3
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@v3
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: Generate Pagefind search index
55+
run: npx pagefind --site "public"
56+
- name: Upload artifact
57+
uses: actions/upload-pages-artifact@v2
58+
with:
59+
path: ./public
60+
61+
# Deploy website to GitHub Pages hosting
62+
deploy:
63+
if: github.repository_owner != 'HugoBlox'
64+
environment:
65+
name: github-pages
66+
url: ${{ steps.deployment.outputs.page_url }}
67+
runs-on: ubuntu-latest
68+
needs: build
69+
steps:
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v2

.github/workflows/updater-wip.yml

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

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

config/_default/hugo.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
# Website name
7+
title: Hugo Academic CV Theme
8+
# Website URL
9+
baseURL: 'https://example.com/'
10+
11+
############################
12+
## LANGUAGE
13+
############################
14+
15+
defaultContentLanguage: en
16+
hasCJKLanguage: false
17+
defaultContentLanguageInSubdir: false
18+
removePathAccents: true
19+
20+
############################
21+
## ADVANCED
22+
############################
23+
24+
build:
25+
writeStats: true
26+
enableGitInfo: false
27+
summaryLength: 30
28+
pagination:
29+
pagerSize: 10
30+
enableEmoji: true
31+
enableRobotsTXT: true
32+
footnotereturnlinkcontents: <sup>^</sup>
33+
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
34+
permalinks:
35+
authors: '/author/:slug/'
36+
disableAliases: true
37+
outputs:
38+
home: [HTML, RSS, headers, redirects, backlinks]
39+
section: [HTML, RSS]
40+
imaging:
41+
resampleFilter: lanczos
42+
quality: 80
43+
anchor: smart
44+
timeout: 600000
45+
taxonomies:
46+
author: authors
47+
tag: tags
48+
publication_type: publication_types
49+
markup:
50+
_merge: deep
51+
highlight:
52+
lineNos: false
53+
security:
54+
_merge: deep
55+
sitemap:
56+
_merge: deep

0 commit comments

Comments
 (0)