hexo-theme-icarus/source/_posts/theme/Polymorphic-Link-Settings.md

2.5 KiB

title: Polymorphic Link Settings slug: Polymorphic-Link-Settings date: 2018-10-22 19:23:57 thumbnail: /gallery/thumbnails/flower.jpg categories:


You may already notice that Icarus allows you to put icon links on the right of the navigation bar, the bottom of the profile widget, and the right side of the footer with the following format:

footer:
    links:
        'Creative Commons':
            icon: fab fa-creative-commons
            url: 'https://creativecommons.org/'
        'Attribution 4.0 International':
            icon: fab fa-creative-commons-by
            url: 'https://creativecommons.org/licenses/by/4.0/'

In the above link format, you need to specify the name of the link (e.g., Creative Commons), as well as the icon class name (e.g., Font Awesome class name) and link URL. However, Icarus also accept pure text links with a link name and URL in the format below:

footer:
    links:
        'Creative Commons': 'https://creativecommons.org/'
        'Attribution 4.0 International': 'https://creativecommons.org/licenses/by/4.0/'

Evie Shaffer