Skip to content

Commit

Permalink
fix: link to web check tools (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris authored Sep 3, 2020
1 parent 05e442f commit 51875b4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions layouts/partials/check-tools.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ if ne $.Site.Params.hugoenv "production" }}
{{ $targetURL := $.Permalink }}
{{ if $.Site.IsServer }}
{{ $targetRelURL := ($.Page.Permalink | absURL) }}
{{ $targetRelURL := .Page.Permalink | relURL }}
{{ $targetURL = delimit (slice $.Site.Params.stagingURL $targetRelURL) "" }}
{{ end }}

Expand All @@ -22,13 +22,6 @@
class="dropdown-item"
>Page Speed Insights</a
>
<a
href="https://search.google.com/structured-data/testing-tool#url={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item"
>JSON-LD</a
>
<a
href="https://search.google.com/test/rich-results?url={{ $targetURL }}"
target="_blank"
Expand Down

0 comments on commit 51875b4

Please sign in to comment.