Coder Social home page Coder Social logo

very-simple's Introduction

very-simple

Demo

A theme that aimed to be very simple, creatd by lotabout

Installation

Install theme and renderers:

git clone https://github.com/lotabout/very-simple themes/very-simple
npm install hexo-renderer-sass --save
npm install hexo-renderer-jade --save

Edit _config.yml in hexo root, change theme to very-simple.

Configuration

Default config:

# very-simple/_config.yml
menu:
  Home: /
  Archives: archives
social:
  email:
  twitter:
  github:
  googleplus:
  rss: /atom.xml
fancybox: true
duoshuo: #duoshuo_shortname
disqus: #disqus _shortname
google_analytics: #Google Analytics Tracking Code
google_adsense_page_level_ads: #Google Adsense Page Level Ads Code
  • menu - The navigation links on the header
  • social - Social icons such as email/github/twitter etc. to show on the footer
    • email - Email address
    • twitter - twitter account
    • github - github account
    • googleplus - Google Plus account
    • rss - RSS subscription link, learn more in hexo-generator-feed
  • fancybox - Enable Fancybox
  • duoshuo - Duoshuo shortname
  • disqus - Disqus shortname
  • google_analytics - Google Analytics Tracking Code
  • google_adsense_page_level_ads: - Google Adsense Page Level Ads Code

If you want to contain this theme only as a submodule, then you may be unwilling to keep all configuration inside theme folder(very-simple/_config.yml). In this case, you can keep the configurations in root configuration file /_config.yml by:

# /_config.yml
very_simple:
  menu:
    Home: /
    Archives: archives
  social:
    email:
    twitter:
    github:
    googleplus:
    rss: /atom.xml
  fancybox: true
  duoshuo: #duoshuo_shortname
  disqus: #disqus _shortname
  google_analytics: #Google Analytics Tracking Code
  google_adsense_page_level_ads: #Google Adsense Page Level Ads Code

##Features

Logo

You can set a favicon.ico for your website, please put it into source folder of hexo directory, recommended size: 32px*32px.

Pages

To customize pages, such as traditional 'About' page, follow the following steps:

  1. create a directory about/ under /source

  2. create a corresponding index page index.md under directory about/.

  3. add link to the page to menu configuration:

    menu: About: about

Note that you don't need to add directory and create about.md under /source. But the configuration should changed to:

    menu:
      About: about.html

Comments

You can control whether to show comment system(default to enabled) in pages. Just add comments: true or comments: false in front-matter section of page. i.e.

title: About
date: 2013-12-26 22:52:56
layout: page
comments: true
---

Excerpt

You can control the abstract of a post shown at index, by:

  1. Filling a description: item in front-matter of the post.md
  2. Just inserting a <!--more--> before your hidden content.
  3. Otherwise it will fetch the first paragraph as excerpt.

very-simple's People

Contributors

jianggua avatar lotabout avatar marlin-na avatar sujunmin avatar timqi 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

very-simple's Issues

How to Modify the publish time of a post?

It's cool this Theme!

when I migrate from jekyll, I paste my *.md file to source/_post folder. but publish time of posts become all the same when i do the paste. how to handle this?

hexo g时报错

ERROR TypeError: /home/blog/themes/very-simple/layout/archive.jade:34
32| .post-archive
33| //Use lodash to classify posts. See https://lodash.com/docs#groupBy

34| each posts, year in _.groupBy(page.posts.toArray(), function(p){return -p.date.format('YYYY')})
35| h2= -year
36| ul.listing
37| for post in posts

Cannot read property 'groupBy' of undefined
at eval (eval at exports.compile (/home/blog/node_modules/jade/lib/index.js:218:8), :594:17)
at eval (eval at exports.compile (/home/blog/node_modules/jade/lib/index.js:218:8), :774:4)
at eval (eval at exports.compile (/home/blog/node_modules/jade/lib/index.js:218:8), :986:22)
at res (/home/blog/node_modules/jade/lib/index.js:219:38)
at _View._compiled (/home/blog/node_modules/hexo/lib/theme/view.js:136:50)
at _View.render (/home/blog/node_modules/hexo/lib/theme/view.js:39:17)
at /home/blog/node_modules/hexo/lib/hexo/index.js:64:21
at tryCatcher (/home/blog/node_modules/bluebird/js/release/util.js:16:23)
at /home/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream._read (/home/blog/node_modules/hexo/lib/hexo/router.js:47:5)
at RouteStream.Readable.read (stream_readable.js:481:10)
at resume
(_stream_readable.js:968:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
path: '/home/blog/themes/very-simple/layout/archive.jade'
}

你好,我使用你的主题,出现了一些小问题

页面显示以下代码
extends base - var current_title = page.title || tag.name || category.name || site.title block title title= (config.title ? (config.subtitle ? config.title + " | " + config.subtitle : config.title) : "") block main article #index-main.container.entries for post in page.posts.toArray() .post-entry .post-time= post.date.format(config.date_format) .post-desc .post-title if post.link a(href=url_for(post.link),target="_blank", itemprop="url")= post.title else a(href=url_for(post.path))= post.title .post-content if post.description != post.description else if post.excerpt != post.excerpt else if post.content - var br = post.content.indexOf('
') if br < 0 != post.content else != post.content.substring(0, br + 4) .post-meta if (post.tags && post.tags.length) .post-tags != list_tags(post.tags, {show_count: false, class: 'post-tag', style:'none', separator:'/'}) if (post.categories && post.categories.length) .post-categories != list_categories(post.categories, {show_count: false, class: 'post-category', style: 'none', separator: '>'}) include _partial/paginator.jade
试过好多主题后, 我很喜欢这个主题, 但是在最后出现了这个问题.
除了设置我的博客跟目录下的_config.yml文件还需要改动其他地方吗?

Markdown 的样式有点乱,建议调整一下

主页样式挺喜欢,就是 markdown 的样式,比如字体大小(list太大、h3偏小),代码高亮(如果是通过缩进的代码,会有方框),还有分割线样式(包括页底的分割线怎么删?),图片容易刷不出来。
建议按照一些比较好的 markdown 软件的样式调整一下。看截图实在很乱,望调整 :)
image

Change the English font at headings

One thing that bothers me is that the English font at headings are not so well displayed (unclear). Would there be a way to change it? Thank you.

How to configure templated about page

I got a question about how to configure the new 'about' page with the template of normal article. I have tried following the instruction in the readme.md file. However, I could only got a blank page when click about page. Do I need to write html file for what I need. Thank you.

Windows执行npm install hexo-renderer-sass --save问题

#2

这个issues的解决方案依旧是下面的效果:

qq 20160715142848

执行npm install hexo-renderer-jade --save正确
执行npm install hexo-renderer-sass --save过程报错。
下面是报错的信息:
qq 20160715144816
qq 20160715145024
我的工具版本:
qq 20160715145345
NPM version: 3.10.5
帮看下呗

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.