From f137df17ac33eaa77ce177998277a6d417e6d3e4 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 6 Nov 2022 19:59:27 -0500 Subject: [PATCH] build: Add simple templating system powered by make Copying the header and footer around was proving a bit painful. This should help! --- .gitignore | 3 +++ Makefile | 15 +++++++++++++++ event.html | 57 --------------------------------------------------------- event.tmpl | 33 +++++++++++++++++++++++++++++++++ footer.html | 3 +++ header.html | 21 +++++++++++++++++++++ index.html | 46 ---------------------------------------------- index.tmpl | 22 ++++++++++++++++++++++ license.html | 48 ------------------------------------------------ license.tmpl | 25 +++++++++++++++++++++++++ registry.html | 34 ---------------------------------- registry.tmpl | 10 ++++++++++ rsvp.html | 26 -------------------------- story.html | 49 ------------------------------------------------- story.tmpl | 25 +++++++++++++++++++++++++ travel.html | 44 -------------------------------------------- travel.tmpl | 20 ++++++++++++++++++++ 17 files changed, 177 insertions(+), 304 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile delete mode 100644 event.html create mode 100644 event.tmpl create mode 100644 footer.html create mode 100644 header.html delete mode 100644 index.html create mode 100644 index.tmpl delete mode 100644 license.html create mode 100644 license.tmpl delete mode 100644 registry.html create mode 100644 registry.tmpl delete mode 100644 rsvp.html delete mode 100644 story.html create mode 100644 story.tmpl delete mode 100644 travel.html create mode 100644 travel.tmpl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..41c5d7b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.html +!footer.html +!header.html diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1b1d7f1 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +HTML != for f in *.tmpl; do echo $$(basename $$f tmpl)html; done + +.PHONY: build +build: $(HTML) + +.PHONY: clean +clean: + rm -f $(HTML) + +.SUFFIXES: .tmpl .html +.tmpl.html: + (cat header.html; cat $<; cat footer.html) > $@ + +$(HTML): header.html footer.html Makefile + diff --git a/event.html b/event.html deleted file mode 100644 index 72f5e12..0000000 --- a/event.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - - -

Alex & Jennie

-

Tie the Knot

- -

Wedding Day Events

-

- All festivities will take place at - the Endicott Estate - in Dedham, MA. See Travel for more - information. -

-
-

Ceremony

-

4:30 - 5:00pm

- -
-

- We tie the knot and say our vows! Weather pending it will take - place on the Endicott lawn. -

-
-

Cocktail Hour

-

5:00 - 6:00pm

-
-

- Grab a drink, catch up with old friends, and make some new - ones before dinner. -

-
-

Reception

-

6:00 - 10:00pm

- -
-

- There will be a plated dinner inside followed - by an evening of dancing! -

- - - diff --git a/event.tmpl b/event.tmpl new file mode 100644 index 0000000..4966310 --- /dev/null +++ b/event.tmpl @@ -0,0 +1,33 @@ +

Wedding Day Events

+

+ All festivities will take place at + the Endicott Estate + in Dedham, MA. See Travel for more + information. +

+
+

Ceremony

+

4:30 - 5:00pm

+ +
+

+ We tie the knot and say our vows! Weather pending it will take + place on the Endicott lawn. +

+
+

Cocktail Hour

+

5:00 - 6:00pm

+
+

+ Grab a drink, catch up with old friends, and make some new + ones before dinner. +

+
+

Reception

+

6:00 - 10:00pm

+ +
+

+ There will be a plated dinner inside followed + by an evening of dancing! +

diff --git a/footer.html b/footer.html new file mode 100644 index 0000000..52b332f --- /dev/null +++ b/footer.html @@ -0,0 +1,3 @@ + + + diff --git a/header.html b/header.html new file mode 100644 index 0000000..c5dec20 --- /dev/null +++ b/header.html @@ -0,0 +1,21 @@ + + + + + + + + + Alex & Jennie's Wedding + + + +

Alex & Jennie

+

Tie the Knot

+ diff --git a/index.html b/index.html deleted file mode 100644 index 40f67a9..0000000 --- a/index.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - -

Alex & Jennie

-

Tie the Knot

- - Alex and Jennie in Acadia - -

- Please join us for our wedding celebration on -

-

- September 9, 2023 -

-

- -

- - - - diff --git a/index.tmpl b/index.tmpl new file mode 100644 index 0000000..efd4fed --- /dev/null +++ b/index.tmpl @@ -0,0 +1,22 @@ +Alex and Jennie in Acadia + +

+ Please join us for our wedding celebration on +

+

+ September 9, 2023 +

+

+ +

+ diff --git a/license.html b/license.html deleted file mode 100644 index d984883..0000000 --- a/license.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - -

Alex & Jennie

-

Tie the Knot

- -

Website License

-

- Unless otherwise specified, all code for the website is - licensed under the MIT license and can be - found here. -

-

A few notable exceptions:

- - - - diff --git a/license.tmpl b/license.tmpl new file mode 100644 index 0000000..16b4610 --- /dev/null +++ b/license.tmpl @@ -0,0 +1,25 @@ +

Website License

+

+ Unless otherwise specified, all code for the website is + licensed under the MIT license and can be + found here. +

+

A few notable exceptions:

+ diff --git a/registry.html b/registry.html deleted file mode 100644 index db39d36..0000000 --- a/registry.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - - -

Alex & Jennie

-

Tie the Knot

- -

Gift Registry

-

- The only gift we ask for is your presence on our wedding - day—having our friends and family travel to spend the day with - us is more than enough! That said, if you feel strongly that - you'd like to buy us a gift, we put together a - - wedding registry at Zola - . -

- - - diff --git a/registry.tmpl b/registry.tmpl new file mode 100644 index 0000000..036fd85 --- /dev/null +++ b/registry.tmpl @@ -0,0 +1,10 @@ +

Gift Registry

+

+ The only gift we ask for is your presence on our wedding + day—having our friends and family travel to spend the day with + us is more than enough! That said, if you feel strongly that + you'd like to buy us a gift, we put together a + + wedding registry at Zola + . +

diff --git a/rsvp.html b/rsvp.html deleted file mode 100644 index 569f74e..0000000 --- a/rsvp.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - - -

Alex & Jennie

-

Tie the Knot

- -

RSVP

-

Check back soon for a form to fill out!

- - - diff --git a/story.html b/story.html deleted file mode 100644 index bd6fe61..0000000 --- a/story.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - - -

Alex & Jennie

-

Tie the Knot

- -

Our Story

-

- Alex and Jennie met in January 2017 at UMass Amherst through a - mutual friend (thanks Rachana!) at a party, but they weren't sure - if they'd see each other again. Fortunately, Rachana saw the - potential and insisted on a group date later that week. Phone - numbers were exchanged and just a day or so later they went on - their first date in a snowstorm at the Frank dining commons. The - rest is history! -

-

- After graduation they moved to Natick, MA, and as soon as a - landlord allowed it they adopted two kittens, Pulp and Meeks. - 5 years, 4 jobs, 2 appartments, and 1 pandemic later, they're - still there, supporting each other. -

-

- After many trips together that left the family guessing if "he'd - finally ask the question", Alex proposed to Jennie on August 20, - 2022 on top of Franconia Ridge in the White Mountains. It was the - exact spot they had hoped to be 4 years ago on a trip that they - ended short due to bears, a heat wave, and blisters. Back years - later and stronger than ever, she said yes! -

- Alex Proposes to Jennie - - - diff --git a/story.tmpl b/story.tmpl new file mode 100644 index 0000000..5ed49bf --- /dev/null +++ b/story.tmpl @@ -0,0 +1,25 @@ +

Our Story

+

+ Alex and Jennie met in January 2017 at UMass Amherst through a + mutual friend (thanks Rachana!) at a party, but they weren't sure + if they'd see each other again. Fortunately, Rachana saw the + potential and insisted on a group date later that week. Phone + numbers were exchanged and just a day or so later they went on + their first date in a snowstorm at the Frank dining commons. The + rest is history! +

+

+ After graduation they moved to Natick, MA, and as soon as a + landlord allowed it they adopted two kittens, Pulp and Meeks. + 5 years, 4 jobs, 2 appartments, and 1 pandemic later, they're + still there, supporting each other. +

+

+ After many trips together that left the family guessing if "he'd + finally ask the question", Alex proposed to Jennie on August 20, + 2022 on top of Franconia Ridge in the White Mountains. It was the + exact spot they had hoped to be 4 years ago on a trip that they + ended short due to bears, a heat wave, and blisters. Back years + later and stronger than ever, she said yes! +

+Alex Proposes to Jennie diff --git a/travel.html b/travel.html deleted file mode 100644 index 986b6b8..0000000 --- a/travel.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - Alex & Jennie's Wedding - - - -

Alex & Jennie

-

Tie the Knot

- -

Travel

- Alex and Jennie Roadtripping -

Wedding Venue

-

- The ceremony and reception will both be at - the Endicott Estate - in Dedham, MA: -

-

- Endicott Estate
- 656 East Street
- Dedham, Massachusetts 02026 -

-

- - Google Maps Directions. - -

-

Hotel Recommendations

-

Coming Soon

- - - diff --git a/travel.tmpl b/travel.tmpl new file mode 100644 index 0000000..a36984b --- /dev/null +++ b/travel.tmpl @@ -0,0 +1,20 @@ +

Travel

+Alex and Jennie Roadtripping +

Wedding Venue

+

+ The ceremony and reception will both be at + the Endicott Estate + in Dedham, MA: +

+

+ Endicott Estate
+ 656 East Street
+ Dedham, Massachusetts 02026 +

+

+ + Google Maps Directions. + +

+

Hotel Recommendations

+

Coming Soon

-- libgit2 1.1.1