From bd4b10cae3513de8b3af5bf6cf06e6c064ef53f8 Mon Sep 17 00:00:00 2001 From: koirand Date: Mon, 6 May 2019 00:33:05 +0900 Subject: [PATCH] Support textlink #42 --- exampleSite/config.toml | 12 ++++++++---- layouts/index.html | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c092af5..78ffb75 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -28,25 +28,29 @@ hasCJKLanguage = true section = ["JSON", "HTML"] [[menu.main]] - name = "Blog" + identifier = "blog" + # name = "Blog" #If display text link, cancel comment out pre = "" #Choose your favorite font from Font Awesome url = "/blog/" weight = 10 [[menu.main]] - name = "Twitter" + identifier = "twitter" + # name = "Twitter" pre = "" url = "https://twitter.com/username" weight = 20 [[menu.main]] - name = "GitHub" + identifier = "github" + # name = "GitHub" pre = "" url = "https://github.com/username" weight = 30 [[menu.main]] - name = "Email" + identifier = "email" + # name = "Email" pre = "" url = "mailto:username@example.com" weight = 40 diff --git a/layouts/index.html b/layouts/index.html index a10fb8f..ce98446 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -21,7 +21,7 @@