the one theme for nico
CSS HTML JavaScript Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
templates
Makefile
README.md
theme.js

README.md

One Theme

The One Theme for nico

This theme requires nico 0.4.6+ now.

Configuration

The basic configuration for a blog:

{
    "source": "content",
    "output": "_site",
    "theme": "_themes/one",
    "sitename": "Nico",
    "siteurl": "http://lab.lepture.com/nico/",
    "permalink": "{{directory}}/{{filename}}.html",
    "writers": [
        "nico.PostWriter",
        "nico.PageWriter",
        "nico.FileWriter",
        "nico.StaticWriter",
        "nico.ArchiveWriter",
        "nico.YearWriter",
        "nico.TagWriter",
        "nico.DirectoryWriter",
        "nico.FeedWriter"
    ]
}

Additional configuration this theme:

  • tagline: A description of your site.
  • touchIcon: Link of Apple Touch Icon.
  • hideNico: Hide nico copyright at bottom.
  • github: Github link, a github fork badge will display.
  • navigation: A array of items of navigation.

Navigation example:

{
    "navigation": [
        {"title": "Life", "link": "/life/"},
        {"title": "Work", "link": "/work/"}
    ]
}

Comment

Comment is available for posts. This theme support disqus and duoshuo.

Configure a disqus short name:

{
    "disqus": "short name"
}

If you prefer duoshuo:

{
    "duoshuo": "short name"
}

Using Github for Comments:

{
    "githubIssues": "Your github issues url"
}