From 396d3b2a4d4dc9a66f38d6dda8c486cc4596cb2a Mon Sep 17 00:00:00 2001 From: yctct Date: Sun, 11 May 2025 13:35:21 +0200 Subject: Update the two new pages --- publish.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'publish.md') diff --git a/publish.md b/publish.md index e998718..ae15b58 100644 --- a/publish.md +++ b/publish.md @@ -20,7 +20,13 @@ then edit that file using the text editor nano, for example: $ nano index.md -Type some text. +Type some text, for example: + + # This is the title of my page. + + some text. + + [a link](https://compost.party). Save. @@ -57,24 +63,20 @@ You can copy mine if you want: color: pink; } -You can also add a favicon. -This, you can find online; there are websites that help you generate a favicon for your site. - -Add a header. +You can also add a favicon. This, you can find online; there are websites that help you generate a favicon. -Create a file header.html, and populate the file with: +Add a header; create a file header.html, and populate the file with: whatever title you want - Now we add a script to convert the markdown file index.md into an HTML file index.html. -To do so, add a file build.sh containing the following script: +To do so, create a file called build.sh containing the following script: ``` # (c) 2025 w. kennedy @@ -112,7 +114,7 @@ Download Pandoc: $ sudo apt install pandoc -Run the script +Run the script: $ ./build.sh index.md @@ -120,11 +122,11 @@ You should have a file called index.html, check: $ ls -Now that you have index.html, you want to send it to the server. +Now that you have index.html, you want to upload it onto the server. To do so, I use the programme rsync. -We will create a file with the command you need to send your file to the server. +We will create a short script to upload your files to the server, and then you'll use that script to update your website. $ touch deploy.sh @@ -142,8 +144,8 @@ To publish your site to the server, run: $ ./deploy -If you want to add pages to your site, run: +If you want to add pages or other files, e.g. pdf or images, to your site, run: - $ ./deploy page.html + $ ./deploy page.html file.pdf image.png -PS: you might need to edit the template Pandoc uses; I don't remember. If you need to do so, you can find the file default.html5 on the repository of Pandoc, and then customise it. Feel free to email me if you have questions. You can find my email address on the flyers published on https://yctct.compost.party. +PS: you might need to edit the template Pandoc uses; I don't remember if I did so. If you need to do so, you can find the file default.html5 on the repository of Pandoc, and then customise it. Feel free to email me if you have questions. You can find my email address on the flyers published on https://yctct.compost.party. -- cgit v1.2.3