![]() ![]() $ git remote add origin git push -u origin gh-pages Jekyll-Bootstrap Themes If this is Project Page, change the name of the master branch to gh-pages and push to GitHub: If this is repository is meant to be your User Page, you can use the master branch to publish your website. Put all the markdown files in the /pages directory. This will create a new markdown file named contactme in a new directory called pages. To keep the folder clean, make a new directory titled /pages and place the. New pages can be added using the rake command. In the _includes/themes/twitter/default.html, add the following lines of code from this gist. html file to be able to write $\LaTeX$ code. If you use $\LaTeX$, it’s easy to incorporate MathJax into the the. production_url : Īdd the following line into the _config.yml file to tell GitHub how to interpret the markdown: markdown: kramdown Open up the _config.yml file and change this information: title : Jekyll BootstrapĪlso, you will want to change the production_url to change the username to your Github user name. When you open the index.md file included in the Jekyll-Bootstrap download, it will tell you to edit the _config.yml file to add in all of the information about your project. To view the website locally, go to Afterwards you can press ctrl-c to stop the process in the terminal. To quickly view the website as it is locally as it is, run the command in the myrepo directory $ jekyll build Finally, make the directory a new git repository with git init. git directory because you don’t want the history of that repository as it will become your website. First, use git clone to get a copy of the jekyll-bootstrap repository on Github and change the name of the directory from jekyll-bootstrap to your repository’s name (e.g. Here I will create a Project Page called myrepo using Jekyll-Bootstrap. Jekyll-Bootstrap is similar to using jekyll, but it takes away a lot of the hassle about Jekyll by allowing the user to create blog-aware websites using markdown with themes. $ git remote add origin git push -u origin gh-pages If this is Project Page, change the name of the master branch to gh-pages and push to GitHub: $ git branch -m master gh-pages This is a very basic website, but you can edit the Markdown files to personalize it. $ jekyll serve -watchĬreate and edit the Markdown files for your website, then commit your changes. You can also add the -watch command at the end to force Jekyll to rebuild the site every time you save the file. ![]() Copy all of the files you moved back into the repo and run this command in the myrepo directory: $ jekyll build A new set of files should appear in the directory. Just move the files to a different places temporarily and rerun the command. If the repo is not empty, it will complain about there being files already in the repo. If the repo is empty there will be no error messages. ![]() The basic jekyll command to create a basic jekyll directory called myrepo is jekyll new: $ jekyll new myrepo To install Jekyll, run the command $ gem install jekyll To install Bundler, run the command $ gem install bundler The installation of Jekyll depends on Ruby and Bundler. To get started, I encourage you to follow the instructions on the GitHub Help: Using Jekyll with Pages website. Both of the following ways use jekyll to create beautiful website written in Markdown (.md) files.Ĭlone a repository which contains all the jekyll files needed to create a website such as the jekyll-bootstrap repository or Karl Broman’s simple_site repository. html files, there are several ways to set up your repository either for a User Page or Project Page with the initial set of files needed to create a website. Outside of using the automatic page generator provided by GitHub or writing your own. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |