Giter Club home page Giter Club logo

brite's Issues

Rack server w/o generation

Ultimately I want to be able to serve Brite sites via the rack server without having to generate the site on disk. Currently the rack server provided simply serves up a disk location, so generating the site first is necessary.

This feature would allow brite sites to be served by rack-capable hosting services (like Heroku) very easily.

running "brite",met error,how to fix it?

hi.

as3:/brite-site# brite
/usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- facets/hash/rekey (LoadError) from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan/core_ext.rb:1:in <top (required)>' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan.rb:5:inrequire_relative'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan.rb:5:in <module:Neapolitan>' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/neapolitan-0.4.1/lib/neapolitan.rb:1:in<top (required)>'
from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/brite-0.7.0/lib/brite/controller.rb:1:in <top (required)>' from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/brite-0.7.0/lib/brite.rb:10:in<top (required)>'
from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/brite-0.7.0/bin/brite:2:in <top (required)>' from /usr/local/ruby/bin/brite:23:inload'
from /usr/local/ruby/bin/brite:23:in `

'
as3:/brite-site#

tks a lot

Support for .style files?

Perhaps it would be best if Brite had support for an additional.style type of file, instead of overloading .page which is now used for creation of stylesheets.

Summary Truncation

Need to improve truncation of summaries. This is tricky for brite because it allows multiple formats per-document, so word counts aren't easily calculated with accuracy.

One alternative I noticed by another blog engine was to use a marker (eg. '~~') to indicate the cut-off point. This is nice b/c it allows the writer to decide where the summary cut-off should be.

Note we can also offer a summary field in the YAML front matter that would be used instead if present.

Pagination Support

Need to add pagination support for blogging. Once could of course manually add pages that covered only a given period or number of posts, but it would be nice if this could be done automatically somehow.

Pagination can be a challenge for a static site, since each page must be a separate file. I think it would be best to keep the design highly structured around time periods. We could offer an option to paginate on a monthly or yearly basis (default to yearly), and set which page to be paginated. This would create multiple paged for the same template page, but each having the different set of posts.

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.