TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Blogging with Emacs org-mode

109 pointsby pksadiqalmost 7 years ago

12 comments

Scarblacalmost 7 years ago
I once tried to do this as well, and got sucked into the rabbit hole of tinkering with little scripts and hacks and trying things out and never writing my first blog post before I lost motivation.<p>Next time I feel like I want to write a blog I&#x27;ll just put it on wordpress.com or so.
评论 #17722249 未加载
评论 #17725163 未加载
mikekcharalmost 7 years ago
I realised a while ago that Github had an org mode renderer. So I&#x27;ve been working on a blog post that&#x27;s hosted directly on Github (without needing to export to HTML). The renderer has some problems, but it&#x27;s been OK for my code examples. Completely unfinished blog post here for example purposes only: <a href="https:&#x2F;&#x2F;github.com&#x2F;ygt-mikekchar&#x2F;oojs&#x2F;blob&#x2F;master&#x2F;oojs.org" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ygt-mikekchar&#x2F;oojs&#x2F;blob&#x2F;master&#x2F;oojs.org</a> You can look at raw mode to see what the source code looks like.<p>One of these days, I&#x27;m going to see if I can get something similar working on GitLab (which I&#x27;ve started using and admit to liking better at the moment). I think it should be easy, if a bit expensive (for them) because I should be able to set up a docker image with Emacs and export the HTML to generate a static page.<p>P.S. Anyone interested in the content of my blog post -- I got stalled trying to reason about the purpose of &quot;this&#x2F;self&quot;, but I&#x27;ve unstuck myself and should be finishing it up soon.
clirclealmost 7 years ago
I use org-page (<a href="https:&#x2F;&#x2F;github.com&#x2F;kelvinh&#x2F;org-page" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kelvinh&#x2F;org-page</a>) to write my blog. It has a pretty cool workflow if you are into git, and integrates well with github pages.<p>The project seems to be dead (or stable!?), but I keep using it because I made some small tweaks to the default theme, which resulted in a clean looking website.<p>Maybe I&#x27;ll switch to vanilla org-mode for static website generation in the future since I seem to always be in the mood to remove dependencies from my emacs config these days.
mc_almost 7 years ago
Nikola[0] has an orgmode plugin[1] that works fine for my blog. After I write something up, nikola builds the site (incremental build), I can view it locally to verify the rendering, and finally rsync the changes up to the web server.<p>[0] <a href="https:&#x2F;&#x2F;getnikola.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;getnikola.com&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;plugins.getnikola.com&#x2F;v8&#x2F;orgmode&#x2F;" rel="nofollow">https:&#x2F;&#x2F;plugins.getnikola.com&#x2F;v8&#x2F;orgmode&#x2F;</a>
评论 #17722890 未加载
To1nealmost 7 years ago
So the blog index is maintained by hand? <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;sadiq&#x2F;sadiq.gitlab.io&#x2F;blob&#x2F;master&#x2F;src&#x2F;blog&#x2F;blog.org" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;sadiq&#x2F;sadiq.gitlab.io&#x2F;blob&#x2F;master&#x2F;src&#x2F;blo...</a><p>That&#x27;s a bit of a pickle.
andreareinaalmost 7 years ago
I prefer keeping everything in one file (but exporting to separate files) so I hacked something up[1]. It doesn&#x27;t build the index, but it would be pretty easy to extend to do so.<p>There&#x27;s also Arthur Malabarba&#x27;s extension[2] to ox-jekyll that&#x27;s a much more complete solution.<p>[1] <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;andreareina&#x2F;37c634f102f819db8e49828f34934542" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;andreareina&#x2F;37c634f102f819db8e49828f...</a><p>[2] <a href="http:&#x2F;&#x2F;endlessparentheses.com&#x2F;how-i-blog-one-year-of-posts-in-a-single-org-file.html" rel="nofollow">http:&#x2F;&#x2F;endlessparentheses.com&#x2F;how-i-blog-one-year-of-posts-i...</a>
e19293001almost 7 years ago
You can do python stuffs too. Similar with jupyter: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16842786" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=16842786</a>
评论 #17721063 未加载
giggles_gigglesalmost 7 years ago
&gt;boring content ahead<p>aw, it&#x27;s not boring! Don&#x27;t sell yourself short!
dima55almost 7 years ago
Did the existing org-to-blog things not work for you? Here&#x27;s a (probably incomplete) list:<p><pre><code> https:&#x2F;&#x2F;orgmode.org&#x2F;worg&#x2F;org-blog-wiki.html </code></pre> I&#x27;ve been using v1 of o-blog for a while, and it works ok: <a href="http:&#x2F;&#x2F;notes.secretsauce.net" rel="nofollow">http:&#x2F;&#x2F;notes.secretsauce.net</a><p>Maybe the other options are better, I don&#x27;t know. Would definitely be interested in hearing people&#x27;s personal experiences.
评论 #17721283 未加载
orsenthilalmost 7 years ago
I ran into a problem following the example<p>``` $ emacs --batch -q -l src&#x2F;my-web.el -f org-publish-all Cannot open load file: No such file or directory, htmlize ```<p>I tried and succeeded in installing htmlize. But still ran into this issue. How do I resolve this?
评论 #17731492 未加载
peatmossalmost 7 years ago
&gt; My idea was to put all articles (posts) in a single org file<p>Unfortunately, this is exactly what I&#x27;d like to do. Does anyone have cool examples of this alternate workflow?
评论 #17723536 未加载
评论 #17721272 未加载
评论 #17722217 未加载
评论 #17721212 未加载
webkikealmost 7 years ago
I do something similar for my blog. I love orgs embedded code features