JoeyBling / hexo-theme-yilia-plus

一个简洁优雅的hexo主题 A simple and elegant theme for hexo.
https://zhousiwei.gitee.io/yilia-plus-demo/
MIT License
734 stars 172 forks source link

所有文章、关于我 这些按钮 点击会出现弹出新标签页 #34

Closed subaobaos closed 4 years ago

subaobaos commented 4 years ago

之前降低版本的回答 经过测试依旧存在

JoeyBling commented 4 years ago

@subaobaos 请贴下你的站点地址,以及根目录package.json文件的内容.

yuanjh6 commented 4 years ago

我的也是

JoeyBling commented 4 years ago

@hello886 请参考https://github.com/JoeyBling/hexo-theme-yilia-plus/issues/33

yuanjh6 commented 4 years ago

@JoeyBling 变成白页了。https://hello886.github.io/,3.9版本,注释include,hexo d -g,然后就空白页一样的,啥都没了

JoeyBling commented 4 years ago

@hello886 贴下你根目录_config.yml的配置,以及package.json文件的内容,还有网址也发我看下

yuanjh6 commented 4 years ago

_config.yml

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

# Site
title: Hexo
subtitle: ''
description: ''
keywords:
author: John Doe
language: en
timezone: ''

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing index.html from permalinks

# 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:
  enable: true # Open external links in new tab
  field: site # Apply to the whole site
  exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
  enable: true
  line_number: true
  auto_detect: false
  tab_replace: ''

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ''
  per_page: 10
  order_by: -date

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# 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
## Use post's date for updated date unless set in front-matter
use_date_for_updated: false

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

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
#include:
exclude:
ignore:

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: yilia-plus

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
    type: git
    repo: git@github.com:hello886/hello886.github.io.git
    branch: master

jsonContent:
    meta: false
    pages: false
    posts:
      title: true
      date: true
      path: true
      text: false
      raw: false
      content: false
      slug: false
      updated: false
      comments: false
      link: false
      permalink: false
      excerpt: false
      categories: false
      tags: true

package.json

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "3.9.0"
  },
  "dependencies": {
    "hexo": "^3.9.0",
    "hexo-deployer-git": "^2.1.0",
    "hexo-generator-archive": "^1.0.0",
    "hexo-generator-category": "^1.0.0",
    "hexo-generator-index": "^1.0.0",
    "hexo-generator-json-content": "^4.1.6",
    "hexo-generator-tag": "^1.0.0",
    "hexo-migrator-wordpress": "^1.0.0",
    "hexo-renderer-ejs": "^1.0.0",
    "hexo-renderer-marked": "^2.0.0",
    "hexo-renderer-stylus": "^1.1.0",
    "hexo-server": "^1.0.0"
  }
}

网址: github:https://github.com/hello886/hello886.github.io 网页:hello886.github.io

yuanjh6 commented 4 years ago

@JoeyBling

JoeyBling commented 4 years ago

@hello886 你本地预览的时候会有问题吗?

yuanjh6 commented 4 years ago

@JoeyBling 我没预览,直接跑的,我预览试试

yuanjh6 commented 4 years ago

@JoeyBling 也是空的,预览页不行

JoeyBling commented 4 years ago

@JoeyBling 也是空的,预览页不行

好的,我看看问题

yuanjh6 commented 4 years ago

解决了,这个时yilia的问题,你基于他做的修改,自然也有同样问题。

在..\themes\yilia\layout_partial\left-col.ejs中

<nav class="header-smart-menu">
            <% for (var i in theme.smart_menu){ %>
                <% if(theme.smart_menu[i]){ %>
                <a q-on="click: openSlider(e, '<%-i%>')" target="_self" href="javascript:void(0)"><%= theme.smart_menu[i] %></a>
                <% } %>
            <%}%>
        </nav>

参考了:https://github.com/litten/hexo-theme-yilia/issues/852

JoeyBling commented 4 years ago

@hello886 需要注释掉根目录_config.yml文件的includeexcludeignore配置

JoeyBling commented 4 years ago

@subaobaos 我更新了使用操作,参考 https://github.com/JoeyBling/hexo-theme-yilia-plus/issues/33

imdreamer2018 commented 4 years ago

image 为什么我这里所有文章,点的是空白,也不能搜索,然后点击旁边的空白关闭不了这个所有文章菜单。

JoeyBling commented 4 years ago

@imdreamer2018 mathjax配置项错误,是true不是ture

imdreamer2018 commented 4 years ago

@imdreamer2018 mathjax配置项错误,是true不是ture

emmmm,犯这种低级错误。谢谢你。。。

JoeyBling commented 4 years ago

没事,正常的。我也会犯,重要的是要debug发现错误