mirror of
https://github.com/aljazceru/hacker-gh-pages-theme.git
synced 2025-12-17 06:04:21 +01:00
Update README.md
This commit is contained in:
14
README.md
14
README.md
@@ -1,6 +1,6 @@
|
|||||||
# The Hacker theme
|
# The Hacker theme
|
||||||
|
|
||||||
[Build Status](https://github.com/pages-themes/hacker/actions/workflows/ci.yaml) [](https://badge.fury.io/rb/jekyll-theme-hacker)
|
[](https://github.com/pages-themes/hacker/actions/workflows/ci.yaml) [](https://badge.fury.io/rb/jekyll-theme-hacker)
|
||||||
|
|
||||||
*Hacker is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/hacker), or even [use it today](#usage).*
|
*Hacker is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/hacker), or even [use it today](#usage).*
|
||||||
|
|
||||||
@@ -13,7 +13,9 @@ To use the Hacker theme:
|
|||||||
1. Add the following to your site's `_config.yml`:
|
1. Add the following to your site's `_config.yml`:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
theme: jekyll-theme-hacker
|
remote_theme: pages-themes/hacker@v0.2.0
|
||||||
|
plugins:
|
||||||
|
- jekyll-remote-theme # add this line to the plugins list if you already have one
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
|
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
|
||||||
@@ -36,7 +38,7 @@ description: [A short description of your site's purpose]
|
|||||||
Additionally, you may choose to set the following optional variables:
|
Additionally, you may choose to set the following optional variables:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
|
show_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL]
|
||||||
google_analytics: [Your Google Analytics tracking ID]
|
google_analytics: [Your Google Analytics tracking ID]
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -66,6 +68,10 @@ If you'd like to change the theme's HTML layout:
|
|||||||
4. Paste the default layout content copied in the first step
|
4. Paste the default layout content copied in the first step
|
||||||
5. Customize the layout as you'd like
|
5. Customize the layout as you'd like
|
||||||
|
|
||||||
|
### Customizing Google Analytics code
|
||||||
|
|
||||||
|
Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/head-custom-google-analytics.html` in your Jekyll site.
|
||||||
|
|
||||||
### Overriding GitHub-generated URLs
|
### Overriding GitHub-generated URLs
|
||||||
|
|
||||||
Templates often rely on URLs supplied by GitHub such as links to your repository or links to download your project. If you'd like to override one or more default URLs:
|
Templates often rely on URLs supplied by GitHub such as links to your repository or links to download your project. If you'd like to override one or more default URLs:
|
||||||
@@ -107,4 +113,4 @@ If you'd like to preview the theme locally (for example, in the process of propo
|
|||||||
|
|
||||||
### Running tests
|
### Running tests
|
||||||
|
|
||||||
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` one before the test script will work.
|
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` once before the test script will work.
|
||||||
|
|||||||
Reference in New Issue
Block a user