repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
b6ddfe5
parent
a29639c
author
Eric Bower
date
2024-01-02 02:47:12 +0000 UTC
docs(prose): promote `sftp`
2 files changed,  +43, -4
M prose/html/help.page.tmpl
+22, -1
 1@@ -141,8 +141,24 @@ date: 2022-06-28
 2             <a href="#post-delete" rel="nofollow noopener">#</a>
 3             How do I delete a post?
 4         </h2>
 5+
 6+        <h3 class="text-lg">
 7+          <a href="#post-delete-sftp" rel="nofollow noopener">#</a>
 8+          sftp
 9+        </h3>
10+
11+        <p>There are three ways to delete posts: <code>sftp</code>, upload a 0-byte file, or use our CMS.</p>
12+
13+        <pre>sftp {{.Site.Domain}}
14+sftp> rm delete.md</pre>
15+
16+        <h3 class="text-lg">
17+          <a href="#post-delete-0-byte-file" rel="nofollow noopener">#</a>
18+          0-byte file
19+        </h3>
20+
21         <p>
22-            Because <code>scp</code> does not natively support deleting files, I didn't want to bake
23+            Because <code>scp</code> does not natively support deleting files, we didn't want to bake
24             that behavior into my ssh server.
25         </p>
26 
27@@ -156,6 +172,11 @@ date: 2022-06-28
28 cp /dev/null delete.md
29 scp ./delete.md {{.Site.Domain}}:/</pre>
30 
31+        <h3 class="text-lg">
32+          <a href="#post-delete-cms" rel="nofollow noopener">#</a>
33+          CMS
34+        </h3>
35+
36         <p>
37             Alternatively, you can go to <code>ssh {{.Site.Domain}}</code> and select "Manage posts."
38             Then you can highlight the post you want to delete and then press "X."  It will ask for
M prose/html/marketing.page.tmpl
+21, -3
 1@@ -83,7 +83,7 @@ title: hello world!
 2 ---
 3 
 4         ![profile pic](/profile.jpg)</pre>
 5-        <pre>scp ~/blog/hello-world.md ~/blog/profile.jpg {{.Site.Domain}}:/</pre>
 6+        <pre>rsync ~/blog/hello-world.md ~/blog/profile.jpg {{.Site.Domain}}:/</pre>
 7         <p>Read more about image uploading at [imgs.sh](https://imgs.sh) and our [help page](/help)</p>
 8     </section>
 9 
10@@ -93,7 +93,7 @@ title: hello world!
11             When your post is ready to be published, copy the file to our server with a familiar
12             command:
13         </p>
14-        <pre>scp ~/blog/*.md {{.Site.Domain}}:/</pre>
15+        <pre>rsync ~/blog/*.md {{.Site.Domain}}:/</pre>
16         <p>We'll either create or update the posts for you.</p>
17     </section>
18 
19@@ -101,11 +101,28 @@ title: hello world!
20         <h2 class="text-lg font-bold">Terminal workflow without installation</h2>
21         <p>
22             Since we are leveraging tools you already have on your computer
23-            (<code>ssh</code> and <code>scp</code>), there is nothing to install.
24+            (<code>ssh</code> and <code>rsync</code>), there is nothing to install.
25         </p>
26         <p>
27             This provides the convenience of a web app, but from inside your terminal!
28+            Furthermore, you can manage your blog posts via <code>sftp</code>.
29         </p>
30+        <pre>sftp {{.Site.Domain}}
31+sftp> ls
32+hello-world.md
33+sftp> rm hello-world.md</pre>
34+    </section>
35+
36+    <section>
37+        <h2 class="text-lg font-bold">Use <code>sftp</code> to manage your posts</h2>
38+        <p>
39+          FTP is back in style.  List, upload, and delete posts via <code>sftp</code>:
40+        </p>
41+        <pre>sftp {{.Site.Domain}}
42+sftp> ls
43+hello-world.md
44+sftp> rm hello-world.md
45+sftp> put hello-world.md</pre>
46     </section>
47 
48     <section>
49@@ -118,6 +135,7 @@ title: hello world!
50             <li>You control the source files</li>
51             <li>Terminal workflow with no installation</li>
52             <li>Public-key based authentication</li>
53+            <li>Use sftp to manage blog</li>
54             <li>No ads, zero browser-based tracking</li>
55             <li>No attempt to identify users</li>
56             <li>No platform lock-in</li>