Пример #1
0
 void generateJournalFeed(SiteWriter writer, JournalData journal)
 {
     var siteDomain = writer.Site.DomainName;
     var rssWriter = new RSSFeedWriter(journal, siteDomain);
     var res = _rssTemplate.generateXML(rssWriter);
     writer.writeFeed(rssWriter, res);
 }
Пример #2
0
        void generateJournalPages(SiteWriter writer, JournalData journal)
        {
            var indexPage = journal.createIndexPage();
            generatePage(writer, indexPage);

            journal.createPages()
                .forEach(p => generatePage(writer, p));
        }
Пример #3
0
 public RSSFeedWriter(JournalData journal, string siteDomainName)
 {
     Journal = journal;
     SiteDomainName = siteDomainName;
 }