Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook into 'blog' repo #14

Open
atla5 opened this issue Sep 27, 2016 · 1 comment
Open

Hook into 'blog' repo #14

atla5 opened this issue Sep 27, 2016 · 1 comment
Labels

Comments

@atla5
Copy link
Owner

atla5 commented Sep 27, 2016

My 'atla5/blog' was meant to be displayed through here, but it needs to run.

May need to redo this in pure .js for simplicity and so it runs on gh-pages.

original formulation below:

SCRIPTED BLOG ENTRIES (.txt to .php)

  • craft a rather basic shell script to take in a .txt file and spit out a .php usable by the site
    (this will allow me to write freely and prevent me from having to rewrite the includes and html
    tags manually for every new page and blog post)
    • create a basic template .php file (with html tags, include, and open body) and simply parse
      the text inside the file line by line converting it to .html while keeping formatting...
      someone has almost certainly done this already with markup, find and adapt that.
    • create a standardized format for these .txt files specifying type, tags, destination, etc.
    • '-t' tag for adding a custom title to the created webpage. otherwise default to the filename
      before the extension (e.g. "about.txt" -> "Aidan Sawyer | About", "unix-philosophy.txt" ->
      "Aidan Sawyer | Unix Philosophy")...
    • '-i' interactive mode might make some sense for individual files and would save from having
      to format each individual file with the section of the blog it goes to and what tags are
      associated with it.

note: .txt->.php changed to .md->.html

@atla5 atla5 added the feature label Sep 27, 2016
@atla5
Copy link
Owner Author

atla5 commented Dec 10, 2019

this looks to be a good clientside option for converting markdown to html: https://github.com/showdownjs/showdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant