favicon change
This commit is contained in:
parent
2e269a82ce
commit
7ea535a8a2
3 changed files with 54 additions and 19 deletions
|
@ -1,24 +1,55 @@
|
||||||
# The Docker image that will be used to build your app
|
stages:
|
||||||
image: debian:stable-slim
|
- deploy
|
||||||
# Functions that should be executed before the build script is run
|
|
||||||
before_script: []
|
default:
|
||||||
|
image: debian:stable-slim
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
variables:
|
||||||
|
# The runner will be able to pull your Zola theme when the strategy is
|
||||||
|
# set to "recursive".
|
||||||
|
GIT_SUBMODULE_STRATEGY: "recursive"
|
||||||
|
|
||||||
|
# If you don't set a version here, your site will be built with the latest
|
||||||
|
# version of Zola available in GitHub releases.
|
||||||
|
# Use the semver (x.y.z) format to specify a version. For example: "0.17.2" or "0.18.0".
|
||||||
|
ZOLA_VERSION:
|
||||||
|
description: "The version of Zola used to build the site."
|
||||||
|
value: ""
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- '- | apt-get update --assume-yes && apt-get install --assume-yes
|
- |
|
||||||
--no-install-recommends wget ca-certificates if [ $ZOLA_VERSION ];
|
apt-get update --assume-yes && apt-get install --assume-yes --no-install-recommends wget ca-certificates
|
||||||
then zola_url="https://github.com/getzola/zola/releases/download/v$ZOLA_VERSION/zola-v$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz" if
|
if [ $ZOLA_VERSION ]; then
|
||||||
! wget --quiet --spider $zola_url; then echo "A Zola release
|
zola_url="https://github.com/getzola/zola/releases/download/v$ZOLA_VERSION/zola-v$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz"
|
||||||
with the specified version could not be found."; exit
|
if ! wget --quiet --spider $zola_url; then
|
||||||
1; fi else github_api_url="https://api.github.com/repos/getzola/zola/releases/latest" zola_url=$( wget
|
echo "A Zola release with the specified version could not be found.";
|
||||||
--output-document - $github_api_url | grep
|
exit 1;
|
||||||
"browser_download_url.*linux-gnu.tar.gz" | cut --delimiter :
|
fi
|
||||||
--fields 2,3 | tr --delete "\" " ) fi wget
|
else
|
||||||
$zola_url tar -xzf *.tar.gz ./zola build'
|
github_api_url="https://api.github.com/repos/getzola/zola/releases/latest"
|
||||||
|
zola_url=$(
|
||||||
|
wget --output-document - $github_api_url |
|
||||||
|
grep "browser_download_url.*linux-gnu.tar.gz" |
|
||||||
|
cut --delimiter : --fields 2,3 |
|
||||||
|
tr --delete "\" "
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
wget $zola_url
|
||||||
|
tar -xzf *.tar.gz
|
||||||
|
./zola build
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
# The folder that contains the files to be exposed at the Page URL
|
# This is the directory whose contents will be deployed to the GitLab Pages
|
||||||
|
# server.
|
||||||
|
# GitLab Pages expects a directory with this name by default.
|
||||||
- public
|
- public
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# This ensures that only pushes to the default branch will trigger
|
# This rule makes it so that your website is published and updated only when
|
||||||
# a pages deploy
|
# you push to the default branch of your repository (e.g. "master" or "main").
|
||||||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
@ -28,6 +28,10 @@ header_nav = [
|
||||||
{ url = "/blog", name_en = "/blog/" },
|
{ url = "/blog", name_en = "/blog/" },
|
||||||
{ url = "/art", name_en = "/art/" }
|
{ url = "/art", name_en = "/art/" }
|
||||||
]
|
]
|
||||||
|
|
||||||
author = "mana"
|
author = "mana"
|
||||||
display_author = true
|
display_author = true
|
||||||
|
|
||||||
twitter_card = false
|
twitter_card = false
|
||||||
|
|
||||||
|
favicon = "favicon.ico"
|
Binary file not shown.
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Loading…
Add table
Reference in a new issue