Git Product home page Git Product logo

hexo-theme-primer's Introduction

Hexo-Theme-Primer

image

为什么叫Primer?

使用了Github的primer,主题弥漫着一股Git风,由于个人是个强迫症患者,喜欢简洁 去掉了 搜索 分类 只保留了tag

安装

git clone https://github.com/yumemor/hexo-theme-primer.git

放在你的Hexo/theme下面

修改_config.yml:

theme: primer

功能

导航

menu:
	Home: /
	Life: 
		href: subentry/Life/
		target: true
	Open-Source: open-source/
	Blog: blog/
	Guestbook: guestbook/

target代表新开启一个页面进行打开

个人信息

profile:
	location: ChengDu, China
	github: yumemor
	#stackoverflow: 
		#title: yumemor
		#href: http://stackoverflow.com/users/5662132/yumemor
	#organization: 组织/公司

布局

sidebar: true
navfixed: true
  • 开启右侧菜单栏
  • 开启导航fixed布局

配置多说

comments:
	duoshuo_username: 你的账号

注意⚠️ 如果用disqus评论则必须注释掉多说

#comments:
	#doshuo_username: 你的账号

配置Disuaz

找到primer/_widget/disqus-comments.ejs

<div class="comments">
    <div id="disqus_thread"></div>

    <script>
    /**
    * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
    * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
    */
    /*
    var disqus_config = function () {
    this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
    this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
    };
    */
    (function() { // DON'T EDIT BELOW THIS LINE
    var d = document, s = d.createElement('script');

    s.src = '//yumemor.disqus.com/embed.js';

    s.setAttribute('data-timestamp', +new Date());
    (d.head || d.body).appendChild(s);
    })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</div>

修改script标签和noscript的标签为disqus提供的代码,点击生成代码:disqus

git项目

主要是在博客首页显示 以及开源项目页面使用。

github:
  popular_repos: ['cordova-plugin-alipay','hexo-theme-primer']
  contribute_repos: ['yumemor/1','yumemor/2']

注意⚠️ 配置git项目先检查profile->github 有无配置 这是前置条件。

  • 自己的项目
  • 贡献的项目

不足

由于博客一般都是PC进行访问,所以没有在响应式下面花工夫,此款主题的响应式布局不是很完善,欢迎大家加入自己的想法。

最后

欢迎大家StarFork,另外 有个小小的请求 : 能不能点击下Follow?

hexo-theme-primer's People

Watchers

James Cloos avatar Luke Du avatar

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.