refactor: switch to Fork-Awesome

This commit is contained in:
curben 2019-04-15 14:16:07 +09:30
parent 8a17ef7ad8
commit d6c36abab9
13 changed files with 2876 additions and 41 deletions

View File

@ -80,12 +80,12 @@ The following are the major changes I made compared to the upstream.
### [Typing](https://github.com/geekplux/hexo-theme-typing) theme
- Homepage shows index of posts.
- Remove header and footer display (except for `/about` page).
- Use the latest version of [jQuery](https://jquery.com/download/), [fancyBox](https://github.com/fancyapps/fancyBox/releases), [Font Awesome](https://github.com/FortAwesome/Font-Awesome/releases) and [clipboard.js](https://github.com/zenorocha/clipboard.js/).
- Use the latest version of [jQuery](https://jquery.com/download/), [fancyBox](https://github.com/fancyapps/fancyBox/releases), [Fork Awesome](https://github.com/ForkAwesome/Fork-Awesome/releases) and [clipboard.js](https://github.com/zenorocha/clipboard.js/).
- Remove web analytics, comment systems and donation links.
## License
The content of this blog itself is licensed under the [Creative Commons Attribution Share Alike 4.0 International license](https://creativecommons.org/licenses/by-sa/4.0/), and the underlying source code used to format and display that content is licensed under the [MIT license](LICENSE.md).
The content of this blog is licensed under the [Creative Commons Attribution Share Alike 4.0 International license](https://creativecommons.org/licenses/by-sa/4.0/), and the underlying source code used to format and display that content is licensed under the [MIT license](LICENSE.md).
---
Useful links:

View File

@ -67,8 +67,8 @@ pagination_dir: page
## Themes: https://hexo.io/themes/
theme: typing
# hexo-autonofollow
## https://github.com/liuzc/hexo-autonofollow
# hexo-nofollow
## https://github.com/weyusi/hexo-nofollow
nofollow:
enable: true
@ -96,26 +96,25 @@ theme_config:
GitLab: https://gitlab.com/curben/blog
# Your Feed Location
# https://github.com/hexojs/hexo-generator-feed
#rss: /atom.xml
# Content
# Media display enhancement
# https://github.com/fancyapps/fancyBox
fancybox: false
# Profile
nickname: curben's blog
description: Troubleshooting, tips & tricks, etc.
# Load fontawesome icons? Also see the links option
# Load forkawesome icons? See the links option below.
icons: false
# 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 link names that correspond to the icon style (solid or brands)
# https://fontawesome.com/cheatsheet
# Use the forkawesome icon names (https://forkaweso.me/Fork-Awesome/icons/) without the fa- prefix
links:
solid:
Home: /
brands:
GitLab: https://gitlab.com/curben/blog

View File

@ -44,8 +44,6 @@
<%- css('css/typing') %>
<% if (theme.icons) { %>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/js/solid.min.js" data-sri-fallback="/fontawesome/solid.min.js" integrity="sha384-IA6YnujJIO+z1m4NKyAGvZ9Wmxrd4Px8WFqhFcgRmwLaJaiwijYgApVpo1MV8p77" crossorigin="anonymous"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/js/brands.min.js" data-sri-fallback="/fontawesome/brands.min.js" integrity="sha384-rUOIFHM3HXni/WG5pzDhA1e2Js5nn4bWudTYujHbbI9ztBIxK54CL4ZNZWwcBQeD" crossorigin="anonymous"></script>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/js/fontawesome.min.js" data-sri-fallback="/fontawesome/fontawesome.min.js" integrity="sha384-EMmnH+Njn8umuoSMZ3Ae3bC9hDknHKOWL2e9WJD/cN6XLeAN7tr5ZQ0Hx5HDHtkS" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fork-awesome/1.1.7/css/fork-awesome.min.css" data-sri-fallback="/forkawesome/css/fork-awesome.min.css" integrity="sha384-mByhW6NjnxyShh67P9+fepUvYSd7Uz/qV6e2u4kA2Fi4ZkjXxIP2mRkyK9dwK24W" crossorigin="anonymous">
<% } %>
</head>

View File

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

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 it is too large Load Diff

After

Width:  |  Height:  |  Size: 470 KiB