зеркало из https://github.com/github/docs.git
f298882078
* add contributing/development.md * Update CONTRIBUTING.md Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Update contributing/development.md Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Update contributing/development.md Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Update contributing/development.md Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Update contributing/development.md Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> * Update contributing/development.md Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com> * Update contributing/development.md Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com> * cross-link to various liquid docs Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com> Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com> |
||
---|---|---|
.. | ||
liquid-tags | ||
README.md | ||
all-products-link.html | ||
article-version-switcher.html | ||
article.html | ||
breadcrumbs.html | ||
contribution.html | ||
deprecation-banner.html | ||
error-404-deprecation-message.html | ||
explorer.html | ||
featured-article.html | ||
featured-link.html | ||
featured-links.html | ||
footer.html | ||
graphql-arguments.html | ||
graphql-deprecation.html | ||
graphql-enum.html | ||
graphql-fields.html | ||
graphql-input-fields.html | ||
graphql-input-object.html | ||
graphql-interface.html | ||
graphql-mutation.html | ||
graphql-object.html | ||
graphql-preview.html | ||
graphql-query.html | ||
graphql-return-fields.html | ||
graphql-scalar.html | ||
graphql-union.html | ||
head.html | ||
header-notification.html | ||
header.html | ||
helpfulness.html | ||
homepage-version-switcher.html | ||
landing.html | ||
printer-icon.html | ||
rest_operation.html | ||
rest_operations_at_current_path.html | ||
rest_toc_item.html | ||
search-form.html | ||
sidebar-guides.html | ||
sidebar-homepage.html | ||
sidebar-specific-product.html | ||
sidebar.html | ||
support.html |
README.md
Includes
The files in this directory are "includes", snippets of HTML that can be reused in multiple layouts or pages. In Ruby on Rails parlance, these are called "partials".
Using Includes
This example injects the contents of includes/header.html
into the
page:
{% include header %}
Writing Includes
Includes must have a .html
extension.