File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ const siteConfig = {
160160 ] ,
161161 ] ) ,
162162 "./plugins/clarity.js" ,
163+ "./plugins/ahref.js" ,
163164 "./plugins/templates.js" ,
164165 "./plugins/example-redirects.js" ,
165166 "./plugins/tutorial-navigation.js" ,
Original file line number Diff line number Diff line change 1+ "use strict" ;
2+ Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
3+
4+ async function ahref ( ) {
5+ return {
6+ name : "docusaurus-plugin-ahref" ,
7+ injectHtmlTags ( ) {
8+ return {
9+ headTags : [
10+ {
11+ tagName : "link" ,
12+ attributes : {
13+ rel : "preconnect" ,
14+ href : "https://analytics.ahrefs.com" ,
15+ } ,
16+ } ,
17+ {
18+ tagName : "script" ,
19+ attributes : {
20+ src : "https://analytics.ahrefs.com/analytics.js" ,
21+ "data-key" : "bjK8XrJbZu7AboWmTMvB0g" ,
22+ } ,
23+ } ,
24+ ] ,
25+ } ;
26+ } ,
27+ } ;
28+ }
29+ exports . default = ahref ;
Original file line number Diff line number Diff line change 1+ import type { Plugin } from "@docusaurus/types" ;
2+
3+ export default async function ahref ( ) : Promise < Plugin > {
4+ return {
5+ name : "docusaurus-plugin-ahref" ,
6+ injectHtmlTags ( ) {
7+ return {
8+ headTags : [
9+ {
10+ tagName : "link" ,
11+ attributes : {
12+ rel : "preconnect" ,
13+ href : "https://analytics.ahrefs.com" ,
14+ } ,
15+ } ,
16+ {
17+ tagName : "script" ,
18+ attributes : {
19+ src : "https://analytics.ahrefs.com/analytics.js" ,
20+ "data-key" : "bjK8XrJbZu7AboWmTMvB0g" ,
21+ } ,
22+ } ,
23+ ] ,
24+ } ;
25+ } ,
26+ } ;
27+ }
You can’t perform that action at this time.
0 commit comments