Merge pull request #364 from burner1024/custom-favicon

allow custom favicon code
This commit is contained in:
Patrick Marsceill 2022-03-03 15:36:32 -05:00 committed by GitHub
commit 6f8ae3e97e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 27 deletions

1
_includes/favicon.html Normal file
View File

@ -0,0 +1 @@
<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon">

View File

@ -10,7 +10,7 @@
{% endif %} {% endif %}
{% endunless %} {% endunless %}
<link rel="shortcut icon" href="{{ 'favicon.ico' | relative_url }}" type="image/x-icon"> {% include favicon.html %}
<link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}"> <link rel="stylesheet" href="{{ '/assets/css/just-the-docs-default.css' | relative_url }}">

View File

@ -35,34 +35,28 @@ remote_theme: just-the-docs/just-the-docs
### Local installation: Use the gem-based theme ### Local installation: Use the gem-based theme
1. Install the Ruby Gem 1. Install the Ruby Gem
```bash ```bash
$ gem install just-the-docs $ gem install just-the-docs
``` ```
```yaml ```yaml
# .. or add it to your your Jekyll sites Gemfile # .. or add it to your your Jekyll sites Gemfile
gem "just-the-docs" gem "just-the-docs"
``` ```
2. Add Just the Docs to your Jekyll sites `_config.yml` 2. Add Just the Docs to your Jekyll sites `_config.yml`
```yaml ```yaml
theme: "just-the-docs" theme: "just-the-docs"
``` ```
3. _Optional:_ Initialize search data (creates `search-data.json`) 3. _Optional:_ Initialize search data (creates `search-data.json`)
```bash ```bash
$ bundle exec just-the-docs rake search:init $ bundle exec just-the-docs rake search:init
``` ```
3. Run you local Jekyll server 3. Run you local Jekyll server
```bash ```bash
$ jekyll serve $ jekyll serve
``` ```
```bash ```bash
# .. or if you're using a Gemfile (bundler) # .. or if you're using a Gemfile (bundler)
$ bundle exec jekyll serve $ bundle exec jekyll serve