]> Lady’s Gitweb - WWW/commitdiff
Initial commit
authorLady <redacted>
Sun, 30 Apr 2023 22:29:39 +0000 (15:29 -0700)
committerLady <redacted>
Mon, 8 May 2023 01:31:48 +0000 (18:31 -0700)
.gitignore [new file with mode: 0644]
.rsync-filter [new file with mode: 0644]
GNUmakefile [new file with mode: 0644]
index.html [new file with mode: 0644]
media/banner.png [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..e20a29e
--- /dev/null
@@ -0,0 +1,2 @@
+.grass
+%*
diff --git a/.rsync-filter b/.rsync-filter
new file mode 100644 (file)
index 0000000..1e3fbfe
--- /dev/null
@@ -0,0 +1,9 @@
+-s .DS_Store
+-s .git
+-s .gitignore
+-s /GNUmakefile
+-s /.grass
+- /.rsync-filter
+-s README*
+-s #*
+-s %*
diff --git a/GNUmakefile b/GNUmakefile
new file mode 100644 (file)
index 0000000..93fb66e
--- /dev/null
@@ -0,0 +1,44 @@
+SHELL = /bin/sh
+
+# © 2023 Lady [@ Lady’s Computer].
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at https://mozilla.org/MPL/2.0/.
+
+# This Makefile requires rsync 3 or newer.
+RSYNC = rsync
+RSYNC_FLAGS = -Oclmrtvz
+RSYNC_OPTIONS =
+RSYNC_FILTER = .rsync-filter
+
+SOURCE_CHARSET = utf-8-mac
+
+DESTINATION_HOST = computer
+DESTINATION_PATH = lady/www
+DESTINATION = $(DESTINATION_HOST):$(DESTINATION_PATH)
+DESTINATION_CHARSET = utf-8
+
+build:
+# Put any necessary build scripts in here!
+       touch .grass
+
+ensure-build:
+       @if [ ! -f .grass ]; then echo 'Error: The website has not been built yet!' >&2; echo 'Run `make` before syncing.' >&2; exit 1; fi
+       @if buildtime=$$(stat -f '%m' .grass) && committime=$$(git log -1 --format='%ct' | awk '{print $$NF}') && [ "$$committime" -gt "$$buildtime" ]; then echo 'Error: A commit was made after the last build!' >&2; echo 'Run `make` before syncing.' >&2; exit 1; fi
+
+ensure-branch-up-to-date:
+       git fetch
+       @if ! git merge-base --is-ancestor @{u} HEAD; then echo 'Error: This branch is currently out‐of‐date!' >&2; echo 'Pull in changes with `git pull` before syncing.' >&2; exit 1; fi
+
+ensure-clean:
+       @if output=$$(git status --porcelain) && [ ! -z "$$output" ]; then echo 'Error: There are uncommitted changes!' >&2; echo 'Commit changes and run `make` before syncing.' >&2; exit 1; fi
+
+dry-sync: ensure-clean ensure-branch-up-to-date ensure-build
+       $(RSYNC) $(RSYNC_FLAGS) --del --dry-run --filter=". $(RSYNC_FILTER)" --iconv=$(SOURCE_CHARSET),$(DESTINATION_CHARSET) $(RSYNC_OPTIONS) . $(DESTINATION)
+
+sync: ensure-clean ensure-branch-up-to-date ensure-build
+       $(RSYNC) $(RSYNC_FLAGS) --del --filter=". $(RSYNC_FILTER)" --iconv=$(SOURCE_CHARSET),$(DESTINATION_CHARSET) $(RSYNC_OPTIONS) . $(DESTINATION)
+       git push --force
+
+.PHONY: build dry-sync ensure-branch-up-to-date ensure-build ensure-clean sync;
diff --git a/index.html b/index.html
new file mode 100644 (file)
index 0000000..2634a6f
--- /dev/null
@@ -0,0 +1,21 @@
+<!dOcTyPe hTmL>
+<TITLE>Lady’s Computer</TITLE>
+<STYLE>
+html{ Color: #F3DEE3; Background: #1A1A1A }
+body{ Display: Grid; Grid-Template: Auto / Auto-Flow; Align-Content: Center; Justify-Content: Center; Box-Sizing: Border-Box; Margin: 0; Padding-Block: 1EM; Padding-Inline: 1CH; Min-Block-Size: 100SVB; Gap: 2REM; Font-Family: Serif; Font-Size: 1.5REM; Text-Align: Center }
+h1{ Margin: 0; Color: #D6B7BF; Font-Size: 3REM; Font-Style: Italic; Font-Weight: Inherit; Text-Decoration: Underline }
+nav{ Word-Spacing: 1CH }
+nav strong{ Word-Spacing: Normal }
+nav ul,nav li{ All: Unset }
+:Any-Link{ Color: #B38A96 }
+</STYLE>
+
+<H1>Lady’s Computer</H1>
+<NAV>
+       <STRONG>Available subdomains:</STRONG>
+       <UL>
+               <LI><A HRef=https://blog.ladys.computer/><CODE>blog</CODE></A>
+               <LI><A HRef=https://git.ladys.computer/><CODE>git</CODE></A>
+               <LI><STRONG><CODE>www</CODE></STRONG>
+       </UL>
+</NAV>
diff --git a/media/banner.png b/media/banner.png
new file mode 100644 (file)
index 0000000..f2d9a88
Binary files /dev/null and b/media/banner.png differ
This page took 0.0535639999999999 seconds and 4 git commands to generate.