Skip to content

Releases

Simple Website Framework v1.1.5

Choose a tag to compare

@ScarylePoo ScarylePoo released this 23 Oct 00:39

Security release. Fixes a stored XSS via the HTML cache (a crafted URL could poison the cached copy of a page for all visitors), gates the [php] shortcode behind $allowPhpShortcode (default off), stops unbounded cache-file creation and a 500 from a non-numeric ?page, fixes cache-name collisions between same-named pages in different folders, validates pagelayout, and tightens the CSP. All sites with HTML caching on should upgrade.

Added upgrade available notice to editor.
New site: download swf-install-v1.1.5.zip, unzip it into your web root, copy config/config-example.php to config/config.php and set your domain. INSTALL.txt inside has the steps.

Upgrading: download swf-upgrade-v1.1.5.zip and unzip it over your existing site, replacing files. It never touches pages/, images/, config/config.php, robots.txt or your .htaccess. UPGRADE.txt inside has the details, including anything to copy across from .htaccess.dist.

Full Changelog: v1.1.4...v1.1.5

Simple Website Framework v1.1.4

Choose a tag to compare

@ScarylePoo ScarylePoo released this 22 Oct 08:30

Fixed a small bug with RSS and Sitemap generation
New site: download swf-install-v1.1.4.zip, unzip it into your web root, copy config/config-example.php to config/config.php and set your domain. INSTALL.txt inside has the steps.

Upgrading: download swf-upgrade-v1.1.4.zip and unzip it over your existing site, replacing files. It never touches pages/, images/, config/config.php, robots.txt or your .htaccess. UPGRADE.txt inside has the details, including anything to copy across from .htaccess.dist.

Full Changelog: v1.1.3...v1.1.4

Simple Website Framework v1.1.3

Choose a tag to compare

@ScarylePoo ScarylePoo released this 22 Oct 08:03

Simple Website Framework 1.1.3

Drafts. Every save now has a Save as draft alternative. A new page saved as a draft is unpublished: visitors get a 404, it stays out of archives, category pages and the feed, and it shows in the editor with a Draft badge until you Publish. Draft changes to a live page leave the live page untouched until you publish or discard them. You can view a draft at its real address while logged in. (Drafts are pages/<name>.html.draft files; nothing public looks for that extension, so no theme needs to know.)

Unsaved work is recovered. The editor keeps what you're typing in your browser's storage; close the tab or time out and reopening the page offers to restore it.

RSS, properly. Feed autodiscovery tags on every page — the site feed plus one per category, generated from the categories that exist, with the current category first on category pages — so feed readers find your feeds again. A [feeds] shortcode lists them for people. Items now carry the full post ($rssFullContent = false for excerpts), a permalink guid, author, categories and correct enclosure sizes; relative image URLs are absolute; entities aren't double-encoded; capped at $rssMaxItems (50).

Sitemap. /sitemap.xml generated from live pages, advertised in robots.txt. <!-- sitemap: no --> keeps a page out.

Editor fixes. A post is now always created under posts/ and its address is made from the title, so the "post saved as a page called /posts" accident can't happen; the "already exists" error names the file and links to it. Every editor response is Cache-Control: no-store, so host page caches can't serve a stale editor or a stale 404. The editor warns when the active theme's templates bypass swf_page_source() (which made previews show the saved page instead of the draft).

Backups. Archive names now include the site's domain (swf-example.com-content-…zip).

Housekeeping. .gitignore fixed (totp-used.json and build/ weren't ignored); lockouts.json untracked. Starter theme bundle refreshed.

Upgrading: unzip swf-upgrade-v1.1.3.zip over the site. Then check .htaccess against .htaccess.dist — this release adds two rules (sitemap.xml and .draft), listed in UPGRADE.txt — and add Sitemap: /sitemap.xml to robots.txt. Custom themes: one line in header.php enables feed autodiscovery; see the RSS documentation page.
New site: download swf-install-v1.1.3.zip, unzip it into your web root, copy config/config-example.php to config/config.php and set your domain. INSTALL.txt inside has the steps.

Upgrading: download swf-upgrade-v1.1.3.zip and unzip it over your existing site, replacing files. It never touches pages/, images/, config/config.php, robots.txt or your .htaccess. UPGRADE.txt inside has the details, including anything to copy across from .htaccess.dist.

Full Changelog: v1.1.2...v1.1.3

Simple Website Framework v1.1.2

Choose a tag to compare

@ScarylePoo ScarylePoo released this 22 Oct 05:11

Attempting to get the version in sync
New site: download swf-install-v1.1.2.zip, unzip it into your web root, copy config/config-example.php to config/config.php and set your domain. INSTALL.txt inside has the steps.

Upgrading: download swf-upgrade-v1.1.2.zip and unzip it over your existing site, replacing files. It never touches pages/, images/, config/config.php, robots.txt or your .htaccess. UPGRADE.txt inside has the details, including anything to copy across from .htaccess.dist.

Full Changelog: v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@ScarylePoo ScarylePoo released this 22 Oct 05:10
6c22bbb

Bump release to v1.1.1 now that version.php and workflows rely on them to be in sync

Simple Website Framework v1.1.0

Choose a tag to compare

@ScarylePoo ScarylePoo released this 22 Oct 01:58
3d97252

v1.1.0

New: page versions with history, diff and restore; delete-to-trash for pages and files; site backups (content and full) from the editor, from cron, and automatically once a week on save; file uploads with a Files screen and a picker in the editor. Upgrading from 1.0.0: add the two .htaccess rules listed in UPGRADE.txt, and if you use the editor, make sure backups/ can be created (or set $backupDir).
New site: download swf-install-v1.1.0.zip, unzip it into your web root, copy config/config-example.php to config/config.php and set your domain. INSTALL.txt inside has the steps.

Upgrading: download swf-upgrade-v1.1.0.zip and unzip it over your existing site, replacing files. It never touches pages/, images/, config/config.php, robots.txt or your .htaccess. UPGRADE.txt inside has the details, including anything to copy across from .htaccess.dist.

Full Changelog: v1.0.0...v1.1.0

Simple Website Framework v1.0.0

Choose a tag to compare

@ScarylePoo ScarylePoo released this 21 Oct 01:37
81487e5

v1.0.0

If you had an install before the standalone editor, you will need to update your .htaccess file.
New site: download swf-install-v1.0.0.zip, unzip it into your web root, copy config/config-example.php to config/config.php and set your domain. INSTALL.txt inside has the steps.

Upgrading: download swf-upgrade-v1.0.0.zip and unzip it over your existing site, replacing files. It never touches pages/, images/, config/config.php, robots.txt or your .htaccess. UPGRADE.txt inside has the details, including anything to copy across from .htaccess.dist.

What's Changed

  • Standalone editor at /edit/ with live-theme preview by @ScarylePoo in #1

New Contributors

Full Changelog: https://github.com/ScarylePoo/simple-website-framework/commits/v1.0.0