git ssb

3+

ev / sdash



Commit 140e6aca32fc537679f079304e695b6c8270dede

generify sdash

Ev Bogue committed on 8/26/2016, 9:50:42 PM
Parent: 7430f885d9d92edaa6642db61b753dde7fc9bc13

Files changed

index.jschanged
static/sdash.csschanged
layouts/index.jadeadded
views/index.jadedeleted
index.jsView
@@ -4,18 +4,17 @@
44 var avatar = require('ssb-avatar');
55 var markdown = require('marked');
66 var moment = require('moment');
77
8-var me = '@8Qee0I/DwI5DHSCi3p5fsl6FyLGArrnDz3ox9qZr5Qc=.ed25519';
8 +var me = '@EMovhfIrFk4NihAKnRNhrfRaqIhBv1Wj8pTxJNgvCCY=.ed25519';
99
10-var pin = '%yP7vCxyJOKXTHYIKZ+vANjfU2dDNwyJsYYJKAJTZO2Y=.sha256';
10 +var pin = '%6ogHrwUivc2Tn3nq87vepXfPDLMWIiEIu0rqGPl0Kkg=.sha256';
1111
1212 var app = express();
1313
14 +app.set('views', './layouts')
1415 app.set('view engine', 'jade');
1516
16-
17-
1817 app.get('/', function (req, res) {
1918 client(function (err, sbot) {
2019 if (err) {
2120 throw err;
@@ -70,13 +69,8 @@
7069 }
7170 });
7271
7372 app.use(express.static('static'));
74-app.use(express.static('./../books/build'));
75-app.use(express.static('./../site/build'));
76-app.use(express.static('./../site/static'));
77-app.use(express.static('./../farsmith'));
78-app.use(express.static('./../boot'));
7973
8074 app.listen('7000');
8175
8276
static/sdash.cssView
@@ -1,4 +1,8 @@
1 +p {
2 + font-family: sans-serif;
3 +}
4 +
15 .avatar {
26 width: 2em;
37 float: left;
48 margin-right: 1em;
@@ -16,4 +20,12 @@
1620 .date {
1721 font-size: .8em;
1822 color: #666;
1923 }
24 +
25 +.small {
26 + font-size: .8em;
27 +}
28 +
29 +.ri {
30 + float: right;
31 +}
layouts/index.jadeView
@@ -1,0 +1,36 @@
1 +doctype html
2 +html
3 + head
4 + title= title
5 + meta(charset='utf8')
6 + link(rel='stylesheet' href='/sdash.css')
7 + body
8 + p This is <a href='http://gitmx.com/%25qrU04j9vfUJKfq1rGZrQ5ihtSfA4ilfY3wLy7xFv0xk%3D.sha256/'>sdash</a>
9 + div.message
10 + p.small.ri: strong pinned #{pinned.value.content.type}
11 + img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
12 + p <a href='http://evbogue.com/' target='_parent'>@#{name}</a>
13 + != markdown(pinned.value.content.text)
14 + span.date #{moment(pinned.value.timestamp).fromNow()}
15 + div.message
16 + p.small.ri: strong #{post.value.content.type}
17 + img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
18 + p <a href='http://evbogue.com/' target='_parent'>@#{name}</a>
19 + != markdown(post.value.content.text)
20 + span.date #{moment(post.value.timestamp).fromNow()}
21 + div.message
22 + p.small.ri: strong #{vote.value.content.type}
23 + img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
24 + p <a href='http://evbogue.com/' target='_parent'>@#{name}</a> dug #{vote.value.content.vote.link}
25 + span.date #{moment(vote.value.timestamp).fromNow()}
26 + div.message
27 + p.small.ri: strong #{redo.value.content.type}
28 + img(src='https://evbogue.com/ws/blobs/get/#{reauthor.image}' class='avatar')
29 + p @<a href='#{redo.value.author}'>#{reauthor.name}</a>
30 + != markdown(redo.value.content.text)
31 + span.date #{moment(redo.value.timestamp).fromNow()}
32 + div.message
33 + p.small.ri: strong #{gits.value.content.type}
34 + img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
35 + p <a href='http://evbogue.com/' target='_parent'>@#{name}</a> pushed a git commit to #{gits.value.content.repo}<br />
36 + span.date #{moment(gits.value.timestamp).fromNow()}
views/index.jadeView
@@ -1,44 +1,0 @@
1-doctype html
2-html
3- head
4- title= title
5- meta(charset='utf8')
6- link(rel='stylesheet' href='https://evbogue.com/reserva/reserva.css')
7- link(rel='stylesheet' href='https://evbogue.com/style.css')
8- body
9- .contain
10- .eight.col.off-two
11- p.small.ri This is <a href='http://gitmx.com/%25qrU04j9vfUJKfq1rGZrQ5ihtSfA4ilfY3wLy7xFv0xk%3D.sha256/'>sdash</a>
12- a(href='/'): h1= title
13- hr
14- div.message
15- p.small.ri: strong #{post.value.content.type}
16- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
17- p <a href='http://evbogue.com/' target='_parent'>@#{name}</a>
18- != markdown(post.value.content.text)
19- span.date #{moment(post.value.timestamp).fromNow()}
20- div.message
21- p.small.ri: strong #{vote.value.content.type}
22- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
23- p <a href='http://evbogue.com/' target='_parent'>@#{name}</a> dug #{vote.value.content.vote.link}
24- span.date #{moment(vote.value.timestamp).fromNow()}
25- div.message
26- p.small.ri: strong #{redo.value.content.type}
27- img(src='https://evbogue.com/ws/blobs/get/#{reauthor.image}' class='avatar')
28- p @<a href='#{redo.value.author}'>#{reauthor.name}</a>
29- != markdown(redo.value.content.text)
30- span.date #{moment(redo.value.timestamp).fromNow()}
31- div.message
32- p.small.ri: strong #{gits.value.content.type}
33- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
34- p <a href='http://evbogue.com/' target='_parent'>@#{name}</a> pushed a git commit to #{gits.value.content.repo}<br />
35- span.date #{moment(gits.value.timestamp).fromNow()}
36- div.message
37- p.small.ri: strong pinned #{pinned.value.content.type}
38- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
39- p <a href='http://evbogue.com/' target='_parent'>@#{name}</a>
40- != markdown(pinned.value.content.text)
41- span.date #{moment(pinned.value.timestamp).fromNow()}
42-
43- hr
44- p.small <a href='mailto:ev@evbogue.com'>ev@evbogue.com</a> | <a href='/minimalist'>The Art of Being Minimalist</a> | <a href='/node'>Minimal Node</a> | <a href='https://gitmx.com/%408Qee0I%2FDwI5DHSCi3p5fsl6FyLGArrnDz3ox9qZr5Qc%3D.ed25519'>GitMX</a> | <a href='/blog'>Blog</a> | Mexico City

Built with git-ssb-web