Import WordPress posts and migrate standalone content to Hugo

- Successfully imported 1731 WordPress posts to Hugo markdown format
- Migrated 204+ images from archive to static directory
- Copied standalone directories (curtain, farm, gobbler, house, images, party, revcemetery, railsday, birthday)
- Fixed all internal links to use /legacy prefix for archived content
- Remapped archive links to point to correct Hugo posts
- Fixed Louisville Georgia Cemetery post rendering issue

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Eric Wagoner
2025-09-23 16:23:40 -04:00
parent c1b41472ac
commit eddd9d2a80
2423 changed files with 36062 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -0,0 +1,18 @@
<?
## ImageTool can either be "gd" or "im" (ImageMagick)
## ImageMagick does better quality scaling but may be
## slower on some machines. Take your pick
$version = "2.0pre1";
$ImageTool = "im";
$convert = "/usr/local/bin/convert";
$pix_base = ".";
$dyn_base = "generated";
## EXIF Support requires PHP4 with exif support compiled
$show_exif = 0;
$items_per_page = 20;
$display_cols = 4;
$default_size = 512;
$thumb_size = 128;
$thumb_border = 2;
$viewsizes = array(512,640,800,1024,1280,"Original");
?>

View File

@@ -0,0 +1,49 @@
<?
function CreateImage($size,$source,$dest,$border=0) {
$sourcedate = 0;
$destdate = 0;
global $convert;
if (file_exists($dest)) {
clearstatcache();
$sourceinfo = stat($source);
$destinfo = stat($dest);
$sourcedate = $sourceinfo[10];
$destdate = $destinfo[10];
}
if (!file_exists("$dest") or ($sourcedate > $destdate)) {
global $ImageTool;
$imgsize = GetImageSize($source);
$width = $imgsize[0];
$height = $imgsize[1];
$new_width = $size;
$new_height = ceil($size * $height / $width);
if ($ImageTool == "gd") {
$im = ImageCreateFromJPEG($source);
$new_im = ImageCreate($new_width,$new_height);
ImageCopyResized($new_im,$im,0,0,0,0,$new_width,$new_height,ImageSX($im),ImageSY($im));
ImageJPEG($new_im,$dest,75);
} elseif ($ImageTool == "im") {
system("$convert -quality 80 -antialias -sample $new_width" . "x" . "$new_height \"$source\" \"$dest\" 2>&1");
}
}
}
function checkDir($pathname) {
$darray = split("/",$pathname);
for ($x = 1; $x < sizeof($darray); $x++) {
$checkdir = '';
for($y = 1; $y <= $x; $y++) {
$checkdir .= "/" . $darray[$y];
}
if (file_exists($checkdir)) {
} else {
mkdir($checkdir,0755);
}
}
}
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@@ -0,0 +1,82 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Revolutionary War Cemetery -- Louisville, Georgia</title>
<link rel="stylesheet" href="http://www.ericwagoner.com/weblog/styles-site.css" type="text/css" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</HEAD>
<body>
<?
include("config.inc");
include("functions.inc");
$version = "2.0.2";
preg_match("/(.*\/).*$/",$SCRIPT_FILENAME,$matches);
$realbase = $matches[1] . $pix_base;
$dynbase = $matches[1] . $dyn_base;
$imgbase = dirname($SCRIPT_NAME);
$image = $_GET["image"];
$dispsize = $_GET["dispsize"];
($imgbase == '/') and $imgbase = '';
if ($dispsize == '') $dispsize = $default_size;
if (preg_match("/\.\./",$pic) or preg_match("/\.\./",$album)) {
print "Please refrain from trying to access unauthorized files in this manner.<br>";
print "Have a nice day.";
} else if ($mode == 'home' or $mode == '') {
clearstatcache();
$sourcefile = "$realbase/$image.jpg";
$srcsize = GetImageSize("$sourcefile");
if ($dispsize >= $srcsize[0]) {
$dispsize = "Original";
}
if ($dispsize == 'Original') {
$viewfile = "$realbase/$image.jpg";
$viewpic = "$image.jpg";
$imgsrc = "/$pix_base/$viewpic";
} else {
$viewpic = $image . "_scaled_$dispsize.jpg";
$viewfile = "$dynbase/$viewpic";
$imgsrc = "/$dyn_base/$viewpic";
}
if (!file_exists($viewfile)) {
createImage($dispsize,$sourcefile,$viewfile);
}
$viewsize = GetImageSize("$viewfile");
$sourcefile = "$realbase/$image.jpg";
print " <IMG hspace=3 vspace=3 $thumbsize[3] BORDER=0 SRC=\"" . $imgbase . "$imgsrc\">\n";
print " <FORM METHOD=GET>\n";
print " Resize the image here: \n";
print " <SELECT onChange='submit();' name=dispsize>\n";
while (list($foo,$dsize) = each($viewsizes)) {
if ($dsize < $srcsize[0] or $dsize == 'Original') {
print " <OPTION VALUE=$dsize";
$dsize == $dispsize and print " SELECTED";
if ($dsize == "Original") {
print ">Original\n";
} else {
print ">$dsize";
print "x";
print ceil($dsize * $srcsize[1] / $srcsize[0]);
print "\n";
}
}
}
print " <input type=hidden name=image value=\"$image\">\n";
print " <br>(Original Photo Size = $srcsize[0]x$srcsize[1])\n </FORM>\n";
print " </td>\n <td>\n &nbsp;\n";
} else {
print " No picture this day.\n";
}
?>
</body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 889 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB