Skip to content

Commit

Permalink
Revert "Moves anchor_headings.html to _includes"
Browse files Browse the repository at this point in the history
This reverts commit 948f6fc.
  • Loading branch information
harlan-nava committed Aug 9, 2024
1 parent d079abf commit 922acb7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 177 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions .github/workflows/update_jekyll-anchor-heading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: suisei-cn/[email protected]
with:
url: "https://github.com/allejo/jekyll-anchor-headings/releases/download/${{ steps.latest-release.outputs.release }}/anchor_headings.html"
target: _includes/
target: _includes/vendor/

- name: Create PR
uses: peter-evans/create-pull-request@v4
Expand All @@ -33,11 +33,11 @@ jobs:
body: |
Update `jekyll-anchor-headings` to `${{ steps.latest-release.outputs.release }}`
This is an automated pull request.
branch: update/jekyll-anchor-headings
branch: update/vendor/jekyll-anchor-headings
delete-branch: true
labels: |
kind/update
area/dependency
add-paths: |
_includes/anchor_headings.html
_includes/vendor/anchor_headings.html
token: ${{ secrets.GITHUB_TOKEN }}
Binary file modified _includes/.DS_Store
Binary file not shown.
173 changes: 0 additions & 173 deletions _includes/anchor_headings.html

This file was deleted.

2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div id="main-content" class="main-content">
<main>
{% if site.heading_anchors != false %}
{% include anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
{% else %}
{{ content }}
{% endif %}
Expand Down
Binary file modified assets/.DS_Store
Binary file not shown.
Binary file modified assets/images/.DS_Store
Binary file not shown.

0 comments on commit 922acb7

Please sign in to comment.