зеркало из https://github.com/github/docs.git
27aa5d92ea
* cleanup FEATURE_NEXTJS * fixing some server tests * updating article a for server tests * update h2 to h4 map topic tests * data off on TOCs * updating dropdown article versions links * Update so markdown renders in intros * updating typo and all server tests are now passing * remove nextjs feature flag * head.js tests pass * updating article-version-picker * remove nextjs feature flag browser test * update header.js tests * fix page-titles.js test * fix deprecated-enterprise versions * adding early access * testing * getting childTocItem * fixing table of contents to show child toc items * updated to 2 because the sidebar article also has the same link * remove comment * updating pick * Update TocLandingContext.tsx * update package.json and change className to h4 for h2 * updating with mikes feedback * remove a.active test * React clean up: Delete unnecessary layouts/includes Part 2 (#20143) * Delete unnecessary layouts * setting back tests failing :( * update layouts * delete unnecessary includes * remove github-ae-release-notes and updating layouts * remove a.active test |
||
---|---|---|
.. | ||
liquid-tags | ||
README.md | ||
all-enterprise-releases-link.html | ||
all-products-link.html | ||
contribution.html | ||
error-404-deprecation-message.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-version-switcher.html | ||
header.html | ||
rest_operation.html | ||
rest_operations_at_current_path.html | ||
rest_toc_item.html | ||
scripts.html | ||
scroll-button.html | ||
search-form.html | ||
sidebar-homepage.html | ||
sidebar-product.html | ||
sidebar.html | ||
small-footer.html | ||
support-section.html | ||
support.html | ||
survey.html | ||
toggle-images.html | ||
tool-switcher.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.