Skip to content

Latest commit

 

History

History
99 lines (63 loc) · 2.18 KB

README.md

File metadata and controls

99 lines (63 loc) · 2.18 KB

github-pages-template

Template for a Github Pages web site using GitHub API

Usage

You're done!! Now you have an automatically generated Github Page

Configuration

You can add some specific configuration in the file ./config.js

module.exports = {
  user: "",
  name: ""
}

Featured repositories

You can add some featured repositories following this steps:

  • Edit the file ./featured.js, adding a github project name, and uploading a screenshot to the images/ folder.
'my-repository-name' : {
    image:"images/repository-screenshot.png"
},

In this example, two projects are added to the "Featured" section

var myRepos = 
{
    'my-repo1' : {
        image:"images/image1.png"
    },
    'my-repo2' : {
        image:"images/image2.png"
    },
    
}

If you want to use this page template outside the github.io domain, you can change this line in js/config.js to select the default 'github' user to your user name or any other:

if (!myUser){
    myUser = "github";
}  

Web preview

https://fraigo.github.io/github-pages-template/

Test this site with your user name

https://fraigo.github.io/github-pages-template/?username

Examples:

Contributing

Feel free to contribute to this project submitting bugfixes and new features.