Use fontawesome 5 svg & js framework

This commit is contained in:
curben 2018-09-30 15:12:38 +09:30
parent 0bb968a58c
commit bd4a14dfa3
13 changed files with 43 additions and 1179 deletions

View File

@ -109,10 +109,13 @@ theme_config:
# Footer area links
# If you set "icons: false" link names will be clear text
# If "icons: true" link names will interpreted as fontawesome icon names
# Use only the brand icon names (https://fontawesome.com/cheatsheet#brands)
# Use link names that correspond to the icon style (solid or brands)
# https://fontawesome.com/cheatsheet
links:
Home: /
GitLab: https://gitlab.com/curben/curben.gitlab.io
solid:
Home: /
brands:
GitLab: https://gitlab.com/curben/curben.gitlab.io
# nav position (top, left. top is default)
nav: left

View File

@ -40,7 +40,8 @@
<%- css('css/typing') %>
<% if (theme.icons){ %>
<%- css('css/fontawesome.min.css') %>
<%- css('css/brands.min.css') %>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/solid.js" x-sri-fallback="/fontawesome/solid.min.js" integrity="sha384-GJiigN/ef2B3HMj0haY+eMmG4EIIrhWgGJ2Rv0IaWnNdWdbWPr1sRLkGz7xfjOFw" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/brands.js" x-sri-fallback="/fontawesome/brands.min.js" integrity="sha384-2vdvXGQdnt+ze3ylY5ESeZ9TOxwxlOsldUzQBwtjvRpen1FwDT767SqyVbYrltjb" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/fontawesome.js" x-sri-fallback="/fontawesome/fontawesome.min.js" integrity="sha384-2OfHGv4zQZxcNK+oL8TR9pA+ADXtUODqGpIRy1zOgioC4X3+2vbOAp5Qv7uHM4Z8" crossorigin="anonymous"></script>
<% } %>
</head>

View File

@ -9,14 +9,23 @@
<hr/>
</div>
</div>
<ul class="footer-links">
<% for (var key in theme.links) { %>
<li>
<% if (theme.icons){ %>
<a href="<%= theme.links[key] %>"><span class="fa fa-<%= key %>"></span></a>
<% } else { %>
<a href="<%= theme.links[key] %>"><%= key %></a>
<% } %>
</li>
<ul class="footer-links">
<% for (var key in theme.links.solid) { %>
<li>
<% if (theme.icons){ %>
<a href="<%= theme.links.solid[key] %>"><span class="fas fa-<%= key %>"></span></a>
<% } else { %>
<a href="<%= theme.links.solid[key] %>"><%= key %></a>
<% } %>
</ul>
</li>
<% } %>
<% for (var key in theme.links.brands) { %>
<li>
<% if (theme.icons){ %>
<a href="<%= theme.links.brands[key] %>"><span class="fab fa-<%= key %>"></span></a>
<% } else { %>
<a href="<%= theme.links.brands[key] %>"><%= key %></a>
<% } %>
</li>
<% } %>
</ul>

View File

@ -1,5 +0,0 @@
/*!
* Font Awesome Free 5.3.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 633 KiB