diff options
author | parsiya <parsiya@gmail.com> | 2018-04-26 08:05:50 +0300 |
---|---|---|
committer | parsiya <parsiya@gmail.com> | 2018-04-26 08:05:50 +0300 |
commit | 8338c20bc222e0feb5f1ce8c7a090f36438b9969 (patch) | |
tree | a14385834674e0e3ca01e2e5ce83a0fe9a839ae6 /layouts | |
parent | 024f56c4c4d2c89d39eaa9d28134854d505c5abe (diff) |
Add ability to use local ForkAwesome icons instead of FontAwesome CDN
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 7 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d872880..4cb78df 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -32,8 +32,11 @@ <link rel="stylesheet" href="{{ $.Site.BaseURL }}{{ . }}"> {{ end }} - <!-- For sidebar icons - TODO: find local icons I guess --> - <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> + {{ if not .Site.Params.fontAwesome }} + <link rel="stylesheet" href="/css/fork-awesome.min.css"> + {{ else }} + <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> + {{ end }} <!-- Icons --> <link href="{{ "/favicon.png" | absURL }}" rel="icon"> diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 774d897..2e672c0 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -27,7 +27,11 @@ {{ with .Site.Params.bitbucket }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-bitbucket fa-3x"></i></a>{{ end }} {{ with .Site.Params.gitlab }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-gitlab fa-3x"></i></a>{{ end }} {{ with .Site.Params.twitter }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-twitter fa-3x"></i></a>{{ end }} - {{ with .Site.Params.keybase }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-key fa-3x"></i></a>{{ end }} <!-- added keybase --> + {{ if not .Site.Params.fontAwesome }} + {{ with .Site.Params.keybase }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-keybase fa-3x"></i></a>{{ end }} <!-- added keybase --> + {{ else }} + {{ with .Site.Params.keybase }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-key fa-3x"></i></a>{{ end }} <!-- added keybase --> + {{ end }} {{ with .Site.Params.linkedin }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-linkedin fa-3x"></i></a>{{ end }} {{ with .Site.Params.stackOverflow }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-stack-overflow fa-3x"></i></a>{{ end }} {{ with .Site.Params.googleplus }}<a target="_blank" href="{{ . }}" title="{{ . }}"><i class="fa fa-google-plus fa-3x"></i></a>{{ end }} |