User Tools

Site Tools


a_simple_static_site_generator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
a_simple_static_site_generator [2021/03/15 18:15] – consistent use of html_source instead of some html_src peteyboya_simple_static_site_generator [2023/02/23 20:15] (current) – added explanation peteyboy
Line 32: Line 32:
  
 ===== Clone Git Repo ===== ===== Clone Git Repo =====
-change dirs to a folder that you keep projects in (''~/projects'', say), the clone the ssg-for-sdf repo:+change dirs to a folder that you keep projects in (''~/projects'', say), and clone the ssg-for-sdf repo:
   $git clone https://git.sdf.org/peteyboy/ssg-for-sdf.git   $git clone https://git.sdf.org/peteyboy/ssg-for-sdf.git
  
-===== Copy to your personal bid directory =====+===== Copy to your personal bin directory =====
   * Make sure you have a ~/bin folder.  If you don't already, make one: ''mkdir ~/bin'' (and add it to your $PATH)   * Make sure you have a ~/bin folder.  If you don't already, make one: ''mkdir ~/bin'' (and add it to your $PATH)
   * copy the ssg5 executable file to the ''bin'' folder, and make it executable by you   * copy the ssg5 executable file to the ''bin'' folder, and make it executable by you
Line 78: Line 78:
 ===== Running SSG5 ===== ===== Running SSG5 =====
  
-If you just run ''ssg5'' with no arguments and it will give you its usage:+If you just run ''ssg5'' with no arguments it will give you its usage:
  
   $ ~/bin/ssg5   $ ~/bin/ssg5
Line 88: Line 88:
    
  
-If you used the minimal ''_header.html'' and ''_footer.html'' as described above, your page Titles will be of the form //Whatever the H1 is in your Markdown - The Title you fed to the ssg5 command//like so: +If you used the minimal ''_header.html'' and ''_footer.html'' as described above, your page Titles will be of the form //Whatever the H1 is in your Markdown - The Title you fed to the ssg5 command//. It will appear in the generated HTML files in ''html_dest'' folder (using the example ssg5 command above) like so: 
  
 <code> <code>
Line 97: Line 97:
  
  
-I use ''ssg5'' for my tilde pages, so I run:+I use the''ssg5'' tool for my tilde pages, so I run:
 ''ssg5 ~/html_source ~/public_html "Peteyboy's tilde site" <nowiki>https://freeshell.org/~peteyboy</nowiki>'' ''ssg5 ~/html_source ~/public_html "Peteyboy's tilde site" <nowiki>https://freeshell.org/~peteyboy</nowiki>''
  
a_simple_static_site_generator.1615832119.txt.gz · Last modified: 2021/03/15 18:15 by peteyboy