Skip to content

Commit

Permalink
starters: port Academic theme to Tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
Splitter committed May 19, 2024
1 parent cefb239 commit 915d9bd
Show file tree
Hide file tree
Showing 86 changed files with 1,290 additions and 1,433 deletions.
20 changes: 0 additions & 20 deletions .editorconfig

This file was deleted.

Binary file added .github/preview.webp
Binary file not shown.
6 changes: 3 additions & 3 deletions .github/workflows/import-publications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Create Pull Request
# Set ID for `Check outputs` stage
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'content: import publications from Bibtex'
title: Hugo Blox Builder - Import latest publications
Expand Down
66 changes: 34 additions & 32 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy website to GitHub Pages

env:
WC_HUGO_VERSION: '0.124.1'
WC_HUGO_VERSION: '0.126.1'

on:
# Trigger the workflow every time you push to the `main` branch
Expand All @@ -26,35 +26,37 @@ jobs:
if: github.repository_owner != 'HugoBlox'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
- name: Checkout
uses: actions/checkout@v4
with:
# Fetch history for Hugo's .GitInfo and .Lastmod
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ env.WC_HUGO_VERSION }}
extended: true
- uses: actions/cache@v4
with:
path: /tmp/hugo_cache_runner/
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
run: |
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: ${{ env.WC_HUGO_VERSION }}
extended: true
- uses: actions/cache@v3
with:
path: /tmp/hugo_cache_runner/
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with Hugo
env:
HUGO_ENVIRONMENT: production
run: |
echo "Hugo Cache Dir: $(hugo config | grep cachedir)"
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Generate Pagefind search index
run: npx pagefind --site "public"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public

# Deploy website to GitHub Pages hosting
deploy:
Expand All @@ -65,6 +67,6 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
10 changes: 0 additions & 10 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-present George Cushen
Copyright (c) 2023-present George Cushen (https://georgecushen.com/)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [Hugo Academic CV Theme](https://github.com/HugoBlox/theme-academic-cv)

[![Screenshot](preview.png)](https://hugoblox.com/templates/)
[![Screenshot](.github/preview.webp)](https://hugoblox.com/templates/)

The Hugo **Academic Resumé 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.
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.

[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/)
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
Expand Down Expand Up @@ -30,9 +30,11 @@ Today we ask you to defend the open source independence of the Hugo Blox Builder

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.

### [❤️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive academic templates and widgets_](https://github.com/sponsors/gcushen)
### [❤️ Click here to become a Sponsor, unlocking awesome perks such as _exclusive academic templates and blocks_](https://hugoblox.com/sponsor/)

<!--
<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>
-->

## Demo image credits

Expand Down
16 changes: 0 additions & 16 deletions academic.Rproj

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed assets/media/hero-academic.png
Binary file not shown.
Binary file removed assets/media/icon.png
Binary file not shown.
File renamed without changes.
15 changes: 0 additions & 15 deletions assets/media/icons/brands/org-gc.svg

This file was deleted.

15 changes: 0 additions & 15 deletions assets/media/icons/brands/org-x.svg

This file was deleted.

1 change: 1 addition & 0 deletions assets/media/stacked-peaks.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 12 additions & 21 deletions config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
# 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: Academic # Website name
baseURL: 'https://example.com/' # Website URL
# Website name
title: Hugo Academic CV Theme
# Website URL
baseURL: 'https://example.com/'

############################
## LANGUAGE
Expand All @@ -19,6 +21,8 @@ removePathAccents: true
## ADVANCED
############################

build:
writeStats: true
enableGitInfo: false
summaryLength: 30
paginate: 10
Expand All @@ -27,38 +31,25 @@ enableRobotsTXT: true
footnotereturnlinkcontents: <sup>^</sup>
ignoreFiles: [\.ipynb$, .ipynb_checkpoints$, \.Rmd$, \.Rmarkdown$, _cache$]
permalinks:
event: '/talk/:slug/'
tags: '/tag/:slug/'
categories: '/category/:slug/'
publication_types: '/publication-type/:slug/'
authors: '/author/:slug/'
disableAliases: true
outputs:
home: [HTML, RSS, JSON, WebAppManifest, headers, redirects]
home: [HTML, RSS, headers, redirects, backlinks]
section: [HTML, RSS]
imaging:
resampleFilter: lanczos
quality: 75
quality: 80
anchor: smart
timeout: 600000
taxonomies:
author: authors
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
highlight:
lineNos: false
security:
_merge: deep
sitemap:
_merge: deep
minify:
_merge: deep
39 changes: 18 additions & 21 deletions config/_default/menus.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +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.
# desired widget in your `content/home/` folder.
# The weight parameter defines the order that the links will appear in.

main:
- name: Home
url: '#about'
- name: Bio
url: /
weight: 10
- name: Posts
url: '#posts'
- name: Papers
url: /#papers
weight: 11
- name: Talks
url: /#talks
weight: 12
- name: News
url: /#news
weight: 13
- name: Experience
url: experience/
weight: 20
- name: Projects
url: '#projects'
url: projects/
weight: 30
- name: Talks
url: '#talks'
- name: Teaching
url: teaching/
weight: 40
- name: Publications
url: '#featured'
weight: 50
- name: Contact
url: '#contact'
weight: 60

# Link to a PDF of your resume/CV from the menu.
# To enable, copy your resume/CV to `static/uploads/resume.pdf` and uncomment the lines below.
# - name: CV
# url: uploads/resume.pdf
# weight: 70
19 changes: 17 additions & 2 deletions config/_default/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,20 @@

imports:
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-reveal
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-bootstrap/v5
- path: github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind

# Install any Hugo Blox within the `hugo-blox/blox/` folder
mounts:
- source: hugo-blox/blox/community
target: layouts/partials/blox/community/
includeFiles: '**.html'
- source: hugo-blox/blox/all-access
target: layouts/partials/blox/
includeFiles: '**.html'
- source: hugo-blox/blox
target: assets/dist/community/blox/
includeFiles: '**.css'
- source: layouts
target: layouts
- source: assets
target: assets
Loading

0 comments on commit 915d9bd

Please sign in to comment.