meddle0x53 / blogit Goto Github PK
View Code? Open in Web Editor NEWOTP application for generating blog posts from a Git repository containing markdown files.
License: MIT License
OTP application for generating blog posts from a Git repository containing markdown files.
License: MIT License
There are quite a few places where the code can be updated. These include new features of Elixir/Erlang, removal of deprecated stuff or rewriting code in a way that aligns with the latest trends.
supervisor/2
and worker/2
functions commit from Supervisor.Spec
handle_continue/2
in Blogit.Server.init/1
, Blogit.Components.Posts.init/1
functions (possible other places, too) instead of sending message with . This avoids a possible race conditionuse Application
to not have so many functions.formatter.exs
file and run the formatterThis is same as issue#7 on blogit-web.
I only have 1800 posts in blog, but the initial loading time took 3 hours.
I think one thing at least go wrong is even already has timestamps in md file still call Git log to get it again.
I think we could do well with a little plugin system, you pass in some config options and some modules are ran(with some implemented behaviour).
Example:
I have a PITCHME.md, which github renders as a presentation using impress.js. I want to render those in a special way, so that I can display them on my own site. Let's say we put all the PITCHME.md files under presentations/
. To display them correctly, we'll have to take all presentations, split them on the #HSLIDE, render each split to html and then join the different splits using sections. After that we pass in that to the view and using impress.js
- it will check the sections and create our presentation.
To accomplish that, I would need to hook into the parsing process of the structure, get the presentations(configurable) folder and change the way the are rendered.
We could generate a summary of all the posts/pages. I have these features in mind:
This will be useful when you create new lectures, which will be automatically added to this list.
Hi Meddle,
first of all, thanks for blogit - after I discovered it I just knew it was the right tool for me! To the problem at hand:
Consider the following markdown:
# Title
[Lorem ipsum][1] dolor sit amet,
consectetuer adipiscing elit.
[1]: https://loremipsumgenerator.com/
If I set max_lines_in_preview
to 3, I would still expect the link to be resolved. Since the pipeline generating preview does split first and parse markdown only of head, the link at the bottom is lost and the html generated is just
<!-- css and other distractions omitted -->
<h2>Title</h2>
<p>[Lorem ipsum][1] dolor sit amet, </p>
<a><h4>[...]</h4></a>
<hr class="post-divider" />
instead of
<!-- css and other distractions omitted -->
<h2>Title</h2>
<p><a href="https://loremipsumgenerator.com/">Lorem ipsum</a>dolor sit amet, </p>
<a><h4>[...]</h4></a>
<hr class="post-divider" />
Cheers, Markus
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.