Git Product home page Git Product logo

genereto's People

Contributors

dependabot[bot] avatar federicoponzi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

genereto's Issues

Potential idea: support template_base_filename in metadata

not necessarily template_base_filename, but the idea would be to allow to use different template source file for different files.
for example, use index.html for index.md and page.html as source for mycoolpage.md and myproject.html for genereto.md and so on. Not sure if it's worth having though.

Add support for comments and TODOS.

as oppposed to variables which are embedded in templates, these are embedded in articles:

$GENERETO{this is a comment and it will be removed from the final output.}

This allow support for TODOs:
$GENERETO{TODO:} <- if it has todo, it won't be published. A line is printed to tell that it's not gonna get published even if is_draft is false.

Add support for non-blog websites

It should support creations of blog and custom websites. I'm planning to use it for fponzi.me and blog.fponzi.me for example. They will share the same template.

In my case, both will need to generate an index.html because they're on different domains. For this reason, I'll need to add support of a config entry to specify if we want to use the template to generate a blog or an index page.

it's a bit annoying because I would like to support both cases of:

  1. two projects, one template used to generate a blog and a website
  2. one project, one template used to generate a blog and a website

I'd like to achieve this with the minimum additional config. This is the plan:

all blog entries are inside the content/blog folder. If there is a blog folder, then assume user wants to generate a blog.
the config will specify the index page to use to hold the blog index.

blog:
    base_template: index.html # default 
    index_destination: index.html # default 

if there is an index.md file, it means the user wants to generate a custom website. If there is an index.md file, then the user needs to change the index_destination value for the blog in the config.

If users specifies additional variables, they should be available for the templating

Some variables are "standardized" to allow building interchange templates. But if users consistently adds some variable in their pages/articles, they can reuse them in their template.

myCoolkey = 1234
----
## hello world! 
my article

template:

<html>
<title>my page id $GENERETO[1234]</title>
<body>
<!-- start_content -->
<!-- end_content -->
</body>

Add a state unlisted

Unlisted state is similar to draft, but the article is available through the direct link.

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.