Skip to content

Commit 3d30006

Browse files
committed
Add route for Google Search Console verification
1 parent 57a18be commit 3d30006

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

message-index/site.hs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import qualified Data.List.NonEmpty as NE
1919
import qualified Data.Map.Strict as Map
2020
import Data.Maybe (fromMaybe, listToMaybe, mapMaybe)
2121
import Data.Monoid (mappend)
22+
import Data.String (IsString)
2223
import qualified Data.Text as T
2324
import Data.Traversable
2425
import Hakyll
@@ -39,6 +40,13 @@ main = hakyll $ do
3940
route idRoute
4041
compile copyFileCompiler
4142

43+
-- Necessary for Google Search Console verification
44+
let googleSiteVerification :: IsString a => a
45+
googleSiteVerification = "googledf229fed7e7d2ee9.html" in
46+
create [googleSiteVerification] $ do
47+
route idRoute
48+
compile $ makeItem ("google-site-verification: " ++ googleSiteVerification)
49+
4250
match "images/*" $ do
4351
route idRoute
4452
compile copyFileCompiler

0 commit comments

Comments
 (0)