From eb4cd870be5da355f2760dc3572bffcb049fc70b Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Fri, 23 Jun 2023 15:51:12 -0400 Subject: [PATCH] Match style to onfoss.org --- pack_web_offline.sh | 20 +- scripts/deploy_webserver.sh | 19 +- website/_includes/event.html | 8 +- website/_includes/nav.html | 42 +- website/_layouts/default.html | 8 +- website/_sass/base.scss | 140 +++--- .../assets/font/ubuntu-mono-v14-latin-700.eot | Bin 0 -> 25749 bytes .../assets/font/ubuntu-mono-v14-latin-700.svg | 348 ++++++++++++++ .../assets/font/ubuntu-mono-v14-latin-700.ttf | Bin 0 -> 49800 bytes .../font/ubuntu-mono-v14-latin-700.woff | Bin 0 -> 30388 bytes .../font/ubuntu-mono-v14-latin-700.woff2 | Bin 0 -> 25748 bytes .../font/ubuntu-mono-v14-latin-700italic.eot | Bin 0 -> 28411 bytes .../font/ubuntu-mono-v14-latin-700italic.svg | 366 +++++++++++++++ .../font/ubuntu-mono-v14-latin-700italic.ttf | Bin 0 -> 51444 bytes .../font/ubuntu-mono-v14-latin-700italic.woff | Bin 0 -> 32332 bytes .../ubuntu-mono-v14-latin-700italic.woff2 | Bin 0 -> 27824 bytes .../font/ubuntu-mono-v14-latin-italic.eot | Bin 0 -> 27255 bytes .../font/ubuntu-mono-v14-latin-italic.svg | 366 +++++++++++++++ .../font/ubuntu-mono-v14-latin-italic.ttf | Bin 0 -> 54236 bytes .../font/ubuntu-mono-v14-latin-italic.woff | Bin 0 -> 31508 bytes .../font/ubuntu-mono-v14-latin-italic.woff2 | Bin 0 -> 26600 bytes .../font/ubuntu-mono-v14-latin-regular.eot | Bin 0 -> 27637 bytes .../font/ubuntu-mono-v14-latin-regular.svg | 350 ++++++++++++++ .../font/ubuntu-mono-v14-latin-regular.ttf | Bin 0 -> 55144 bytes .../font/ubuntu-mono-v14-latin-regular.woff | Bin 0 -> 32188 bytes .../font/ubuntu-mono-v14-latin-regular.woff2 | Bin 0 -> 27384 bytes website/assets/img/icon.svg | 427 +----------------- website/assets/img/logo.svg | 32 ++ website/assets/js/localtime.js | 70 +++ website/index.html | 10 +- website/schedule.html | 18 - 31 files changed, 1684 insertions(+), 540 deletions(-) create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700.eot create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700.svg create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700.ttf create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700.woff create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700.woff2 create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700italic.eot create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700italic.svg create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700italic.ttf create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700italic.woff create mode 100644 website/assets/font/ubuntu-mono-v14-latin-700italic.woff2 create mode 100644 website/assets/font/ubuntu-mono-v14-latin-italic.eot create mode 100644 website/assets/font/ubuntu-mono-v14-latin-italic.svg create mode 100644 website/assets/font/ubuntu-mono-v14-latin-italic.ttf create mode 100644 website/assets/font/ubuntu-mono-v14-latin-italic.woff create mode 100644 website/assets/font/ubuntu-mono-v14-latin-italic.woff2 create mode 100644 website/assets/font/ubuntu-mono-v14-latin-regular.eot create mode 100644 website/assets/font/ubuntu-mono-v14-latin-regular.svg create mode 100644 website/assets/font/ubuntu-mono-v14-latin-regular.ttf create mode 100644 website/assets/font/ubuntu-mono-v14-latin-regular.woff create mode 100644 website/assets/font/ubuntu-mono-v14-latin-regular.woff2 create mode 100644 website/assets/img/logo.svg create mode 100644 website/assets/js/localtime.js delete mode 100644 website/schedule.html diff --git a/pack_web_offline.sh b/pack_web_offline.sh index a19348e..d4c7311 100755 --- a/pack_web_offline.sh +++ b/pack_web_offline.sh @@ -22,6 +22,7 @@ ### DOMAINNAME=example.com HOSTEDBYNAME=DeathByDenim ./pack_web_offline.sh set -e +bootstrap_version="5.3.0" if ! which jekyll > /dev/null; then echo "Jekyll is required to generate the website" @@ -32,12 +33,12 @@ webroot=${TMPDIR:-/tmp}/website mkdir -p ${webroot} cp -r "$(dirname "$0")"/website/* ${webroot} -curl --location https://github.com/twbs/bootstrap/archive/v5.2.3.zip > ${TMPDIR:-/tmp}/bootstrap.zip -unzip -o -d ${TMPDIR:-/tmp}/bootstrap ${TMPDIR:-/tmp}/bootstrap.zip "bootstrap-5.2.3/scss/*" +curl --location https://github.com/twbs/bootstrap/archive/v"${bootstrap_version}".zip > ${TMPDIR:-/tmp}/bootstrap.zip +unzip -o -d ${TMPDIR:-/tmp}/bootstrap ${TMPDIR:-/tmp}/bootstrap.zip "bootstrap-${bootstrap_version}/scss/*" if [ -d "$(dirname "$0")"/../website/_sass/bootstrap ]; then rm -r "$(dirname "$0")"/../website/_sass/bootstrap fi -mv ${TMPDIR:-/tmp}/bootstrap/bootstrap-5.2.3/scss ${webroot}/_sass/bootstrap +mv ${TMPDIR:-/tmp}/bootstrap/bootstrap-"${bootstrap_version}"/scss ${webroot}/_sass/bootstrap rm -r ${TMPDIR:-/tmp}/bootstrap.zip ${TMPDIR:-/tmp}/bootstrap if [ x"$NOSSL" = "x" ] || [ $NOSSL -ne 1 ]; then @@ -60,18 +61,7 @@ content: offline: true ssl: ${ssl} md5password: "$(echo -n "${systempassword}" | md5sum | cut -d' ' -f1)" - -defaults: - - - scope: - path: "" - type: "posts" - values: - layout: "post" - -plugins: - - jekyll-feed EOF jekyll build --source ${webroot} --destination ${webroot}/_site tar -cjf web.tar.bz2 --directory="${webroot}/_site" . -rm -rf "${webroot}" +#rm -rf "${webroot}" diff --git a/scripts/deploy_webserver.sh b/scripts/deploy_webserver.sh index b6d2cbc..373723d 100755 --- a/scripts/deploy_webserver.sh +++ b/scripts/deploy_webserver.sh @@ -17,6 +17,8 @@ set -e +bootstrap_version="5.3.0" + # Web dashboard systemctl enable --now nginx @@ -35,12 +37,12 @@ else fi # Generate the website and put in place -curl --location https://github.com/twbs/bootstrap/archive/v5.2.3.zip > ${TMPDIR:-/tmp}/bootstrap.zip -unzip -o -d ${TMPDIR:-/tmp}/bootstrap ${TMPDIR:-/tmp}/bootstrap.zip "bootstrap-5.2.3/scss/*" +curl --location https://github.com/twbs/bootstrap/archive/v"${bootstrap_version}".zip > ${TMPDIR:-/tmp}/bootstrap.zip +unzip -o -d ${TMPDIR:-/tmp}/bootstrap ${TMPDIR:-/tmp}/bootstrap.zip "bootstrap-${bootstrap_version}/scss/*" if [ -d "$(dirname "$0")"/../website/_sass/bootstrap ]; then rm -r "$(dirname "$0")"/../website/_sass/bootstrap fi -mv ${TMPDIR:-/tmp}/bootstrap/bootstrap-5.2.3/scss "$(dirname "$0")"/../website/_sass/bootstrap +mv ${TMPDIR:-/tmp}/bootstrap/bootstrap-"${bootstrap_version}"/scss "$(dirname "$0")"/../website/_sass/bootstrap rm -r ${TMPDIR:-/tmp}/bootstrap.zip ${TMPDIR:-/tmp}/bootstrap cat > "$(dirname "$0")"/../website/_config.yml < - var event_year = {{ event.date | date: "%Y" }}; - var event_month = {{ event.date | date: "%-m" }}; - var event_day = {{ event.date | date: "%e" }}; - var d = new Date(Date.UTC(event_year, event_month, event_day, {{ event.date | date: "%H" }}, {{ event.date | date: "%M" }})); -