Commit e33c97439f10b79c669ae219531c5b0b5c60ca3d
add site elements
Ev Bogue committed on 8/21/2016, 2:39:07 AMParent: 17b07347cac60d6c6ad5588e2408644c177b2c9c
Files changed
index.jade | changed |
index.js | changed |
index.jade | ||
---|---|---|
@@ -2,10 +2,15 @@ | ||
2 | 2 | html |
3 | 3 | head |
4 | 4 | title= title |
5 | 5 | meta(charset='utf8') |
6 | - // link(rel='stylesheet' href='http://evbogue.com/reserva/reserva.css') | |
7 | - // link(rel='stylesheet' href='http://evbogue.com/style.css') | |
6 | + link(rel='stylesheet' href='/reserva/reserva.css') | |
7 | + link(rel='stylesheet' href='/style.css') | |
8 | 8 | body |
9 | - img(src='http://localhost:8989/blobs/get/#{image}' class='profile' style='float: left; margin-right: .5ex; width: 75px;') | |
10 | - p(style='float: right;')<span style='float: right; font-size: .8em;'>#{date} on <a href='http://evbogue.com/patchbayinstall' target='_parent'>Patchbay</a> | |
11 | - p <a href='http://evbogue.com/ev' target='_parent'>@#{name}</a> #{message} | |
9 | + .contain | |
10 | + .eight.col.off-two | |
11 | + a(href='/'): h1= title | |
12 | + hr | |
13 | + img(src='/ws/blobs/get/#{image}' class='profile' style='float: left; margin-right: .5ex; width: 75px;') | |
14 | + p <a href='http://evbogue.com/' target='_parent'>@#{name}</a> #{message} <br /><span style='font-size: .8em;'>#{date} on Sbot</span> | |
15 | + hr | |
16 | + p(style='font-size: .8em') <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> | Mexico City |
index.js | ||
---|---|---|
@@ -3,14 +3,20 @@ | ||
3 | 3 | var avatar = require('ssb-avatar'); |
4 | 4 | var moment = require('moment'); |
5 | 5 | var app = require('koa')(); |
6 | 6 | var router = require('koa-router')(); |
7 | +var serve = require('koa-static') | |
7 | 8 | var views = require('co-views'); |
8 | 9 | |
9 | 10 | var me = '@8Qee0I/DwI5DHSCi3p5fsl6FyLGArrnDz3ox9qZr5Qc=.ed25519'; |
10 | 11 | |
11 | 12 | app.use(router.routes()) |
13 | +app.use(serve(__dirname + './../books/build')) | |
14 | +app.use(serve(__dirname + './../site/build')) | |
15 | +app.use(serve(__dirname + './../site/static')) | |
16 | +app.use(serve(__dirname + './../boot/')) | |
12 | 17 | |
18 | + | |
13 | 19 | var render = views(__dirname, { ext: 'jade'}); |
14 | 20 | |
15 | 21 | router.get('/', function *(next) { |
16 | 22 | client(function (err, sbot) { |
@@ -49,8 +55,9 @@ | ||
49 | 55 | gotMessage(); |
50 | 56 | })); |
51 | 57 | }); |
52 | 58 | function gotMessage() {} |
53 | - this.body = yield render('index', {title: 'sdash', message, date, name, image}); | |
59 | + this.body = yield render('index', {title: 'Evbogue.com', message, date, name, image}); | |
54 | 60 | }); |
55 | -app.listen(4000); | |
56 | 61 | |
62 | +app.listen('7000') | |
63 | + |
Built with git-ssb-web