Skip to content

Commit d0bd9e6

Browse files
authored
Merge pull request #23 from williln/squarespace
Add Squarespace directory and a TIL on exporting your squarespace site
2 parents 8194e74 + 660ae84 commit d0bd9e6

File tree

4 files changed

+87
-64
lines changed

4 files changed

+87
-64
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
python3 scripts/build_subdir_toc.py slack
6767
python3 scripts/build_subdir_toc.py sphinx
6868
python3 scripts/build_subdir_toc.py stripe
69+
python3 scripts/build_subdir_toc.py squarespace
6970
python3 scripts/build_subdir_toc.py terraform
7071
python3 scripts/build_subdir_toc.py wagtail
7172
- name: Commit and push if anything changed

justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ build-internal-readmes:
3333
python3 scripts/build_subdir_toc.py slack
3434
python3 scripts/build_subdir_toc.py sphinx
3535
python3 scripts/build_subdir_toc.py stripe
36+
python3 scripts/build_subdir_toc.py squarespace
3637
python3 scripts/build_subdir_toc.py terraform
3738
python3 scripts/build_subdir_toc.py wagtail

seo-ecommerce.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

squarespace/export-to-xml.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Export Your Squarespace Site to XML
2+
3+
## Links
4+
5+
- [Squarespace: Exporting your site](https://support.squarespace.com/hc/en-us/articles/206566687-Exporting-your-site)
6+
- Your Squarespace import-export panel: `https://<your-site>.squarespace.com/config/settings/website/import-export`
7+
8+
## How to export your Squarespace site to XML
9+
10+
Note:
11+
12+
- You can only export one "blog" type at a time
13+
- It doesn't allow you to export in a format other than Wordpress, but Squarespace's docs say you don't have to import it into Wordpress. Whatever that means. I guess we'll see.
14+
15+
16+
1. In the **Import & Export Content** page of your website settings, select **Export**
17+
2. Select **Wordpress** (which as of April was your only option)
18+
3. Confirm. You will now see your download processing.
19+
4. When your download is ready, select **Download**
20+
5. Select your save location. What saves will be an XML file.
21+
22+
## Sample output
23+
24+
```xml
25+
<?xml version="1.0" encoding="UTF-8"?>
26+
<rss xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/1.2/">
27+
<channel>
28+
<title>Lacey Henschel</title>
29+
<link>https://www.mywebsite.com</link>
30+
<pubDate>Mon, 06 Feb 2017 03:46:14 +0000</pubDate>
31+
<description />
32+
<language>en-US</language>
33+
<wp:wxr_version>1.2</wp:wxr_version>
34+
<wp:author>
35+
<wp:author_id>966804475</wp:author_id>
36+
<wp:author_login>[email protected]</wp:author_login>
37+
<wp:author_email>[email protected]</wp:author_email>
38+
<wp:author_display_name><![CDATA[Lacey Henschel]]></wp:author_display_name>
39+
<wp:author_first_name><![CDATA[Lacey]]></wp:author_first_name>
40+
<wp:author_last_name><![CDATA[Henschel]]></wp:author_last_name>
41+
</wp:author>
42+
<wp:category>
43+
<wp:cat_name><![CDATA[Personal - null]]></wp:cat_name>
44+
<wp:category_nicename>Personal-null</wp:category_nicename>
45+
<wp:category_parent />
46+
</wp:category>
47+
<item>
48+
<link>/about</link>
49+
<title>About Lacey</title>
50+
<pubDate>Tue, 13 Nov 2018 16:57:45 +0000</pubDate>
51+
<content:encoded><![CDATA[<div class="sqs-html-content">
52+
<h1 style="white-space: pre-wrap;">Hi there! I’m Lacey.</h1><p style="white-space: pre-wrap;">Here is more data about me.</p>
53+
</div>
54+
</content:encoded>
55+
56+
<item>
57+
<title>A blog post title </title>
58+
<link>/path/to/post</link>
59+
<content:encoded><![CDATA[<div class="sqs-html-content">
60+
<p class="" style="white-space:pre-wrap;">Here is some blog content! </p>
61+
</div>]]></content:encoded>
62+
<excerpt:encoded />
63+
<wp:post_name>path/to/post</wp:post_name>
64+
<wp:post_type>post</wp:post_type>
65+
<wp:post_id>3</wp:post_id>
66+
<wp:status>publish</wp:status>
67+
<pubDate>Fri, 13 Jan 2023 19:16:18 +0000</pubDate>
68+
<wp:post_date>2023-01-13 19:16:18</wp:post_date>
69+
<wp:post_date_gmt>2023-01-13 19:16:18</wp:post_date_gmt>
70+
<category domain="post_tag" nicename="tag-1"><![CDATA[weeknotes]]></category>
71+
<category domain="post_tag" nicename="tag-2"><![CDATA[art]]></category>
72+
<dc:creator>[email protected]</dc:creator>
73+
<wp:comment_status>closed</wp:comment_status>
74+
</item>
75+
</channell>
76+
</rss>
77+
```
78+
79+
This is a heavily redacted and thinned version of what exported for me, and I don't have that many blog posts for how old my blog is -- I'm a very inconsistent blogger.
80+
81+
## Goals
82+
83+
I think I finally want to move my blog off Squarespace and into mkdocs or Wagtail or something else. Not sure. At the very least, I want to convert what is there to a more useful format and have it stored somewhere I can attach version control to it.
84+
85+
Now I have this XML copy of my site and we're going to figure out what to do next with it.

0 commit comments

Comments
 (0)