mirror of
https://codeberg.org/mayx/pages
synced 2026-02-16 01:54:50 +08:00
update
This commit is contained in:
16
_layouts/xslt_container.html
Normal file
16
_layouts/xslt_container.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% if page.layout == "xslt" %}<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml-stylesheet type="text/xml" href="/feed.xslt.xml"?>
|
||||
<?xml-stylesheet type="text/css" href="/assets/css/xslt.css"?>
|
||||
<xsl:stylesheet
|
||||
version="3.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
xmlns:sm="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<xsl:output method="html" version="4.0" encoding="UTF-8" indent="yes" doctype-system="about:legacy-compat" />
|
||||
<xsl:template match="/">
|
||||
{{ content }}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
{% else %}<!DOCTYPE html>
|
||||
{{ content }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user