File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 11import lume from "lume/mod.ts" ;
22import date from "lume/plugins/date.ts" ;
33import slugify_urls from "lume/plugins/slugify_urls.ts" ;
4- import feed from "lume/plugins/feed.ts" ;
54import jsx from "lume/plugins/jsx.ts" ;
65import mdx from "lume/plugins/mdx.ts" ;
76
87const site = lume ( {
98 src : "." ,
109 dest : "_site" ,
10+ } , {
11+ url : "https://tinyclouds.ry.deno.net" ,
1112} ) ;
1213
1314site . use ( jsx ( ) ) ;
1415site . use ( mdx ( ) ) ;
1516site . use ( date ( ) ) ;
1617site . use ( slugify_urls ( ) ) ;
17- site . use ( feed ( {
18- output : [ "/feed.xml" ] ,
19- query : "title publish_date" ,
20- info : {
21- title : "Ryan Dahl" ,
22- description : "Personal blog of Ryan Dahl" ,
23- lang : "en" ,
24- generator : true ,
25- } ,
26- } ) ) ;
2718
2819// Copy static files
2920site . copy ( "colorize/" , "colorize/" ) ;
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ export default function Layout(
1313 < title >
1414 { title && title !== "Ryan Dahl" ? `${ title } | ` : "" } Ryan Dahl
1515 </ title >
16+ < link
17+ rel = "alternate"
18+ type = "application/rss+xml"
19+ title = "Ryan Dahl"
20+ href = "/feed"
21+ />
1622 < script
1723 dangerouslySetInnerHTML = { {
1824 __html : `
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export default function* ({ search }: { search: any }) {
1919 <a href="mailto:[email protected] ">Email</a> 2020 <a href="https://github.com/ry">GitHub</a>
2121 <a href="https://twitter.com/rough__sea">Twitter</a>
22- <a href="/feed.xml ">RSS</a>
22+ <a href="/feed">RSS</a>
2323 </div>
2424 <button class="theme-toggle" onclick="toggleTheme()">🌓</button>
2525 </div>
You can’t perform that action at this time.
0 commit comments