shell script to create a static HTML directory listing

前端 未结 4 1803
傲寒
傲寒 2021-02-07 18:43

So I\'m creating a GitHub Pages site to list all of the Gifs in my jglovier/gifs repo. GH Pages runs only static HTML/CSS/JS or Jekyll, so I cannot use an apache directory listi

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 18:59

    I know it said to use a shell script, but why not use Jekyll to do it. Github pages automatically builds the jekyll site on every commit, so you can set it up and forget about it.

    Basic example

    ---
    ---
    
    
      Index of /
    
    
    
      

    Index of /

    Directory tree

    ---
    ---
    

    Index of ./

    提交回复
    热议问题