Index
  1. Create your folder structure:
    
    
    chenle02.github.io
    ├── index.html -> vimwiki_html/index.html
    ├── LICENSE
    ├── style.css -> vimwiki_html/style.css
    ├── templates
    │   └── Github.html
    ├── vimwiki
    │   ├── index.wiki
    │   └── Setup_GitHub_Personal_Page.wiki
    └── vimwiki_html
        ├── index.html
        ├── Setup_GitHub_Personal_Page.html
        └── style.css
    
    3 directories, 9 files
    
    
  2. Set up your vimwiki in init.vim:
    
    let wiki_Github_Homepage = {}
    let wiki_Github_Homepage.path = '$HOME/path/to/your/directory/chenle02.github.io/vimwiki'
    let wiki_Github_Homepage.path_html = '$HOME/path/to/your/directory/chenle02.github.io/vimwiki_html'
    let wiki_Github_Homepage.template_path = '$HOME/path/to/your/directory/chenle02.github.io/templates'
    let wiki_Github_Homepage.template_default =  'Github'
    let wiki_Github_Homepage.template_ext = '.html'
    
    let g:vimwiki_list = [
          \ wiki_default,
          \ wiki_Github_Homepage,
          \ ]
    
    
  3. Copy the templates file Github.html to your template directory.
  4. Copy the following content to the index.html in the home folder of the project:
    
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0;url=/vimwiki_html/">
        <title>Redirecting...</title>
    </head>
    <body>
        If you are not redirected, <a href="/vimwiki_html/">click here</a>.
    </body>
    </html>
      
    


© Le Chen, 2022, chenle02@gmail.com