diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4a952a3..c4bcc4b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/Makefile b/Makefile index 6fac651..3b4d26d 100644 --- a/Makefile +++ b/Makefile @@ -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" @@ -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" @@ -49,3 +49,6 @@ build: build_static build_hugo run: build_static @echo "Running hugo" @hugo server -D + +clean: + @git clean -xdf diff --git a/hugo.yaml b/hugo.yaml index 3901dac..722b955 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -47,7 +47,7 @@ privacy: disable: true instagram: disable: true - twitter: + x: disable: true vimeo: disable: true diff --git a/layouts/_shortcodes/gist.html b/layouts/_shortcodes/gist.html new file mode 100644 index 0000000..3dec2a0 --- /dev/null +++ b/layouts/_shortcodes/gist.html @@ -0,0 +1 @@ + \ No newline at end of file