Rename social.*.link to url
This commit is contained in:
		| @@ -334,11 +334,11 @@ paige: | ||||
|   rss: | ||||
|     managing_editor: "Michael Bluth" | ||||
|     web_master: "Michael Bluth" | ||||
|   social: # Social links on the home page | ||||
|   social: | ||||
|     examplesite: | ||||
|       bootstrap_icon: example-icon | ||||
|       link: https://example.com/username | ||||
|       name: Example Site # Used for screen readers | ||||
|       name: Example | ||||
|       url: https://example.com/username | ||||
| ``` | ||||
|  | ||||
| If you set `hide_credit_data` or `hide_credit_link`, please credit this project in a post to help others find it. | ||||
|   | ||||
| @@ -53,84 +53,84 @@ params: | ||||
|     social: | ||||
|       discord: | ||||
|         bootstrap_icon: discord | ||||
|         link: https://discord.com/users/username | ||||
|         name: Discord | ||||
|         url: https://discord.com/users/username | ||||
|       dribbble: | ||||
|         bootstrap_icon: dribbble | ||||
|         link: https://dribbble.com/username | ||||
|         name: Dribbble | ||||
|         url: https://dribbble.com/username | ||||
|       email: | ||||
|         bootstrap_icon: envelope | ||||
|         link: mailto:username@example.com | ||||
|         name: E-mail | ||||
|         url: mailto:username@example.com | ||||
|       facebook: | ||||
|         bootstrap_icon: facebook | ||||
|         link: https://facebook.com/username | ||||
|         name: Facebook | ||||
|         url: https://facebook.com/username | ||||
|       github: | ||||
|         bootstrap_icon: github | ||||
|         link: https://github.com/username | ||||
|         name: GitHub | ||||
|         url: https://github.com/username | ||||
|       instagram: | ||||
|         bootstrap_icon: instagram | ||||
|         link: https://instagram.com/username | ||||
|         name: Instagram | ||||
|         url: https://instagram.com/username | ||||
|       linkedin: | ||||
|         bootstrap_icon: linkedin | ||||
|         link: https://linkedin.com/in/username | ||||
|         name: LinkedIn | ||||
|         url: https://linkedin.com/in/username | ||||
|       medium: | ||||
|         bootstrap_icon: medium | ||||
|         link: https://medium.com/@username | ||||
|         name: Medium | ||||
|         url: https://medium.com/@username | ||||
|       pinterest: | ||||
|         bootstrap_icon: pinterest | ||||
|         link: https://pinterest.com/username | ||||
|         name: Pinterest | ||||
|         url: https://pinterest.com/username | ||||
|       quora: | ||||
|         bootstrap_icon: quora | ||||
|         link: https://quora.com/profile/username | ||||
|         name: Quora | ||||
|         url: https://quora.com/profile/username | ||||
|       reddit: | ||||
|         bootstrap_icon: reddit | ||||
|         link: https://reddit.com/u/username | ||||
|         name: Reddit | ||||
|         url: https://reddit.com/u/username | ||||
|       spotify: | ||||
|         bootstrap_icon: spotify | ||||
|         link: https://open.spotify.com/user/username | ||||
|         name: Spotify | ||||
|         url: https://open.spotify.com/user/username | ||||
|       stackoverflow: | ||||
|         bootstrap_icon: stack-overflow | ||||
|         link: https://stackoverflow.com/users/username | ||||
|         name: Stack Overflow | ||||
|         url: https://stackoverflow.com/users/username | ||||
|       strava: | ||||
|         bootstrap_icon: strava | ||||
|         link: https://strava.com/athletes/username | ||||
|         name: Strava | ||||
|         url: https://strava.com/athletes/username | ||||
|       twitch: | ||||
|         bootstrap_icon: twitch | ||||
|         link: https://twitch.tv/username | ||||
|         name: Twitch | ||||
|         url: https://twitch.tv/username | ||||
|       twitter: | ||||
|         bootstrap_icon: twitter | ||||
|         link: https://twitter.com/username | ||||
|         name: Twitter | ||||
|         url: https://twitter.com/username | ||||
|       vimeo: | ||||
|         bootstrap_icon: vimeo | ||||
|         link: https://vimeo.com/username | ||||
|         name: Vimeo | ||||
|         url: https://vimeo.com/username | ||||
|       wordpress: | ||||
|         bootstrap_icon: wordpress | ||||
|         link: https://username.wordpress.com | ||||
|         name: Wordpress | ||||
|         url: https://username.wordpress.com | ||||
|       yelp: | ||||
|         bootstrap_icon: yelp | ||||
|         link: https://yelp.com/user_details?userid=username | ||||
|         name: Yelp | ||||
|         url: https://yelp.com/user_details?userid=username | ||||
|       youtube: | ||||
|         bootstrap_icon: youtube | ||||
|         link: https://youtube.com/user/username | ||||
|         name: YouTube | ||||
|         url: https://youtube.com/user/username | ||||
| permalinks: | ||||
|   blog: /blog/:year/:month/:day/:title/ | ||||
| social: | ||||
|   | ||||
| @@ -6,9 +6,9 @@ | ||||
|             <div class="mb-3 text-center"> | ||||
|                 {{ range $k, $v := . }} | ||||
|                     {{ if hasPrefix $v.link "mailto:" }} | ||||
|                         <a href="#" data-a="{{ base64Encode (index (split $v.link `@`) 0) }}" data-b="{{ base64Encode `@` }}" data-c="{{ base64Encode (index (split $v.link `@`) 1) }}" onclick="this.href = atob(this.dataset.a) + atob(this.dataset.b) + atob(this.dataset.c)"><i class="bi bi-{{ $v.bootstrap_icon }} display-6 mx-2"><span class="visually-hidden">{{ $v.name }}</span></i></a> | ||||
|                         <a href="#" data-a="{{ base64Encode (index (split $v.url `@`) 0) }}" data-b="{{ base64Encode `@` }}" data-c="{{ base64Encode (index (split $v.url `@`) 1) }}" onclick="this.href = atob(this.dataset.a) + atob(this.dataset.b) + atob(this.dataset.c)"><i class="bi bi-{{ $v.bootstrap_icon }} display-6 mx-2"><span class="visually-hidden">{{ $v.name }}</span></i></a> | ||||
|                     {{ else }} | ||||
|                         <a href="{{ $v.link }}"><i class="bi bi-{{ $v.bootstrap_icon }} display-6 mx-2"><span class="visually-hidden">{{ $v.name }}</span></i></a> | ||||
|                         <a href="{{ $v.url }}"><i class="bi bi-{{ $v.bootstrap_icon }} display-6 mx-2"><span class="visually-hidden">{{ $v.name }}</span></i></a> | ||||
|                     {{ end }} | ||||
|                 {{ end }} | ||||
|             </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user