diff options
author | Chester Leung <chester.leung@berkeley.edu> | 2020-05-05 18:49:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 18:49:43 +0300 |
commit | b103af69cf7acd438c934ea5a1bde2b017efe8cd (patch) | |
tree | 46ed86ca72e7cd669fd797b04462a6b3db509261 | |
parent | bd77fd297fce0ed615fc09b00a2b8f08408cbd4a (diff) |
Support for Academicon
Add Academicon icon set (https://jpswalsh.github.io/academicons/)
-rw-r--r-- | README.md | 11 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 1 |
3 files changed, 13 insertions, 1 deletions
@@ -91,6 +91,17 @@ It is possible to use an icon from [the solid set](https://fontawesome.com/icons url = "mailto:mail@example.org" ``` +It is also possible to use an icon from [the Academicon set](https://jpswalsh.github.io/academicons/). To do this, specify the icon set and icon origin. + +``` + [[params.links]] + iconorigin = "ai" + iconset = "ai" + icon = "google-scholar" + title = "Google Scholar" + url = "https://scholar.google.com" +``` + ### Additional content It's possible to add additional content to your site, for example a contact form. You can add this in `/layouts/partials/content.html`. Additional content will always be added "below the fold", ie. your introduction will always fill 100% of the height of the screen. diff --git a/layouts/index.html b/layouts/index.html index ae274ae..61ca658 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,7 +17,7 @@ <div class="links"> {{- range .Site.Params.links -}} <a rel="me" href="{{ .url | safeURL }}" title="{{ .title }}"> - <span class="{{ .iconset | default "fab" }} fa-{{ .icon }}"></span> + <span class="{{ .iconset | default "fab" }} {{.iconorigin | default "fa" }}-{{ .icon }}"></span> </a> {{- end -}} </div> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index aed1b99..ba067ae 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,6 +23,7 @@ <link rel="stylesheet" href="{{ $style.RelPermalink }}"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700"> + <link rel="stylesheet" href="https://cdn.rawgit.com/jpswalsh/academicons/master/css/academicons.min.css" crossorigin="anonymous"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous"> <!-- Favicon --> |