Satro is a ready-to-use static site generator that is built with Astro. This repository is a template that you can use to deploy your site of satro to various platforms.
You may have noticed that the workflow isn't being run on your forked repository. This is because of security reasons. You can enable the workflow by just clicking on the I understand my workflows, go ahead and enable them
button as shown below.
The workflow files provided in this repository are not triggered by push in default. You can trigger the workflow by using the workflow_dispatch
event. You can find the workflow_dispatch
event in the Actions tab of your repository.
Or you can remove the comment from the workflow file to trigger the workflow on push.
on:
workflow_dispatch:
- # push:
- # branches: [ "main" ]
+ push:
+ branches: [ "main" ]
Assuming you have already setting up the deploy workflow (including those environment variables starting with SITE_
) mentioned in the Prerequisites section.
You can create an announcement by creating a file in the announcement
directory. Head to the announcement
directory to find out more.
You can create links or scripts in the footer by creating a file in the footer
directory. Head to the footer
directory to find out more.
The icon attributes are using Iconify.
Note: External scripts are allowed, for example, please refer to footer/0_script-jquery.mdx.
Additionally: The order of links and scripts is based on the file name, so you can prefix the file name with a number to set the order (e.g.
0_
,1_
,2_
, etc).
You can put your thumbnail, favicon, or anything in the public
directory which will be copied to the root of the site.
Note: You can put your
thumbnail
,favicon
in several formats simultaneously. But only one file will be used, which is randomly selected in the build process.
Redirects are available if you are deploying to Cloudflare Pages. You can create a file name _redirects
(in this template, it's already created and will be automatically copied to the public
directory) and follow the Redirects documentation.
You can create an article by creating a file in the article
directory. Head to the article
directory to find out more.
Note: Path to the image in the article is not relativity, please start with
/
and put the image under theimage
directory. (sub directory is allowed)
Code block in the article is using Expressive Code, you can find out more in their documentation.
Note:
pluginCollapsibleSections
plugin is installed by default.
Congratulations! You have successfully completed the setup of your site. You can now start authoring your site, and don't forget to remove the those example files in the announcement
, footer
, public
, and article
directories.
Details about Astro, please refer to the Astro documentation.
Feel free to forked satro and modify it to suit your needs.
The live demo about how to authoring your content. Example
This project is licensed under the LGPLv3 License - see the LICENSE file for details.