Browse Source

Add Telegram link (Fix #22)

pull/23/head
Florent Gallaire 2 years ago
parent
commit
cab3017cbc
4 changed files with 6 additions and 1 deletions
  1. 1
    0
      README.md
  2. 1
    0
      exampleSite/config.toml
  3. 3
    0
      layouts/index.html
  4. 1
    1
      layouts/partials/head.html

+ 1
- 0
README.md View File

@@ -28,6 +28,7 @@ Add these parameters to your `config.toml`:
28 28
   GoogleplusID = "your_googleplus"
29 29
   FacebookID = "your_facebook"
30 30
   InstagramID = "your_instagram"
31
+  TelegramID = "your_telegram"
31 32
   Name = "your_name"
32 33
   HeaderUsername = "username"
33 34
   HeaderHostname = "hostname"

+ 1
- 0
exampleSite/config.toml View File

@@ -20,6 +20,7 @@ disqusShortname = "your_disqus_shortname"
20 20
   LinkedInID = "your_linkedin"
21 21
   GoogleplusID = "your_googleplus"
22 22
   FacebookID = "your_facebook"
23
+  TelegramID = "your_telegram"
23 24
   Name = "Mr Hugo"
24 25
   HeaderUsername = "hugo"
25 26
   HeaderHostname = "hugo"

+ 3
- 0
layouts/index.html View File

@@ -51,6 +51,9 @@
51 51
           {{ with .Site.Params.InstagramID }}
52 52
 					<a href="https:/instagram.com/{{.}}" title="Instagram"><i class="fa fa-instagram fa-3x" aria-hidden="true"></i></a>
53 53
 					{{ end }}
54
+					{{ with .Site.Params.TelegramID }}
55
+					<a href="https://t.me/{{.}}" title="Telegram"><i class="fa fa-telegram fa-3x" aria-hidden="true"></i></a>
56
+					{{ end }}
54 57
 					{{ with .Site.Params.Email }}
55 58
 					<a href="mailto:{{.}}" title="Email"><i class="fa fa-envelope fa-3x" aria-hidden="true"></i></a>
56 59
 					{{ end }}

+ 1
- 1
layouts/partials/head.html View File

@@ -11,7 +11,7 @@
11 11
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
12 12
 
13 13
 <!-- Font Awesome -->
14
-<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
14
+<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
15 15
 
16 16
 <!-- Custom CSS -->
17 17
 <link rel="stylesheet" href="{{ "css/nix.css" | absURL }}">

Loading…
Cancel
Save