Add host-specific icons to source links in showcase

This commit is contained in:
Ryan Watters
2017-03-10 17:01:37 -06:00
parent 4c51ebf8ee
commit 14ddd02936
3 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
<h3>{{$title}}</h3>
{{end}}
{{with .Params.sourcelink}}
<span class="showcase-source"><a href="{{.}}" target="_blank"><i class="icon-code"></i>Source</a></span>
<span class="showcase-source"><a href="{{.}}" target="_blank">&nbsp;Source</a></span>
{{end}}
</div>
{{- with .Params.tags -}}
+16
View File
@@ -77,3 +77,19 @@ main.showcase-list {
}
}
}
.showcase-source {
> a:before {
font-family:'fontello';
content: '\f121';
}
> a[href*="github"]:before {
content: '\f056';
}
> a[href*="gitlab"]:before {
content: '\f296';
}
> a[href*="bitbucket"]:before {
content: '\e80a';
}
}
+1 -1
View File
File diff suppressed because one or more lines are too long