mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00:00
Add host-specific icons to source links in showcase
This commit is contained in:
@@ -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"> Source</a></span>
|
||||
{{end}}
|
||||
</div>
|
||||
{{- with .Params.tags -}}
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user