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>
BIN
static/legacy/revcemetery/largeimages/cemetery.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
static/legacy/revcemetery/largeimages/cemetery1.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
18
static/legacy/revcemetery/largeimages/config.inc
Normal 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");
|
||||
?>
|
49
static/legacy/revcemetery/largeimages/functions.inc
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
BIN
static/legacy/revcemetery/largeimages/generated/_scaled_512.jpg
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
static/legacy/revcemetery/largeimages/generated/_scaled_640.jpg
Normal file
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 297 KiB |
After Width: | Height: | Size: 432 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 130 KiB |
After Width: | Height: | Size: 192 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 158 KiB |
After Width: | Height: | Size: 340 KiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 296 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 297 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 76 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 282 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 482 KiB |
After Width: | Height: | Size: 94 KiB |
After Width: | Height: | Size: 140 KiB |
BIN
static/legacy/revcemetery/largeimages/gunn.jpg
Normal file
After Width: | Height: | Size: 1.0 MiB |
82
static/legacy/revcemetery/largeimages/index.php
Executable 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 \n";
|
||||
} else {
|
||||
print " No picture this day.\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</body></html>
|
||||
|
||||
|
||||
|
BIN
static/legacy/revcemetery/largeimages/josephjones.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
static/legacy/revcemetery/largeimages/mary.jpg
Normal file
After Width: | Height: | Size: 573 KiB |
BIN
static/legacy/revcemetery/largeimages/maryepitaph.jpg
Normal file
After Width: | Height: | Size: 379 KiB |
BIN
static/legacy/revcemetery/largeimages/maryfamily.jpg
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
static/legacy/revcemetery/largeimages/maryhusband.jpg
Normal file
After Width: | Height: | Size: 889 KiB |
BIN
static/legacy/revcemetery/largeimages/marypoem.jpg
Normal file
After Width: | Height: | Size: 413 KiB |
BIN
static/legacy/revcemetery/largeimages/mcdermott.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
static/legacy/revcemetery/largeimages/mcdermottfamily.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
static/legacy/revcemetery/largeimages/pierce1.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
static/legacy/revcemetery/largeimages/pierce2.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
static/legacy/revcemetery/largeimages/pierce3.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
static/legacy/revcemetery/largeimages/pierce4.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
static/legacy/revcemetery/largeimages/thompson.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
static/legacy/revcemetery/largeimages/tomlinson.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |