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.

I Blog with Raw Txt

32 pointsby simonpure3 months ago

7 comments

culi3 months ago
The post that claimed they blog with &quot;raw HTML&quot; was sending markdown to the front-end with a bunch of javascript for an entire markdown engine that then converted it to HTML<p>This post claims they blog with raw txt files but it&#x27;s just really bare HTML with a &lt;pre&gt; tag for the text.<p>But browser can display .txt files. Both of these posts claim they do something that&#x27;s simple to do and then don&#x27;t do it.<p>Also I&#x27;m gonna call it here before it happens. The next post is gonna be &quot;I blog with raw pdfs&quot; and they&#x27;re gonna ship a whole React SPA with some library that lets you embed a pdf display. It&#x27;s probably gonna use a metaframework like Next.js for absolutely no reason. Instead of you know... just serving the f&#x27;n pdf file
评论 #43045033 未加载
评论 #43048216 未加载
fsiefken3 months ago
I don&#x27;t get:<p>&quot;having a blog used to put constraints on my poor connection, so I removed the css and html formating for this english version.&quot;<p>What kind of constraints I wonder, bandwidth constraints or CPU constraints client side or server side,? A simple static hugo blog offers similar data reductions<p>&quot;And one day, my server might be powerful enough to handle a successful html-powered blog, but that day hasn&#x27;t come.&quot;<p>So which device isn&#x27;t powerful enough to serve static html? An Arduino can, an intel 486 and a stm32 or esp32 as well. There isn&#x27;t any difference in serving plain text and html server side wise
评论 #43044945 未加载
dusted3 months ago
I write my blog in regular old plaintext files, I have a script that adds the header text to a file named with todays date and opens it in VIM.<p>I wrote a small script that renders the file in HTML and CSS, does code highlight and so on, but the goal is that blog-posts should look just fine in raw text, so that it is also usable on Gopher.<p>Here&#x27;s how it look when it&#x27;s rendered: <a href="https:&#x2F;&#x2F;dusted.dk&#x2F;pages&#x2F;phlog&#x2F;2024-05-23.txt" rel="nofollow">https:&#x2F;&#x2F;dusted.dk&#x2F;pages&#x2F;phlog&#x2F;2024-05-23.txt</a><p>And you can ask for the raw version: <a href="https:&#x2F;&#x2F;dusted.dk&#x2F;pages&#x2F;phlog&#x2F;2024-05-23.txt?raw" rel="nofollow">https:&#x2F;&#x2F;dusted.dk&#x2F;pages&#x2F;phlog&#x2F;2024-05-23.txt?raw</a>
jmclnx3 months ago
The next step will be gopher and&#x2F;or gemini :)<p>That is where I blog, maintenance is very easy, just edit locally and scp to the site. Or you can edit directly using tramp in GNU Emacs.
smackeyacky3 months ago
I blog with a hex editor so boo
vespergo3 months ago
refreshing to see this and inspiring as weird as it sounds.
评论 #43044545 未加载
x86hacker10103 months ago
Lol. At least I don’t see runtime JS converting the font to courier new from system, but this burns my eyes to hell.<p>Edit: your post about spamming spammers made me chuckle