federicoponzi / genereto Goto Github PK
View Code? Open in Web Editor NEWA static site generator for blogs.
A static site generator for blogs.
genereto --new <project-path>
will either generate the files or fetch a base template and unzip it.
that uses all the variables and features.
an idea for later - right now genereto is handling all internal links.
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.
Can be derived from git
it would be nice to have it hosted somewhere.
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.
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:
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.
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>
Unlisted state is similar to draft, but the article is available through the direct link.
watch the project folder and rebuild the things that changed.
And after this is completed, add auto page reload.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.