Sha256: b190a3e9d8d7745a66bc1abf32e682f41e274bfba8c6b25a31bf08e6265c5846
Contents?: true
Size: 687 Bytes
Versions: 3
Compression:
Stored size: 687 Bytes
Contents
{%- capture api -%} Return the Github URL hosting the `file` feeded with optional `branch` parameter. - **Usage** ```liquid {% raw %}{% include filters/link_to_file.html %} {% comment %}http://github.com/:owner/:repo/blob/:branch/:file_path{% endcomment %}{% endraw %} ``` - **Include** #### `file` - **Type:** string - **Default:** `page.path` - **Description:** The file path #### `branch` - **Type:** string - **Default:** `master` - **Description:** The file branch {%- endcapture -%} {%- include api/save.html -%} {%- assign link_to_file = include.file | default: page.path -%}{{ site.github.repository_url }}/blob/{{ include.branch | default: 'master' }}/{{ link_to_file }}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-any-theme-0.1.2 | _includes/filters/link_to_file.html |
jekyll-any-theme-0.1.1 | _includes/filters/link_to_file.html |
jekyll-any-theme-0.1.0 | _includes/filters/link_to_file.html |