For example, see Minimal's README.Ĭreate a new file called /assets/css/style.scss.Īdd the following content to the top of the file: "" Īdd any custom CSS or Sass (including imports) you'd like immediately after the line. Your theme's source repository may offer some help in customizing your theme. For more information, see " Creating a pull request." If your current branch is the default branch, you should choose to create a new branch for your commit and then create a pull request. For more information, see " Creating a commit with multiple authors."īelow the commit message fields, decide whether to add your commit to the current branch or to a new branch. You can attribute the commit to more than one author in the commit message. In the "Commit message" field, type a short, meaningful commit message that describes the change you made to the file. To use any other Jekyll theme hosted on GitHub, type remote_theme: THEME-NAME, replacing THEME-NAME with the name of the theme as shown in the README of the theme's repository.For example, to select the Minimal theme, type theme: jekyll-theme-minimal. For a list of supported themes, see " Supported themes" on the GitHub Pages site. To use a supported theme, type theme: jekyll-theme-THEME-NAME, replacing THEME-NAME with the name of the theme as shown in the README of the theme's repository.In the upper right corner of the file view, click to open the file editor.Īdd a new line to the file for the theme name. For more information, see " Configuring a publishing source for your GitHub Pages site." Navigate to the publishing source for your site. On GitHub AE, navigate to your site's repository. For more information, see " Testing your GitHub Pages site locally with Jekyll." Adding a theme If you want to preview your changes first, you can make the changes locally instead of on GitHub AE. People with write permissions for a repository can add a theme to a GitHub Pages site using Jekyll.Ĭhanges to your site are published automatically when the changes are merged into your site's publishing source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |