1
0

6 Revīzijas 64b1209202 ... 462c4a5c81

Autors SHA1 Ziņojums Datums
  Getty Ritter 462c4a5c81 fire and majesty 2 gadi atpakaļ
  Getty Ritter 924363697d add calvino quote 2 gadi atpakaļ
  Getty Ritter 0fb7c7dea9 add tiki bar quip 2 gadi atpakaļ
  Getty Ritter c8b8b4d98c add basic scripts 2 gadi atpakaļ
  Getty Ritter c040097c47 markdown the quotes 2 gadi atpakaļ
  Getty Ritter 02c1f5b4ac add baudrillard quote 2 gadi atpakaļ

+ 0 - 1
.gitignore

@@ -1,3 +1,2 @@
 lib
-bin
 bazel-*

+ 8 - 0
bin/add-quip

@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+UUID=$(uuidgen)
+printf "content: |\n   ...\nid: $UUID\n" >quips/$UUID
+if [ ! $EDITOR quotes/$UUID ]; then
+   rm quips/$UUID
+fi
+rm -f "quips/${UUID}~"

+ 8 - 0
bin/add-quote

@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+UUID=$(uuidgen)
+printf "content: |\n   ...\nauthor: ...\nid: $UUID\n" >quotes/$UUID
+if [ ! $EDITOR quotes/$UUID ]; then
+   rm quotes/$UUID
+fi
+rm -f "quotes/${UUID}~"

+ 2 - 0
main.py

@@ -103,6 +103,7 @@ def main():
     quips = []
     for uuid in Path.list('quips'):
         q = Quip.from_file(Path.data('quips', uuid))
+        q.content = markdown.markdown(q.content)
         quips.append(q)
         with Path.write('quips', uuid, 'index.html') as f:
             f.write(Template.main({
@@ -129,6 +130,7 @@ def main():
     quotes = []
     for uuid in Path.list('quotes'):
         q = Quote.from_file(Path.data('quotes', uuid))
+        q.content = markdown.markdown(q.content)
         quotes.append(q)
         with Path.write('quotes', uuid, 'index.html') as f:
             contents = Template.quote({'quotelist': [q]})

+ 2 - 0
quips/b15f7d1e-52dd-4178-8e79-f63c7cc4aef6

@@ -0,0 +1,2 @@
+id: b15f7d1e-52dd-4178-8e79-f63c7cc4aef6
+content: One can't break the laws of physics, but you _can_ be civilly disobedient towards them.

+ 2 - 0
quips/bb5ef0b3-e953-4861-a16a-341c2df135d1

@@ -0,0 +1,2 @@
+content: You have become a creature of fire and majesty. I am sorry for where you are, and I hope you become violent and magnificent.
+id: bb5ef0b3-e953-4861-a16a-341c2df135d1

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 4 - 0
quotes/1d8162f5-d6ec-43e3-a038-6b1bd44e4535


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 10 - 0
quotes/62c8c196-e890-4a6f-9b16-cfa13f0ba491