From 0fa0fdebf092fb1eeb08644014d0dc57ff486e49 Mon Sep 17 00:00:00 2001 From: ​ Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: site generation --- 404.html | 2 +- README | 14 +++++------ e/index.html | 2 +- e/m.htm | 24 +------------------ gen | 18 ++++++++++++++ gh/index.html | 2 +- gh/m.htm | 25 +------------------- gh/w/index.html | 2 +- gh/w/m.htm | 25 +------------------- gh/wf/index.html | 2 +- gh/wf/m.htm | 25 +------------------- h/index.html | 2 +- h/m.htm | 25 ++------------------ index.html | 2 +- m.htm | 40 +++++++------------------------ p/index.html | 2 +- p/m.htm | 27 +++------------------ w/index.html | 2 +- w/m.htm | 71 ++++++++++++++++++++------------------------------------ wf/m.htm | 25 ++------------------ 20 files changed, 79 insertions(+), 258 deletions(-) create mode 100755 gen diff --git a/404.html b/404.html index ff4d260..39e3817 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -Error
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

ENOENT

Redirecting in 5s

Made by PORTER SWANSTROM

\ No newline at end of file +Error
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

ENOENT

Redirecting in 5s

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/README b/README index c31bca2..93b45b3 100644 --- a/README +++ b/README @@ -16,13 +16,13 @@ It's turned out to be a fantastic excuse to learn HTML, CSS, and Git 2024/10/16 -There's now sitemap navigation which makes jumping to a -specific page easy, it also works great for documenting the -purpose of each page. I also added a photo of myself to the -header, making it less plain/empty looking. The header photo -also works great as a favicon. Another thing I did was adding -backgrounds, one for dark mode and one for light mode. I'm -not sure how long I'll end up keeping the backgrounds, but +There's now sitemap navigation which is nice for jumping to +a specific page, it's also great for documenting the purpose +of each page. I also added a photo of myself to the header, +making it less empty looking. The header photo also works +good as a favicon. Another thing I did was adding background +images, one for dark mode and one for light mode. I'm not +sure how long I'll end up keeping the backgrounds, but they're fun for the time being 2024/06/15 diff --git a/e/index.html b/e/index.html index 57ea404..c8c0b26 100644 --- a/e/index.html +++ b/e/index.html @@ -1 +1 @@ -Error
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

ENOENT

Redirecting in 5s

Made by PORTER SWANSTROM

\ No newline at end of file +Error
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

ENOENT

Redirecting in 5s

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/e/m.htm b/e/m.htm index 23e2d37..c6cc464 100644 --- a/e/m.htm +++ b/e/m.htm @@ -1,25 +1,3 @@ - - - - - - -Error -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Error,../,../h

ENOENT

Redirecting in 5s

- -
-

Made by PORTER SWANSTROM

-
diff --git a/gen b/gen new file mode 100755 index 0000000..16a79fa --- /dev/null +++ b/gen @@ -0,0 +1,18 @@ +#!/usr/bin/env sh +# generate site +find -name "m.htm" -exec sh -c ' + title=$(head -n1 ${1%/*}/m.htm | cut -d, -f1) + subdir=$(head -n1 ${1%/*}/m.htm | cut -d, -f2) + redirect=$(head -n1 ${1%/*}/m.htm | cut -d, -f3) + (cat h.htm; tail -n+2 ${1%/*}/m.htm; cat f.htm) >${1%/*}/index.html + sed -i "s,,<title>$title," ${1%/*}/index.html + sed -i "s,href=\"//,href=\"http://,g" ${1%/*}/index.html + sed -i "s,href=\"/,href=\"$subdir,g" ${1%/*}/index.html + sed -i "s,src=\"/,src=\"$subdir,g" ${1%/*}/index.html + sed -zi "s,\n,,g" ${1%/*}/index.html + if [ "$(head -n1 ${1%/*}/m.htm | tr -cd ",")" = ",," ]; + then + sed -i "s,8\",8\"\ \/\>\<meta\ http-equiv=\"refresh\"\ content=\"0\;url=$redirect\"," ${1%/*}/index.html + fi +' sh {} \; +sed "s/\.\.\///g" e/index.html >404.html diff --git a/gh/index.html b/gh/index.html index 075d519..b00ef70 100644 --- a/gh/index.html +++ b/gh/index.html @@ -1 +1 @@ -<!doctype html><html lang="en"><head><meta http-equiv="content-type" content="text/html;charset=utf-8" /><meta http-equiv="refresh" content="0;url='http://github.com/porterswanstrom'" /><meta name="viewport" content="width=device-width,initial-scale=1" /><link rel="stylesheet" type="text/css" href="../s/m.css" /><link rel="icon" type="image/png" href="../i/me.png" /><title>Redirecting
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

Redirecting

http://github.com/porterswanstrom

Made by PORTER SWANSTROM

\ No newline at end of file +Redirecting
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

Redirecting

http://github.com/porterswanstrom

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/gh/m.htm b/gh/m.htm index 1a71e91..12ba533 100644 --- a/gh/m.htm +++ b/gh/m.htm @@ -1,27 +1,4 @@ - - - - - - -Redirecting -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Redirecting,../,http://github.com/porterswanstrom

Redirecting

http://github.com/porterswanstrom - -
-

Made by PORTER SWANSTROM

-
diff --git a/gh/w/index.html b/gh/w/index.html index 229f4f0..0deeb9b 100644 --- a/gh/w/index.html +++ b/gh/w/index.html @@ -1 +1 @@ -Redirecting
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

Redirecting

http://github.com/porterswanstrom/w

Made by PORTER SWANSTROM

\ No newline at end of file +Redirecting
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

Redirecting

http://github.com/porterswanstrom/w

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/gh/w/m.htm b/gh/w/m.htm index 5fd7666..03018e6 100644 --- a/gh/w/m.htm +++ b/gh/w/m.htm @@ -1,27 +1,4 @@ - - - - - - -Redirecting -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Redirecting,../../,http://github.com/porterswanstrom/w

Redirecting

http://github.com/porterswanstrom/w - -
-

Made by PORTER SWANSTROM

-
diff --git a/gh/wf/index.html b/gh/wf/index.html index fe5bce2..9ffb209 100644 --- a/gh/wf/index.html +++ b/gh/wf/index.html @@ -1 +1 @@ -Redirecting
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

Redirecting

http://github.com/porterswanstrom/wf

Made by PORTER SWANSTROM

\ No newline at end of file +Redirecting
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

Redirecting

http://github.com/porterswanstrom/wf

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/gh/wf/m.htm b/gh/wf/m.htm index 1e3e899..456a5de 100644 --- a/gh/wf/m.htm +++ b/gh/wf/m.htm @@ -1,27 +1,4 @@ - - - - - - -Redirecting -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Redirecting,../../,http://github.com/porterswanstrom/wf

Redirecting

http://github.com/porterswanstrom/wf - -
-

Made by PORTER SWANSTROM

-
diff --git a/h/index.html b/h/index.html index b571d9a..bbe08a0 100644 --- a/h/index.html +++ b/h/index.html @@ -1 +1 @@ -Home
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

This site is currently still being built, read the log to see what's been done so far

Made by PORTER SWANSTROM

\ No newline at end of file +Home
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

This site is currently still being built, read the log to see what's been done so far

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/h/m.htm b/h/m.htm index 4f4ada3..2462d82 100644 --- a/h/m.htm +++ b/h/m.htm @@ -1,24 +1,3 @@ - - - - - -Home -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Home,../

This site is currently still being built, read the - log to see what's been done so far

- -
-

Made by PORTER SWANSTROM

-
+ log to see what's been done so far

diff --git a/index.html b/index.html index 857cc15..cdbe45e 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Home
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

INDEX

Made by PORTER SWANSTROM

\ No newline at end of file +Index
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

INDEX

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/m.htm b/m.htm index 4991cb6..f3159cd 100644 --- a/m.htm +++ b/m.htm @@ -1,37 +1,15 @@ - - - - - - -Home -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Index,./,h

INDEX

- -
-

Made by PORTER SWANSTROM

-
diff --git a/p/index.html b/p/index.html index 68d6567..183c64a 100644 --- a/p/index.html +++ b/p/index.html @@ -1 +1 @@ -Projects
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

PROJECTS

w (HTML, CSS)
Website

wf (C#)
WinForms

Made by PORTER SWANSTROM

\ No newline at end of file +Projects
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

PROJECTS

w (HTML, CSS)
Website

wf (C#)
WinForms

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/p/m.htm b/p/m.htm index 72f0408..2a83213 100644 --- a/p/m.htm +++ b/p/m.htm @@ -1,25 +1,4 @@ - - - - - -Projects -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Projects,../

PROJECTS

-

w (HTML, CSS)
Website

-

wf (C#)
WinForms

- -
-

Made by PORTER SWANSTROM

-
+

w (HTML, CSS)
Website

+

wf (C#)
WinForms

diff --git a/w/index.html b/w/index.html index 39b9a35..1bad6a3 100644 --- a/w/index.html +++ b/w/index.html @@ -1 +1 @@ -Website
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

NAV

WHY

This site started as something interesting for me to work on during my break after the fall semester of 2024 ended. It's turned out to be a fantastic excuse to learn HTML, CSS, and Git

LOG

2024/10/16

There's now sitemap navigation which makes jumping to a specific page easy, it also works great for documenting the purpose of each page. I also added a photo of myself to the header, making it less plain/empty looking. The header photo also works great as a favicon. Another thing I did was adding backgrounds, one for dark mode and one for light mode. I'm not sure how long I'll end up keeping the backgrounds, but they're fun for the time being

2024/06/15

I redid the header and made the CSS look nicer. There's also been lots of minor improvements like having newlines in the correct spots and lots of rewording. This site is now in a fairly stable state, so most important changes will be from either adding new pages or totally redesigning something

2024/03/25

Every page has been moved to its own directory so that this site can use URL slugs without relying on a framework or web server. Now the URL of every page looks much cleaner. There is also an error page now so when someone tries going to a page that doesn't exist like this one, they're sent to an error page and then redirected to the homepage page after a few seconds

2024/02/04

There's now a page for the various WinForms that I've made throughout my classes in college. I also changed this site's theme quite a bit since the last log

2023/12/31

I got the domain name porterswanstrom.com and created two A records, one for plain porterswanstrom.com and another for w.porterswanstrom.com. the latter is setup to auto-redeploy everytime a change is made to this site, so that the changes can be tested before being deployed to porterswanstrom.com

2023/12/18

I figured out how to get the spacing and font size to work right on mobile, so now this site looks great on mobile

2023/12/13

I designed a light mode for this site and added CSS to set the theme depending on whether someone is using dark mode or light mode

2023/12/10

This site has some color now, it's currently dark mode with green links, a lot of redish orange headers, and a few purple headers

2023/12/09

I started this site on the 6th and so far the only pages are the homepage, projects page, and about page. I also started to add some basic CSS and successfully got a working header and footer

GET

The source code is here, get it with:

git clone http://github.com/porterswanstrom/w

Made by PORTER SWANSTROM

\ No newline at end of file +Website
photo of myself

Porter Swanstrom


HOME : PROJECTS : ABOUT

NAV

WHY

This site started as something interesting for me to work on during my break after the Fall 2023 semester ended. It's turned out to be a fantastic excuse to learn HTML, CSS, and Git

LOG

2024/10/16

There's now sitemap navigation which is nice for jumping to a specific page, it's also great for documenting the purpose of each page. I also added a photo of myself to the header, making it less empty looking. The header photo also works good as a favicon. Another thing I did was adding background images, one for dark mode and one for light mode. I'm not sure how long I'll end up keeping the backgrounds, but they're fun for the time being

2024/06/15

I redid the header and made the CSS look nicer. There's also been lots of minor improvements like having newlines in the correct spots and lots of rewording. This site is now in a fairly stable state, so most important changes will be from either adding new pages or totally redesigning something

2024/03/25

Every page has been moved to its own directory so that this site can use URL slugs without relying on a framework or web server. Now the URL of every page looks much cleaner. There is also an error page now so when someone tries going to a page that doesn't exist like this one, they're sent to an error page and then redirected to the homepage page after a few seconds

2024/02/04

There's now a page for the various WinForms that I've made throughout my classes in college. I also changed this site's theme quite a bit since the last log

2023/12/31

I got the domain name porterswanstrom.com and created two A records, one for plain porterswanstrom.com and another for w.porterswanstrom.com. the latter is setup to auto-redeploy everytime a change is made to this site, so that the changes can be tested before being deployed to porterswanstrom.com

2023/12/18

I figured out how to get the spacing and font size to work right on mobile, so now this site looks great on mobile

2023/12/13

I designed a light mode for this site and added CSS to set the theme depending on whether someone is using dark mode or light mode

2023/12/10

This site has some color now, it's currently dark mode with green links, a lot of redish orange headers, and a few purple headers

2023/12/09

I started this site on the 6th and so far the only pages are the homepage, projects page, and about page. I also started to add some basic CSS and successfully got a working header and footer

GET

The source code is here, get it with:

git clone http://github.com/porterswanstrom/w

Made by PORTER SWANSTROM

\ No newline at end of file diff --git a/w/m.htm b/w/m.htm index 316c748..d64771f 100644 --- a/w/m.htm +++ b/w/m.htm @@ -1,51 +1,34 @@ - - - - - -Website -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +Website,../

NAV

WHY

This site started as something interesting for me to work - on during my break after the fall semester of 2024 ended. - It's turned out to be a fantastic excuse to learn HTML, CSS, - and Git

+ on during my break after the Fall 2023 semester ended. It's + turned out to be a fantastic excuse to learn HTML, CSS, and + Git

LOG

2024/10/16

-

There's now sitemap navigation which makes jumping to a - specific page easy, it also works great for documenting the - purpose of each page. I also added a photo of myself to the - header, making it less plain/empty looking. The header photo - also works great as a favicon. Another thing I did was adding - backgrounds, one for dark mode and one for light mode. I'm - not sure how long I'll end up keeping the backgrounds, but +

There's now sitemap navigation which is nice for jumping to + a specific page, it's also great for documenting the purpose + of each page. I also added a photo of myself to the header, + making it less empty looking. The header photo also works + good as a favicon. Another thing I did was adding background + images, one for dark mode and one for light mode. I'm not + sure how long I'll end up keeping the backgrounds, but they're fun for the time being

2024/06/15

@@ -60,14 +43,14 @@

Every page has been moved to its own directory so that this site can use URL slugs without relying on a framework or web server. Now the URL of every page looks much cleaner. - There is also an error page now so when + There is also an error page now so when someone tries going to a page that doesn't exist like - this one, they're sent to an - error page and then redirected to the + this one, they're sent to an + error page and then redirected to the homepage page after a few seconds

2024/02/04

-

There's now a page for the various +

There's now a page for the various WinForms that I've made throughout my classes in college. I also changed this site's theme quite a bit since the last log

@@ -95,17 +78,13 @@

2023/12/09

I started this site on the 6th and so far the only pages - are the homepage, + are the homepage, projects page, and about page. I also started to add some basic CSS and successfully got a working header and footer

GET

-

The source code is here, +

The source code is here, get it with:

 git clone http://github.com/porterswanstrom/w
 
- -
-

Made by PORTER SWANSTROM

-
diff --git a/wf/m.htm b/wf/m.htm index c049c39..9da6d82 100644 --- a/wf/m.htm +++ b/wf/m.htm @@ -1,21 +1,4 @@ - - - - - -WinForms -
- -photo of myself -

Porter Swanstrom


- HOME : - PROJECTS : - ABOUT - -
- +WinForms,../

WHY

This project is for archiving the various WinForms that I've made while in college. None of these are complex, but @@ -32,10 +15,6 @@ paragraphs, headers, and non-inline links

GET

-

The source code is +

The source code is here, get it with:

 git clone http://github.com/porterswanstrom/wf
- -
-

Made by PORTER SWANSTROM

-
-- cgit 1.4.1