Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,18 @@ defaults:
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.140.1
DART_SASS_VERSION: 1.83.0
steps:
- name: Install Hugo CLI & Dart Sass
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
sudo dpkg -i ${{ runner.temp }}/hugo.deb

wget -O ${{ runner.temp }}/dart-sass.tar.gz https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
tar -xvf ${{ runner.temp }}/dart-sass.tar.gz -C ${{ runner.temp }}
sudo ln -s ${{ runner.temp }}/dart-sass/sass /usr/local/bin/sass

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-depth: 1

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.147.9"
extended: true

- name: Setup Pages
id: pages
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RESUME_OUT_PATH := $(RESUME_DIR)/out/cv.pdf
RESUME_OUT_STATIC_PATH := $(STATIC_DIR)/cv.pdf
PORTRAIT_OUT_PATH := $(RESUME_DIR)/me.jpeg
PORTRAIT_OUT_STATIC_PATH := $(STATIC_DIR)/me.jpeg

TEX_IMAGE_NAME := registry.gitlab.com/islandoftex/images/texlive:latest

docker_cv_build:
@echo "Building resume with docker"
Expand All @@ -18,8 +18,8 @@ docker_cv_build:
--network=none \
-u "0:0" \
-v "$(RESUME_DIR_ABS):/app" \
leplusorg/latex \
pdflatex -halt-on-error -output-directory=out -output-format=pdf -recorder cv.tex > /dev/null
$(TEX_IMAGE_NAME) \
pdflatex -halt-on-error -output-directory=out -output-format=pdf -recorder cv.tex

$(RESUME_OUT_PATH): $(RESUME_DIR)/cv.tex $(PORTRAIT_OUT_PATH)
@echo "Building resume"
Expand Down Expand Up @@ -49,3 +49,6 @@ build: build_static build_hugo
run: build_static
@echo "Running hugo"
@hugo server -D

clean:
@git clean -xdf
2 changes: 1 addition & 1 deletion hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ privacy:
disable: true
instagram:
disable: true
twitter:
x:
disable: true
vimeo:
disable: true
Expand Down
1 change: 1 addition & 0 deletions layouts/_shortcodes/gist.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{if len .Params | eq 3 }}?file={{ index .Params 2 }}{{end}}"></script>