app: Add bootstrap icons
This commit is contained in:
parent
12fc86492d
commit
4d991ead3e
4 changed files with 35 additions and 10 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
[[hooks]]
|
[[hooks]]
|
||||||
stage = "build"
|
stage = "build"
|
||||||
command = "./dl_bootstrap.sh"
|
command = "./dl_bootstrap.sh"
|
||||||
|
|
||||||
|
[[hooks]]
|
||||||
|
stage = "build"
|
||||||
|
command = "./dl_bootstrap_icons.sh"
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,14 @@ VERSION=5.3.0-alpha3
|
||||||
URL=https://github.com/twbs/bootstrap/releases/download/v${VERSION}/bootstrap-${VERSION}-dist.zip
|
URL=https://github.com/twbs/bootstrap/releases/download/v${VERSION}/bootstrap-${VERSION}-dist.zip
|
||||||
|
|
||||||
if [[ ! -d "$TRUNK_DIST_DIR/bootstrap" ]]; then
|
if [[ ! -d "$TRUNK_DIST_DIR/bootstrap" ]]; then
|
||||||
cd "$TRUNK_STAGING_DIR" || {
|
cd "$TRUNK_STAGING_DIR" || {
|
||||||
echo "Can't cd to staging directory"
|
echo "Can't cd to staging directory"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
wget "$URL"
|
wget "$URL"
|
||||||
unzip bootstrap-*.zip
|
unzip bootstrap-$VERSION-dist.zip
|
||||||
rm bootstrap-*.zip
|
rm bootstrap-$VERSION-dist.zip
|
||||||
mv bootstrap-* bootstrap
|
mv bootstrap-$VERSION-dist bootstrap
|
||||||
else
|
else
|
||||||
cp -r "$TRUNK_DIST_DIR/bootstrap" "$TRUNK_STAGING_DIR"
|
cp -r "$TRUNK_DIST_DIR/bootstrap" "$TRUNK_STAGING_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
17
app/dl_bootstrap_icons.sh
Executable file
17
app/dl_bootstrap_icons.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
VERSION=1.10.5
|
||||||
|
URL=https://github.com/twbs/icons/releases/download/v${VERSION}/bootstrap-icons-${VERSION}.zip
|
||||||
|
|
||||||
|
if [[ ! -d "$TRUNK_DIST_DIR/bootstrap-icons" ]]; then
|
||||||
|
cd "$TRUNK_STAGING_DIR" || {
|
||||||
|
echo "Can't cd to staging directory"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
wget "$URL"
|
||||||
|
unzip bootstrap-icons-$VERSION.zip
|
||||||
|
rm bootstrap-icons-$VERSION.zip
|
||||||
|
mv bootstrap-icons-$VERSION bootstrap-icons
|
||||||
|
else
|
||||||
|
cp -r "$TRUNK_DIST_DIR/bootstrap-icons" "$TRUNK_STAGING_DIR"
|
||||||
|
fi
|
||||||
|
|
@ -4,7 +4,11 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||||||
<link data-trunk rel="copy-file" href="static/login.css" />
|
<link
|
||||||
|
href="/bootstrap-icons/font/bootstrap-icons.min.css"
|
||||||
|
rel="stylesheet"
|
||||||
|
/>
|
||||||
|
<link data-trunk rel="copy-file" href="static/login.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main></main>
|
<main></main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue