octopress-include-tag 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +14 -8
- data/lib/octopress-include-tag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b573bc4444a5091384735b96236abf828ffd2817
|
4
|
+
data.tar.gz: c7c8e1f52c7962529af8294a37c3e238dd301bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f893e5ea32e44dec42812d2f7f10a3fa0c3bd7b8e98ddfbb5d0528d9302b75e40b932f401f0df0b0cec04506e5ccd2a7f4ffbf104c1d4d9f2ed7e044de8b343
|
7
|
+
data.tar.gz: 7793b6ca1b3ec04c860df1f651b20ab1d2385312bc9c1eb0b790a980765c7ded79b4f4118b0e01d54ba9b826bd4e2691446649245a6bb50fecf6ef44b20a5b22
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -71,23 +71,29 @@ It's easy to include a partial from an Ink theme or plugin.
|
|
71
71
|
|
72
72
|
Here's the syntax
|
73
73
|
|
74
|
-
|
74
|
+
```
|
75
|
+
{% include [plugin-slug]:[partial-name] %}
|
76
|
+
```
|
75
77
|
|
76
78
|
Some examples:
|
77
79
|
|
78
|
-
|
79
|
-
|
80
|
+
```
|
81
|
+
{% include theme:sidebar.html %} // Include the sidebar from a theme plugin
|
82
|
+
{% include twitter:feed.html %} // Include the feed from a twitter plugin
|
83
|
+
```
|
80
84
|
|
81
85
|
#### Overriding theme/plugin partials
|
82
86
|
|
83
87
|
Plugins and themes use this tag internally too. For example, the [octopress-feeds plugin](https://github.com/octopress/feeds/blob/master/assets/pages/article-feed.xml#L10) uses the include tag to
|
84
88
|
render partials for the RSS feed.
|
85
89
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
90
|
+
```html
|
91
|
+
{% for post in site.articles %}
|
92
|
+
<entry>
|
93
|
+
{% include feeds:entry.xml %}
|
94
|
+
</entry>
|
95
|
+
{% endfor %}
|
96
|
+
```
|
91
97
|
|
92
98
|
If you want to make a change to the `entry.xml` partial, you could create your own version at `_plugins/feeds/includes/entry.xml`.
|
93
99
|
Now whenever `{% include feeds:entry.xml %}` is called, the include tag will use *your* local partial instead of the plugin's partial.
|