Add XSLT stylesheet for RSS feed

This commit is contained in:
Alex Cabal 2022-06-19 21:11:43 -05:00
parent 30a3dd053f
commit a3d823dd5a
5 changed files with 60 additions and 6 deletions

View file

@ -5,11 +5,15 @@ $highlight = $highlight ?? '';
$description = $description ?? '';
$manual = $manual ?? false;
$colorScheme = $_COOKIE['color-scheme'] ?? 'auto';
$xmlDeclaration = $xmlDeclaration ?? true;
header('content-type: application/xhtml+xml');
print('<?xml version="1.0" encoding="utf-8"?>');
print("\n");
?><!DOCTYPE html>
if($xmlDeclaration){
header('content-type: application/xhtml+xml');
print('<?xml version="1.0" encoding="utf-8"?>');
print("\n");
print("<!DOCTYPE html>\n");
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head prefix="twitter: https://twitter.com/ schema: http://schema.org/"><? /* The `og` RDFa prefix is part of the RDFa spec */ ?>
<meta charset="utf-8"/>