ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.4k stars 1.55k forks source link

Does not transfer fontawesome fonts to public #100

Closed RyenNelsen closed 8 years ago

RyenNelsen commented 8 years ago

On hexo generate everything goes to plan, but when visiting the website, all the font-awesome fonts are missing. Performing a ls in public/font-awesome/fonts/ returns literally nothing.

ppoffice commented 8 years ago

Did you check out the latest version of Icarus?

Now Font Awesome fonts are under public\vendor\font-awesome\fonts folder.

RyenNelsen commented 8 years ago

I am on the most recent version. The issue is when you generate the public files, they are not copied over to the public folder. So you get 404 errors for those files. Unless you move them over manually.

ppoffice commented 8 years ago

So is there anything under public\vendor\font-awesome\fonts?

RyenNelsen commented 8 years ago

No. There is literally nothing.

ppoffice commented 8 years ago

Could you please post your site's _config.yml here?

RyenNelsen commented 8 years ago

Base website _config.yml or my icarus's _config.yml?

ppoffice commented 8 years ago

Base one

RyenNelsen commented 8 years ago

Sure thing:

# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Ryen's Blog
subtitle: Where bad things happen
description: A blog about cybersecurity and programming
author: Ryen Nelsen
author_title: Cybersecurity Specialist & Programmer
avatar: https://gravatar.com/avatar/e732c601f43fd04180823fdce02d35da?s=150
location: California
follow: https://github.com/RyenNelsen
language: en
timezone: America/Los_Angeles

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://www.ryennelsen.com
root: /
permalink: :year/:month/:title/
permalink_defaults:

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  tab_replace:

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page: 6
pagination_dir: page

# Extensions
## Plugins: https://github.com/hexojs/hexo/wiki/Plugins
## Themes: https://github.com/hexojs/hexo/wiki/Themes
theme: icarus
ppoffice commented 8 years ago

I visited your site and found Font Awesome is properly displayed.

RyenNelsen commented 8 years ago

Because I moved the files over manually. Here, allow me to start from scratch! :)

Check it out now.

I deleted the public folder, then did a hexo generate.

RyenNelsen commented 8 years ago

Uhhhh, well apparently it put them there now? Sorry about the confusion. It didn't work the last 5 times I did a hexo generate, but it put them there now.

ppoffice commented 8 years ago

Did you try hexo clean instead of deleting public folder?

RyenNelsen commented 8 years ago

Even doing hexo clean then hexo generate still puts them there. Must have been a hiccup. Thanks for the help though!

RyenNelsen commented 8 years ago

Though I am certain I figured out why. I did update your theme from an earlier version, and I neglected to do a hexo clean. This caused weird things to happen.