dan,
@dan@danq.me avatar

In response to @adactio's provocation "A blog post doesn't need a title", @Edent argues that, as a HTML document, it necessarily does (even if it's blank).

But does a blog have to be HTML? I'd say: no - https://danq.me/does-a-blog-have-to-be-html

dan,
@dan@danq.me avatar

@adactio @Edent And by way of example, let me introduce the truly-hideous text/plain blog! https://textplain.blog

dan,
@dan@danq.me avatar

@adactio @Edent Now I'm wondering whether I could have implemented textplain.blog as a theme. 🤔

Edent,
@Edent@mastodon.social avatar

@dan @adactio
Oooooh!
Yes, it should be possible. I might have a play this weekend 😁

Edent,
@Edent@mastodon.social avatar

@dan
Here's a plaintext functions.php

<?php   
header('Content-Type: text/plain; charset=utf-8');   
bloginfo( 'name' );  
echo "\n";

if ( have_posts() ) {

 while ( have_posts() ) : the_post();

 if ( get_post_type() == 'post' ) {  
 the_time( get_option( 'date_format' ) );   
 echo "\n";  
 }

 the_title();  
 echo "\n";  
 echo strip_tags(get_the_content());   
 echo "\n";   
 endwhile;   
}  
Edent,
@Edent@mastodon.social avatar

@dan
I've gone a little overboard!
You can now add .txt the end of most URls on my blog and get a plaintext version of the page.

aslakr,
@aslakr@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • tacticalgear
  • Youngstown
  • mdbf
  • slotface
  • Durango
  • rosin
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cubers
  • megavids
  • InstantRegret
  • ethstaker
  • cisconetworking
  • everett
  • modclub
  • Leos
  • osvaldo12
  • tester
  • normalnudes
  • anitta
  • provamag3
  • JUstTest
  • lostlight
  • All magazines