blob: 06dd6a8863ab00da8eb2c810ebaf5cb1d9777859 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{{ if ne $.Site.Params.hugoenv "production" }}
{{ $targetURL := $.Permalink }}
{{ if $.Site.IsServer }}
{{ $targetRelURL := .Page.Permalink | relURL }}
{{ $targetURL = delimit (slice $.Site.Params.stagingURL $targetRelURL) "" }}
{{ end }}
<div class="dropdown" id="checkTools">
<div class="dropdown-trigger">
<button class="button is-warning" aria-haspopup="true" aria-controls="dropdown-menu" onclick="toggleDropdownCheckTools();">
<span>Check Tools ↓</span>
</button>
</div>
<div class="dropdown-menu" id="dropdown-menu" role="menu">
<div class="dropdown-content">
<a
href="https://developers.google.com/speed/pagespeed/insights/?url={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>Page Speed Insights</a
>
<a
href="https://search.google.com/test/rich-results?url={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>Rich result</a
>
<a
href="https://validator.w3.org/nu/?doc={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>Markup</a
>
<a
href="https://material.io/tools/resizer/#url={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>RESIZER</a
>
<a
href="https://search.google.com/test/mobile-friendly?url={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>Mobile</a
>
<a
href="https://developers.facebook.com/tools/debug/sharing/?q={{ $targetURL }}"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>Facebook</a
>
<a
href="https://cards-dev.twitter.com/validator"
target="_blank"
rel="noopener noreferrer"
class="dropdown-item normal-link"
>Twitter</a
>
</div>
</div>
</div>
<script>
function toggleDropdownCheckTools() {
var obj = document.getElementById("checkTools");
obj.classList.toggle("is-active");
}
</script>
{{ end }}
|