Coder Social home page Coder Social logo

yumexupanic / hexo-theme-primer Goto Github PK

View Code? Open in Web Editor NEW
119.0 2.0 24.0 748 KB

The github style (primer) for Hexo theme.

Home Page: http://yumexupanic.github.io/hexo-theme-primer/

JavaScript 96.95% CSS 1.45% EJS 1.10% Stylus 0.50%
hexo hexo-theme prime theme

hexo-theme-primer's People

Contributors

isnine avatar somiawhitering avatar yumexupanic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hexo-theme-primer's Issues

似乎无法粘贴视频啊

测试视频(bilibili)

<embed height="415" width="544" quality="high" allowfullscreen="true" type="application/x-shockwave-flash" src="http://static.hdslb.com/miniloader.swf" flashvars="aid=6966278&page=1" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"></embed>

测试视频2(音悦台)

<embed src="http://player.yinyuetai.com/video/player/2721508/v_0.swf" quality="high" width="480" height="334" align="middle"  allowScriptAccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash"></embed>

测试视频3(优酷)

<embed src='http://player.youku.com/player.php/sid/XMTg2NzY1MTAyNA==/v.swf' allowFullScreen='true' quality='high' width='480' height='400' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>

测试视频4(优酷)

<iframe height=498 width=510 src='http://player.youku.com/embed/XMTg2NzY1MTAyNA==' frameborder=0 'allowfullscreen'></iframe>

音乐目前正常播放,难道是我的姿势不对?求作者解答,谢谢。

使用该主题失败

将主题clone下来后,修改yml文件为改主题:

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

保存后运行:

hexo server

浏览器请求:http://localhost:4000/

直接控制台报错:

INFO  Start processing
INFO  Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.
Unhandled rejection TypeError: E:\study\blog.zhao\themes\hexo-theme-primer\layout\lay
out.ejs:1
 >> 1| <%- partial('_partial/head') %>
    2| <%- body %>
    3| <%- partial('_partial/footer') %>
    4| <%- partial('_partial/after-footer') %>

E:\study\blog.zhao\themes\hexo-theme-primer\layout\_partial\head.ejs:21
    19|
    20|         <script>
 >> 21|                 var search_path = "<%= config.search.path %>";
    22|                 if (search_path.length == 0) {
    23|                 search_path = "search.xml";
    24|                 }

Cannot read property 'path' of undefined
    at eval (eval at <anonymous> (E:\study\blog.zhao\node_modules\hexo-renderer-ejs\n
ode_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:932)
    at eval (eval at <anonymous> (E:\study\blog.zhao\node_modules\hexo-renderer-ejs\n
ode_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:1229)
    at E:\study\blog.zhao\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:
255:15
    at _compiledSync (E:\study\blog.zhao\node_modules\hexo\lib\theme\view.js:122:20)
    at View.renderSync (E:\study\blog.zhao\node_modules\hexo\lib\theme\view.js:50:21)

    at Object.partial (E:\study\blog.zhao\node_modules\hexo\lib\plugins\helper\partia
l.js:42:17)
    at Object.wrapper (E:\study\blog.zhao\node_modules\hexo\node_modules\lodash\lodas
h.js:4994:19)
    at eval (eval at <anonymous> (E:\study\blog.zhao\node_modules\hexo-renderer-ejs\n
ode_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:35)
    at eval (eval at <anonymous> (E:\study\blog.zhao\node_modules\hexo-renderer-ejs\n
ode_modules\ejs\lib\ejs.js:242:14), <anonymous>:30:222)
    at E:\study\blog.zhao\node_modules\hexo-renderer-ejs\node_modules\ejs\lib\ejs.js:

然后切换为hexo自带主题。没有问题。

some feedback

用了一下,几点反馈。

  1. 中英文切换

最好能配置中英文,这样在英文条件下hexo generate出来的,像“文章目录”,“继续阅读”可以自动匹配成英文

  1. 留言版

配置了disqus貌似不管用?

  1. 首页的大标题怎么配置Stay Hungry. Stay Foolish

我的配置

# Header
menu:
    Home: /
    Open-Source: open-source/
    Blog: blog/
    About: about/

# Profile
profile:
    location: BeiJing,  China
    github: xiaopeng163
    #stackoverflow:
        #title: yumemor
        #href: http://stackoverflow.com/users/5662132/yumemor
    #organization: test

#Widget
sidebar: true
navfixed: false

#WidgetText
excerpt_link: Continue Reading

github:
  popular_repos: ['www.pengxiao.me']
  contribute_repos: ['smartbgp/yabgp','smartbgp/yabmp', 'osrg/gobgp']

#Comments
#comments:
#   duoshuo_username: yumemor
comments:
        disqus_shortname: httpwwwpengxiaome
#Source Code
source_code: https://github.com/xiaopeng163/www.pengxiao.me

发现主题的分页和文章title俩bug

分页这个还好,不是什么大问题
page
但是文章title不显示是否会不利于SEO收录呢?
title

昨天折腾到半夜,才调好,这俩bug让我感觉特别不适应,还有就是多说评论全没了,不知道为何

本地搜索的问题

更新了新主题,也安装了插件,改了两个_config.yml文件,但是本地搜索好像还是和之前谷歌搜索一样

将来会支持移动端吗?

disqus 国内会被墙,能否加一个button(点击加载评论),当点击了按钮再去加载disqus模块呢?
这样就不会一直在转圈。

请教一个使用方面的问题

你好,我使用时发现了一个报错
ERROR Process failed: layout/_widget/sidebar-categories
另外我发现好像主题代码高亮没办法用
我的博客地址是www.wxz.name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.