Skip to content

Commit

Permalink
add initial header and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jim w committed Dec 19, 2022
1 parent 0d0a966 commit 62147ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions html/home.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<h1><a href="https://opencollective.com/rchain-community">RHOvision Open Collective</a> Community</h1>
<img src="https://cdn.discordapp.com/attachments/1045332990949077022/1054465023533138020/Untitled_drawing.jpg" height=75>
<h1><a href="https://opencollective.com/rho-vision-community">RHOvision Open Collective</a> Community</h1>
<p>The RHO Vision is many things to maqny people.</p>
<ul>
<li>Object capability security</li>
Expand All @@ -14,15 +15,14 @@ <h1><a href="https://opencollective.com/rchain-community">RHOvision Open Collect
</ul>
<h2>Open Collective activities</h2>
<ul>
<li>operation and <a href="https://opencollective.com/rchain-community/conversations/governance-dpbvj0qz">governance</a> of rholang networks (mainnet, rhobot.net, etc.)</li>
<li>operation and governance of rholang networks (mainnet, rhobot.net, etc.)</li>
<li>Develop and operate the Rholang Open Source Software</li>
<li>a home for standardized rholang components and interoperability</li>
<li>Formally the Rchain Community</li>
<li>a home for standardized rholang components and interfaces enabling interoperability for interoperability among self sovereign humans and groups. This caninclude Object, Event, Time, Actor, Relation, Collection, Transaction, RemoteName protocols and typing pragma..</li>
<li><a href="https://rhobot.net/rdev-web/">RDEV</a> continuation</li>
</ul>
<h2>Top Projects</h2>
<h2>Active Projects</h2>
<ul>
<li><a href="https://opencollective.com/rchain-community/projects/continue-mainnet">Continue rchain mainnet</a> - Steward community property and return staked REV to owners</li>
<li><a href="?page=rgov">Rgov</a></li>
<li><a href="https://opencollective.com/rho-vision-community/projects/continue-mainnet">Continue rchain mainnet</a> - Steward community property and return staked REV to owners</li>
<li><a href="?page=rgov">Rgov</a> decentralized governance</li>
</ul>

5 changes: 4 additions & 1 deletion src/md2html.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
// usage: node src/md2html.js pages/home.md >html/home.html
let filename = process.argv[2]
fs = require('fs')
const header = `<img src="https://cdn.discordapp.com/attachments/1045332990949077022/1054465023533138020/Untitled_drawing.jpg" height=75>
`
data = fs.readFileSync(filename, 'utf8')
const footer = ""
const markdown = data
// console.log(data);
const gfm = require('cmark-gfm-js');
let html = gfm.convert(markdown);
let html = header + gfm.convert(markdown) + footer ;
console.log(html)
2 changes: 1 addition & 1 deletion web.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const requestListener = function (req, res) {
const queryObject = url.parse(req.url, true).query;
//console.log(req.url);
page = queryObject.page ? queryObject.page : "home";;
console.log(page);
//console.log(page);
res.writeHead(200, { 'Content-Type': 'text/html' });
fs.readFile('html/'+page+'.html', 'utf8', (err, data) => {
if (err) {
Expand Down

0 comments on commit 62147ad

Please sign in to comment.