Added documentation to explain how to add scripts at the bottom of the template

This commit is contained in:
Brandon Mathis 2012-05-22 15:36:42 -05:00
parent 4c20ebccc4
commit 829b9737d2

View File

@ -36,7 +36,7 @@ Finally, `source/index.html` can become the landing page of your wildest dreams.
## Changing the <HEAD> ## Changing the <HEAD>
If you want to add to the `<HEAD>`take a look at `/source/_includes/custom/head.html`. If you want to add scripts or tags to the `<HEAD>` take a look at `/source/_includes/custom/head.html`.
{% codeblock &lt;HEAD&gt; (source/_includes/custom/head.html) %} {% codeblock &lt;HEAD&gt; (source/_includes/custom/head.html) %}
{% render_partial ../.themes/classic/source/_includes/custom/head.html raw %} {% render_partial ../.themes/classic/source/_includes/custom/head.html raw %}
@ -44,6 +44,8 @@ If you want to add to the `<HEAD>`take a look at `/source/_includes/custom/head.
Here you can easily change or remove the [Google Webfonts](http://google.com/webfonts), insert javascripts, etc. Here you can easily change or remove the [Google Webfonts](http://google.com/webfonts), insert javascripts, etc.
If you'd rather inject scripts at the bottom of the page, you can add that to `/source/_includes/custom/after_footer.html`.
### Changing the sidebar ### Changing the sidebar
Octopress integrates with some [3rd party services](/docs/configuring/#third_party) like Twitter, Pinboard and Delicious which appear in the sidebar. Octopress integrates with some [3rd party services](/docs/configuring/#third_party) like Twitter, Pinboard and Delicious which appear in the sidebar.
In the `_config.yml` you can rearrange these, create custom sidebars for each layout, and add your own sidebar sections. In the `_config.yml` you can rearrange these, create custom sidebars for each layout, and add your own sidebar sections.