iTimeTraveler / hexo-theme-hiker

An attractive theme for Hexo. called "Hiker", short for "HikerNews".
https://itimetraveler.github.io/hexo-theme-hiker/
MIT License
368 stars 84 forks source link

本地预览与实际不同 #61

Closed zxdawn closed 7 years ago

zxdawn commented 7 years ago

情况如下: 本地: local

实际: deploy的

我已经这样执行过:

hexo clean hexo generate hexo server hexo deploy

附:_config.yml

# ---------------------------------------------------------------
# Site Information Settings
# ---------------------------------------------------------------

# Header Menu
menu:
  Home: /
  Archives: archives
  # Categories: categories
  Tags: tags
  About: about
rss: /atom.xml

since: 2013

# Set default keywords (Use a comma to separate)
keywords: ""

# Put your favicon.ico or avatar.jpg into `hexo-site/themes/hiker/source/` directory.
avatar: 
  enable: true
  border: true
  width: 124
  height: 124
  top: 0
  url: css/images/mylogo.jpg

# Homepage
# eg. home_background_image: [css/images/home-bg.jpg, http://t.cn/RMbvEza]
# eg. mode: image | polyline | trianglify
home_background_image:
  enable: true
  mode: image
  rolling: true
  url: [css/images/home-bg.jpg, css/images/sample.jpg, https://source.unsplash.com/collection/954550/1920x1080]

home_logo_image:
  enable: false
  border: false
  url: css/images/homelogo.jpg

# AboutPage background
about_big_image: [css/images/pose.jpg, css/images/sample.jpg, https://source.unsplash.com/collection/954550/1920x1080]

# Archive pagination
archive_pagination: true

# Post Article's Content
post_catalog:
  enable: true

# Content
fancybox: true

# Sidebar
sidebar: right
widgets:
- social
- category
- tag
- tagcloud
- archive
- recent_posts

# Social Links
# Key is the name of FontAwsome icon.
# Value is the target link (E.g. GitHub: https://github.com/iTimeTraveler)
social:
  Github: https://github.com/zxdawn
  # Weibo: http://www.yoursite.com
  # Twitter: 
  # Facebook: 
  # Google-plus: 
  # Instagram: 
  # Pinterest: 
  # Flickr: 
  email: xinzhang1215@gmail.com

# Search
search:
    insight: true # you need to install `hexo-generator-json-content` before using Insight Search
    swiftype: # enter swiftype install key here
    baidu: false # you need to disable other search engines to use Baidu search, options: true, false

# comment ShortName, you can choose only ONE to display.
# gentie_productKey: #your-gentie-product-key
# duoshuo_shortname: 
# disqus_shortname: 
livere_shortname: MTAyMC8yOTQ4MS82MDQ5
# uyan_uid: 
# wumii: 

# Code Highlight theme
# Available value:
#    default | gray | normal | night | night eighties | night blue | night bright
# https://github.com/chriskempson/tomorrow-theme
highlight_theme: night bright

# Article theme color
# Available value:
#    random | orange | blue | red | green | black
theme_color: black

# display widgets at the bottom of index pages (pagination == 2)
index_widgets:
# - category
# - tagcloud
# - archive

# widget behavior
archive_type: 'monthly'
show_count: true

# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
google_site_verification:
baidu_site_verification:
qihu_site_verification:

# Miscellaneous
google_analytics:
gauges_analytics:
baidu_analytics:
tencent_analytics:
twitter:
google_plus:
fb_admins:
fb_app_id:

# Facebook SDK Support.
# https://github.com/iissnan/hexo-theme-next/pull/410
facebook_sdk:
  enable: false
  app_id:       #<app_id>
  fb_admin:     #<user_id>
  like_button:  #true
  webmaster:    #true

# CNZZ count
cnzz_siteid: 1260716016

# busuanzi count
# http://busuanzi.ibruce.info/
show_busuanzi_view_counts: true

# donation button
donate:
    enable: true
    message: '人生知己,两三足矣。多则无益,少则无趣。'
    wechatImage: http://ox58se1xg.bkt.clouddn.com/wechat.jpg
    alipayImage: http://ox58se1xg.bkt.clouddn.com/alipay.jpg
zxdawn commented 7 years ago

不知为何,过了几分钟就更新了。

cristph commented 7 years ago

try this

hexo clean

then generate and deploy again