Merge pull request #48 from pyvain/master
Rename /static/icons to /static/images/social
|
@ -71,8 +71,8 @@ If any of these options are given, `hugo-theme-codex` will render the social ico
|
|||
See the contents of the [example site](https://github.com/jakewies/hugo-theme-codex/tree/master/exampleSite) for more details.
|
||||
|
||||
You can also create additional social icons by:
|
||||
1. Add your own SVGs in `static/icons/`, for example `static/icons/reddit.svg`.
|
||||
2. Modify your site's config as follows:
|
||||
1. Adding your own SVGs in `static/images/social/`, for example `static/images/social/reddit.svg`.
|
||||
2. Modifying your site's config as follows:
|
||||
```toml
|
||||
[params]
|
||||
# ...
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
height: 24px;
|
||||
width: 24px;
|
||||
margin: 0 1.5rem;
|
||||
background-image: url(/icons/chevron-left.svg);
|
||||
background-image: url(/images/chevron-left.svg);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{ $icon := anchorize . }}
|
||||
{{ if isset $currentPage.Site.Params $icon }}
|
||||
<a class="social-icons__icon" title="{{ . }}"
|
||||
style="background-image: url(/icons/{{ $icon }}.svg)"
|
||||
style="background-image: url(/images/social/{{ $icon }}.svg)"
|
||||
href="{{ index $currentPage.Site.Params $icon }}"
|
||||
target="_blank" rel="noopener">
|
||||
</a>
|
||||
|
|
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 521 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 565 B |