Adding social links to the site


View Source Code

This component allows to automatically generate social links for the most common social platforms.

Social links on the site
Social links on the site

Parameters

  • linkedin - url to LinkedIn page
  • facebook - url to Facebook page
  • pinterest - url to Pinterest page
  • reddit - url to Reddit page
  • github - url to GitHub page
  • youtube - url to YouTube page
  • nuget - url to NuGet page
  • twitter - url to Twitter page
  • rss - url to RSS page
  • email - contact e-mail
  • color - custom color. If not specified, default color of the social platform is used

If url is not specified, social link will not be added.

Usage

Add the reference to /_assets/styles/social-links.css style into the head of the page.

Add the include into the HTML node (usually added to the footer)

<head>
    <link rel="stylesheet" type="text/css" href="/_assets/styles/social-links.css" />
</head>
<div class="foot-social">
    {% social-links %}
</div>

This component is included into the base theme


Powered by Docify