Giter Club home page Giter Club logo

brog's People

Contributors

aybabtme avatar faeriol avatar rosbo avatar uiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

brog's Issues

Need refactor

Now that this mess is released, need some major refactoring.

File Permissions Should Be Better

e.g. the user:group of the user creating the brog, directories should be 755 and files 644

New posts should copy permissions from old posts.

Windows - brog doesn't recognize templates

When running on windows, brog doesn't recognize templates under template\a_template.gohtml as being part of its structure. This is because somewhere, a '/' is hardcoded instread of using os.PathSeparator.

Need tests

Now that the proof of concept is out, need to seriously test this mess.

Need to verify that data structures work as intended.

  • Unit tests
  • Integration tests
  • System tests
  • User acceptance tests

broken `brog init`

$ brog init
A dark geometric shape is approaching...
[ERROR] Couldn't inject brog nanoprobes.
[ERROR] Message : creating directory at '' failed, mkdir : no such file or directory.
[ERROR] Message : creating directory at '' failed, mkdir : no such file or directory.

New post should have current time for date

Current brog post header is :

{
    "title":"",
    "author":"",
    "date":"1970-01-01T23:59:59.000Z",
    "invisible": true,
    "abstract":"",
    "language":"en"
}

It should have the current date.

Integrate GeSHi compatibility alongside Markdown's default syntax highlighting

Markdown (specifically, the version of Highlight.js it uses) has limited language support. In order to provide users with maximum flexibility, I suggest that GeSHi (the Generic Syntax Highlighter) support be integrated into brog, alongside Markdown. It uses simple syntax, basing the syntax highlighting off the lang attribute of a pre tag, like so:

<pre lang="haskell">
module Main
  where

main = putStrLn "Hello, world!"
</pre>

This would cover mainly less popular/new/old languages like Haskell (example above), Groovy, Eiffel, and has better-looking default style (more readable) than Highlight.js.

The complete list of languages supported by GeSHi is listed in the left sidebar of their page. The complete list of languages which can be included in a Highlight.js build can be found here.

Update the templates

The templates could be better. We need to let each entry type (page, post) have its own template, along with one for the index (we already have the index and the post templates). The names should be defined in the config.

While were at it, could the templates be loaded with a glob? That would remove the hardcoding of the various templates, and allow themes to add and remove templates.

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.