Giter Site home page Giter Site logo

lukapopovici / useless-rant Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 152 KB

My blog. Star if you like any article.

Home Page: https://lukapopovici.github.io/useless-rant/

HTML 47.64% Shell 2.68% Python 30.80% CSS 18.88%
blogging static-site static-site-generator

useless-rant's Introduction

useless-ramblings

This repository contains both my personal blog and the script used to build it, togheter with the components of the site.

The script takes a simple file written in my own markup language and transcribes it into html.Then it organises it within a system of entries ordered by date and can be easily accesed in order from the "INDEX" page of the site.It also puts everything in an RSS feed, so the contents of the blog can be easily accesed without a browser.

Why?

I like posting on Linkedin but I want to write comprehensive articles with images and other links and I decided that it's better to write them on a separate platform and post the link only.

DUMBDOWN

Dumbdown is the bootleg markup language that is interpreted into html , used to write the article pages.

ELEMENTS :

  • The first line is always interpreted as the title of the article.It will be put in the INDEX togheter with the date to form the entry for the article, the entry being the link to the page of the article itself.

  • The second line is always interpreted as the date of the article.

  • Every new line of the original file without any prefix will be turned into a paragraph.

  • To have lines of code within a table,they must start with the prefix code on the line above and must end with !code, otherwise normal paragraphs will be put in the code formatting.Unless you begin a sentence with the word "code" in lowercase,you shouldn't have any problem with it.

  • Images can be easily inserted via links.To do this you must put !image at the begining of the line and follow it with a link to the image.The space between the link and the prefix must not be more than a space.

  • Any text placed within $COLOR and COLOR$ will be colored red.

  • After the page has been rendered, at the bottom there will be the time at which the page was generated.The time written in the footer is independent of the date of the article.It is based on the computer's clock.

  • Only the paragraphs (the clean lines in the Dumbdown file) will be put in the RSS feed of the article.Images and code will be ommited. The colored text will appear as normal.

Examples of Dumbdown

  • How to create a code snipped in Dumbdown:
code
#include<stdio.h>
void main(){
printf("%s","This is code!");
return 0;
}
!code
  • How to insert an image in Dumbdown:
!image (link to image)
  • How to color a part of a paragraph in Dumbdown:
This part is not colored $COLOR but this one is COLOR$ but not this one.

useless-rant's People

Contributors

lukapopovici avatar

Stargazers

 avatar

Watchers

 avatar

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.