Merge pull request #48 from pyvain/master

Rename /static/icons to /static/images/social
This commit is contained in:
Jake Wiesler 2020-06-24 12:58:16 -04:00 committed by GitHub
commit 362ab606ea
12 changed files with 4 additions and 4 deletions

View File

@ -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]
# ...

View File

@ -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;
}

View File

@ -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>

View File

Before

Width:  |  Height:  |  Size: 251 B

After

Width:  |  Height:  |  Size: 251 B

View File

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 354 B

View File

Before

Width:  |  Height:  |  Size: 303 B

After

Width:  |  Height:  |  Size: 303 B

View File

Before

Width:  |  Height:  |  Size: 521 B

After

Width:  |  Height:  |  Size: 521 B

View File

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 490 B

View File

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 400 B

View File

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 400 B

View File

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

View File

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 565 B