git ssb

0+

gb / gwenbell.com



Commit 60951b4ba455a5ad31e0ff33b6380ff31451c51f

delete front page content

gb committed on 10/1/2016, 9:32:49 PM
Parent: 5555ce6349f77034537c4af268af5c1377734c36
Parent: 9d005b2e11b2e2e87198d0670fcd854aa2ace0ff

Files changed

index.jschanged
layouts/blog.jadechanged
layouts/index.jadechanged
layouts/layout.jadechanged
layouts/navbar.jadechanged
src/simplicitease.csschanged
src/index.mdadded
index.jsView
@@ -1,10 +1,5 @@
11 var express = require('express');
2-var avatar = require('ssb-avatar');
3-var client = require('ssb-client');
4-var pull = require('pull-stream');
5-var moment = require('moment');
6-var markdown = require('marked');
72 var nm = require('nodemailer');
83 var bodyParser = require('body-parser');
94
105 var app = express();
@@ -13,73 +8,8 @@
138
149 app.use(bodyParser.json());
1510 app.use(bodyParser.urlencoded({extended: true}));
1611
17-const me = '@ya/sq19NPxRza5xtoqi9BilwLZ7HgQjG3QpcTRnGgWs=.ed25519'
18-const site = 'Gwen Bell';
19-
20-app.get('/', function (req, res) {
21- client(function (err, sbot) {
22- if (err) {
23- throw err;
24- }
25- avatar(sbot, me, me, function (err, avatar){
26- if (err) {
27- throw err;
28- }
29- name = avatar.name;
30- image = avatar.image;
31- })
32-
33- pull(
34- sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'pin'}}}}], limit: 1, reverse: true}),
35- pull.drain(function (data) {
36- getpin = data;
37- pull(
38- sbot.query.read({query: [{$filter: { key: getpin.value.content.link}}]}),
39- pull.drain(function (data){
40- pinned = data;
41- })
42- )
43- })
44- )
45- pull(
46- sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'post'}}}}], limit: 1, reverse: true}),
47- pull.drain(function (data) {
48- post = data;
49- })
50- )
51- pull(
52- sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'vote'}}}}], limit: 1, reverse: true}),
53- pull.drain(function (data) {
54- vote = data;
55- pull(
56- sbot.query.read({query: [{$filter: { key: data.value.content.vote.link}}]}),
57- pull.drain(function (reblog) {
58- avatar(sbot, me, reblog.value.author, function (err, avatar){
59- if (err) {
60- throw err;
61- }
62- reauthor = avatar;
63- gotPost();
64- })
65- redo = reblog;
66- })
67- )
68- })
69- )
70- pull(
71- sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'git-update'}}}}], limit: 1, reverse: true}),
72- pull.drain(function (data) {
73- gits = data;
74- })
75- )
76- });
77- function gotPost() {
78- res.render('index', { title: site, markdown, moment});
79- }
80-});
81-
8212 app.post('/send', function (req, res) {
8313 var name = req.body.nombre;
8414 var email = req.body.elmail;
8515 var website = req.body.siteurl;
layouts/blog.jadeView
@@ -7,7 +7,8 @@
77 li
88 a(href="/" + blog.path + "/")= blog.title
99 span - #{moment(blog.date).format('MMMM Do YYYY')}
1010 div!= contents
11- <a href="http://gwenbell.fetchapp.com/sell/e3547c1e"><img src="/blogtobook.jpg" class="profile" style="width: 30%; float:left;"></a>
12- h2 Buy <a href="http://gwenbell.fetchapp.com/sell/e3547c1">Blog to Book</a> for $35, get 25 new pieces only available in book format. Each time I hit the tenth new piece added, the price goes up by a dollar(as of 2016-09-16 2/10 are done). For those of you who've already bought, you get all new pieces included in the current price: 35.
11 + <a href="http://gwenbell.fetchapp.com/sell/e3547c1e"><img src="/blogtobook.jpg" class="profile" style="width: 100%;"></a>
12 + <button><a href="http://gwenbell.fetchapp.com/sell/e3547c1">Buy Now or Cry Later | 35</a></button>
13 +
1314
layouts/index.jadeView
@@ -1,63 +1,3 @@
11 extends layout
22
33 block content
4-
5- a(href="/"): h1= title
6- h2 Hi & welcome. This site reflects a living, breathing application built on a <a href="/dt-interview">distributed database called scuttlebot</a>. You might think of what you see on this site as a healthy response to what I view as unhealthy centralized social networking:
7- div(class='message')
8- p.small.ri pinned
9- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
10- p <a href='/' target='_parent'>@#{name}</a>
11- != markdown(pinned.value.content.text)
12- span.date #{moment(pinned.value.timestamp).fromNow()}
13- div(class='message')
14- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
15- p <a href='/' target='_parent'>@#{name}</a>
16- != markdown(post.value.content.text)
17- span.date #{moment(post.value.timestamp).fromNow()}
18- div(class='message')
19- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
20- p <a href='/' target='_parent'>@#{name}</a> dug #{vote.value.content.vote.link}
21- span.date #{moment(vote.value.timestamp).fromNow()}
22- div.message
23- if (redo.value.content.type === post)
24- img(src='https://evbogue.com/ws/blobs/get/#{reauthor.image}' class='avatar')
25- p @<a href='#{redo.value.author}'>#{reauthor.name}</a> said
26- != markdown(redo.value.content.text)
27- span.date #{moment(redo.value.timestamp).fromNow()}
28- div(class='message')
29- img(src='https://evbogue.com/ws/blobs/get/#{image}' class='avatar')
30- p <a href='/' target='_parent'>@#{name}</a> pushed a git commit to #{gits.value.content.repo}<br />
31- span.date #{moment(gits.value.timestamp).fromNow()}
32- <br />
33- <img src="/g.jpg" class="profile" style="width:150px; float:left;" /><h2 id="about"><a href="#about">About</a></h2> <p>Gwen(dolyn) Bell is a Mexico City, Mexico based web developer and technical writer. She's lived in Mexico on and off since her <a href="firstmxtrip">first trip to Mexico in 2006</a>. When she first arrived in the country she told everyone she knew she intended to stay. The commitment took root.</p>
34- <p>Gwen practices Stoicism and yoga, takes long walks around Mexico City and builds for the future where the web is decentralized, distributed, cryptographically secure and more home-grown than corporate. She intends to one day build the <a href="/grh">GRH</a>, speak fluent Spanish and drink...in Oaxaca where it was born... the <i>pura mezcal</i>, <i>madre cuixhe</i>.</p>
35- <br />
36- <h2><a href="#details">Technical Details</a></h2>
37- <ul>
38- <li>Site hand-built by gb</li>
39- <li>Built with Arch Linux local and VPS</li>
40- <li>Rocks Git for version control</li>
41- <li>Is an active sbot instance</li>
42- <li>Built with Node.js</li>
43- <li>Pull requests accepted</li>
44- </ul>
45- <br />
46- <h2 id="contact"><a href="#contact">Contact</a></h2>
47- <ul>
48- <li>Email: gwen@gwenbell.com <a href="/key.txt">PGP</a></li>
49- <li>sbot: gb</li>
50- <li><a href="http://git-ssb.celehner.com/%25sa%2FOgrHPhHCw8V0x2wrIgadRJANxQAKY6V9AP%2FF4iyw%3D.sha256"> Issues tracked</a> via pull request</li>
51- </ul>
52- <h2><a href="#subscribe">Subscribe</a></h2>
53- form(name='contact', action='/send', method='post')
54- input(type='text', name='nombre', placeholder='What name should I call you?')
55- br
56- input(type='text', name='elmail', placeholder='you@your email address dot com')
57- br
58- input(type='text', name='siteurl', placeholder='What is your site address?')
59- br
60- button GO
61- br
62- br
63- hr
layouts/layout.jadeView
@@ -8,13 +8,12 @@
88 meta(name='viewport', content='maximum-scale=1')
99 link(rel="shortcut icon", href="/favicon.png")
1010 link(rel='stylesheet' href='/static/reserva.css')
1111 link(rel='stylesheet' href='/simplicitease.css')
12- // link(rel='stylesheet' href='/jenesaisquoi.css')
1312 body
1413 include navbar.jade
1514 .contain
1615 .twelve.col
16 + iframe(src='https://sdash.gwenbell.com' style='width:100%; border:none;')
1717 .article
1818 block content
19- <h6 id="contact"><a href="http://gwenbell.com/#contact"><b>gwen@gwenbell dot com 2016</b></p></h6>
2019
layouts/navbar.jadeView
@@ -1,8 +1,6 @@
11 .navbar
22 .contain
33 .twelve.col
44 ul
5- li <a href="/"><b>gb</b></a>
6- li <a href="http://gwenbell.com/#about">About</a>
7- li <a href="http://gwenbell.com/blog">Blog</a>
8- li <a href="http://gwenbell.com/#contact">Contact</a>
5 + li <a href="/"><b>Gwen Bell</b></a>
6 + li <a href="/blog">Blog ➡ Book</a>
src/simplicitease.cssView
@@ -27,9 +27,9 @@
2727 color: #000;
2828 font-weight: 400;
2929 font-family: 'Open Sans', arial, sans-serif;
3030 text-decoration: none;
31- margin-top: 3em;
31 + margin-top: none;
3232 display: block;
3333 }
3434
3535 img.profile {
@@ -103,9 +103,9 @@
103103 color: #333;
104104 }
105105
106106 blockquote {
107- font-family: 'Open Sens', arial, sans-serif;
107 + font-family: 'Open Sans', arial, sans-serif;
108108 border-left: 2px solid #333;
109109 }
110110
111111 ul {
@@ -167,9 +167,9 @@
167167 width: 100%;
168168 }
169169
170170 .article {
171- padding-right: 5em;
171 + padding-right: 1em;
172172
173173 }
174174
175175 /* navbar */
@@ -201,45 +201,8 @@
201201 color: #002b36;
202202 background: #ffdb00;
203203 }
204204
205-button {
206- font-size: 1.2em;
207- padding: .5ex 1ex;
208- color: #0C5;
209- background: #0D6;
210- border: 1px solid #0D6;
211- color: #FFF;
212- transition: all 0.5s;
213-}
214-
215-button:hover, button:active {
216- cursor: pointer;
217- text-decoration: none;
218- color: #0C5;
219- border-color: #0C5;
220- background: #FFF;
221-}
222-
223-pre {
224- padding: .5em;
225- padding-left: .7em;
226- background: #3f3f3f;
227- color: #dcdcdc;
228- border-radius: 5px;
229- margin-bottom: .5em;
230- white-space: pre-wrap;
231- word-wrap: break-word;
232-}
233-
234-hr {
235- border: solid #eee;
236- clear: both;
237- border-width: 1px 0 0;
238- height: 0;
239- margin-bottom: .9em;
240-}
241-
242205 .message {
243206 border: 1px solid #ccc;
244207 padding: 1em;
245208 }
src/index.mdView
@@ -1,0 +1,5 @@
1 +---
2 +title: Gwen Bell
3 +layout: index.jade
4 +---
5 +

Built with git-ssb-web