PaleoFood: Processing Notes
Adding Recipes
- Add to the bottom of Recipes.txt. Processing will sort the database.
- You can use the facility on the Dashboard to reduce title to recipe filename.
- Remove any carriage returns within the recipe text. The browser will wrap the lines.
- Rarely will you need to add HTML to a table. See previous entries to follow.
- Add to Table of Contents.
- If you have a picture:
- Add image to the pictures folder, name with chapter-recipe name and with an -f as a suffix.
- If webp, change to jpg with estimated quality.
- Resize the image to a max of 384 in either axis. Save as Estimated quality and remove the -f
- Click Photo Credits button on Dashboard
- Add entry at bottom. Name is same as picture.
- Press Process All. Sitemap will be rebuilt automatically.
- Run SmartSync profile to update web host.
Editing Ads
The ad system is controlled by two normalized tables, which have links to click on the Dashboard:
- AmazonAds.txt has the HTML code for each ad entry
- AdUsage.txt lists which ads go with each chapter. It is comma delimited. The first in each row is the chapter name. Chapters do not have to have ads.
And two buttons:
- One button sorts the ad database, so you can simply add new to the end.
- The other updates only the All Amazon Ads page in a second, so you can see and tweak your entries before processing the entire site.
Always save thumbnails at 100% quality. This allows one to pad the sides with no loss in quality
Generally thumbnails have a maximum height of 200 pixels. But it really depends on how it will fit on the page alongside the other ads. And how the image fits under the text. The image can be padded or sized to the text width. To find: Press Alt-Print Screen. Then paste into IrfanView. Draw a rectangle around the text and note the width.
When removing an ad, or resizing a thumbnail, try to delete all previous images.
Moving Recipes to a New Chapter [Not tested]
If moving within the chapter, you simply move the recipe in the chapter's table of contents.
The Dashboard button macro does the following:
- You change by hand in the Table of Contents. Only you know where it goes.
- Change name in RecipeData.txt
- Change name in DateAdded.txt
- Change any photo credit
- Add permanent redirect record in .htaccess
- Delete old recipe from my folder