splux-site · log · files · refs · tags · releases · people · languages · GitHub · commit
555e939
Use the SPS PNG and host the site at splux.robertflexx.dev
Parents
Stat
.github/workflows/pages.yml | 2 +- CNAME | 1 + README.md | 5 +++-- site/assets/favicon.png | Bin 847 -> 17163 bytes site/assets/sps.png | Bin 2262 -> 17163 bytes site/assets/style.css | 17 ++++++----------- tools/build-site.sh | 13 ++++--------- 7 files changed, 15 insertions(+), 23 deletions(-)
Diff
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index 8ad5bdb..217703b 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -34,7 +34,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
CORE: vendor/core
EXTRA: vendor/extra
- SITE_PREFIX: /splux-site
+ SITE_PREFIX: ""
run: sh tools/build-site.sh
- uses: actions/upload-pages-artifact@v3
with:
diff --git a/CNAME b/CNAME
new file mode 100644
index 0000000..a891287
--- /dev/null
+++ b/CNAME
@@ -0,0 +1 @@
+splux.robertflexx.dev
diff --git a/README.md b/README.md
index 6e1cfd0..0e4e0ad 100644
--- a/README.md
+++ b/README.md
@@ -36,5 +36,6 @@ The visible tag name is filled at build time from the GitHub Releases API.
## GitHub Pages
The workflow rebuilds the package index on a schedule and on push to `main`.
-For a project site the Pages URL is `/splux-site/`. Set `SITE_PREFIX=/splux-site`
-in that workflow so the 404 page can still load CSS.
+The custom domain is `https://splux.robertflexx.dev`. Point a DNS CNAME
+for `splux` at `robertflexx.github.io`, then GitHub Pages serves this
+repository there. `SITE_PREFIX` stays empty so links are rooted at `/`.
diff --git a/site/assets/favicon.png b/site/assets/favicon.png
index 118edf0..53db258 100644
Binary files a/site/assets/favicon.png and b/site/assets/favicon.png differ
diff --git a/site/assets/sps.png b/site/assets/sps.png
index cc2c4e7..53db258 100644
Binary files a/site/assets/sps.png and b/site/assets/sps.png differ
diff --git a/site/assets/style.css b/site/assets/style.css
index 66e38ba..bdac5fc 100644
--- a/site/assets/style.css
+++ b/site/assets/style.css
@@ -70,17 +70,12 @@ header.top {
padding-bottom: 1rem;
}
-.logo {
- margin: 0;
- font-size: 11px;
- line-height: 1.15;
- letter-spacing: 0;
- color: #9a9a9a;
- white-space: pre;
-}
-
-.logo .p {
- color: var(--accent);
+img.logo {
+ display: block;
+ width: 96px;
+ height: 96px;
+ flex-shrink: 0;
+ background: #000;
}
.identity h1 {
diff --git a/tools/build-site.sh b/tools/build-site.sh
index ff2d8f4..ce8b413 100755
--- a/tools/build-site.sh
+++ b/tools/build-site.sh
@@ -34,20 +34,15 @@ mkdir -p "$OUT/assets" "$OUT/data" "$OUT/download" "$OUT/packages" \
"$OUT/install" "$OUT/docs" "$OUT/source" "$OUT/news"
cp -a site/assets/. "$OUT/assets/"
-
-# Official SPS logo, three letters. Colors: gray S, yellow P, gray S.
-logo_pre='<pre class="logo" aria-label="SPS"><span class="s"> _____ </span><span class="p">_____ </span><span class="s">_____</span>
-<span class="s"> / ___| </span><span class="p">| _ \ </span><span class="s">/ ___|</span>
-<span class="s"> \ `--. </span><span class="p">| |_| | </span><span class="s">\ `--.</span>
-<span class="s"> `--. \ </span><span class="p">| __/ </span><span class="s">`--. \</span>
-<span class="s"> /\__/ / </span><span class="p">| | </span><span class="s">/\__/ /</span>
-<span class="s"> \____/ </span><span class="p">|_| </span><span class="s">\____/</span></pre>'
+if [ -f CNAME ]; then
+ cp CNAME "$OUT/CNAME"
+fi
write_header() {
root=$1
cat <<EOF
<header class="top">
-$logo_pre
+<img class="logo" src="${root}assets/sps.png" width="96" height="96" alt="SPS">
<div class="identity">
<h1>Splux Linux</h1>
<p>source-based Linux using SPS</p>