Commit 140e6aca32fc537679f079304e695b6c8270dede
generify sdash
Ev Bogue committed on 8/26/2016, 9:50:42 PMParent: 7430f885d9d92edaa6642db61b753dde7fc9bc13
Files changed
index.js | changed |
static/sdash.css | changed |
layouts/index.jade | added |
views/index.jade | deleted |
index.js | ||
---|---|---|
@@ -4,18 +4,17 @@ | ||
4 | 4 … | var avatar = require('ssb-avatar'); |
5 | 5 … | var markdown = require('marked'); |
6 | 6 … | var moment = require('moment'); |
7 | 7 … | |
8 | -var me = '@8Qee0I/DwI5DHSCi3p5fsl6FyLGArrnDz3ox9qZr5Qc=.ed25519'; | |
8 … | +var me = '@EMovhfIrFk4NihAKnRNhrfRaqIhBv1Wj8pTxJNgvCCY=.ed25519'; | |
9 | 9 … | |
10 | -var pin = '%yP7vCxyJOKXTHYIKZ+vANjfU2dDNwyJsYYJKAJTZO2Y=.sha256'; | |
10 … | +var pin = '%6ogHrwUivc2Tn3nq87vepXfPDLMWIiEIu0rqGPl0Kkg=.sha256'; | |
11 | 11 … | |
12 | 12 … | var app = express(); |
13 | 13 … | |
14 … | +app.set('views', './layouts') | |
14 | 15 … | app.set('view engine', 'jade'); |
15 | 16 … | |
16 | - | |
17 | - | |
18 | 17 … | app.get('/', function (req, res) { |
19 | 18 … | client(function (err, sbot) { |
20 | 19 … | if (err) { |
21 | 20 … | throw err; |
@@ -70,13 +69,8 @@ | ||
70 | 69 … | } |
71 | 70 … | }); |
72 | 71 … | |
73 | 72 … | 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')); | |
79 | 73 … | |
80 | 74 … | app.listen('7000'); |
81 | 75 … | |
82 | 76 … |
static/sdash.css | ||
---|---|---|
@@ -1,4 +1,8 @@ | ||
1 … | +p { | |
2 … | + font-family: sans-serif; | |
3 … | +} | |
4 … | + | |
1 | 5 … | .avatar { |
2 | 6 … | width: 2em; |
3 | 7 … | float: left; |
4 | 8 … | margin-right: 1em; |
@@ -16,4 +20,12 @@ | ||
16 | 20 … | .date { |
17 | 21 … | font-size: .8em; |
18 | 22 … | color: #666; |
19 | 23 … | } |
24 … | + | |
25 … | +.small { | |
26 … | + font-size: .8em; | |
27 … | +} | |
28 … | + | |
29 … | +.ri { | |
30 … | + float: right; | |
31 … | +} |
layouts/index.jade | ||
---|---|---|
@@ -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.jade | ||
---|---|---|
@@ -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