ideabox fills with words from file

small-nav
chimchooree 4 years ago
parent d7ffb4f08f
commit cad796c8e3

@ -1,5 +1,5 @@
My personal collection of inspiring concepts. Many are from nature, culture, mythology, literature, music, art, and beauty. Some are personal concepts. Some are from existing IPs. <br>
abyssal whip
adamantine
aloe
alpine
amber
@ -19,11 +19,15 @@ black bear
The Black Hand
black knight
black water
black widow
bloodstone
blue and yellow
blue rose
bluebell
box garden
breath of life
bunny boy
buried treasure
butterfly woman
candlelight
castle
@ -31,17 +35,24 @@ cat familiar
cat man
chained to rocks
chain mail
chamaeleon
chamomile
chimera
chives
cipher
cold iron
confetti
constellations
cotton
couture
crab
crazy quilt
Crossroad Keep
crystal sea
daeva
death's-head hawkmoth
Diana
diarama
diorama
dimetrodon
donkey
doppelgänger
@ -50,6 +61,7 @@ dragonstone
Dymer
dystopia
ectoplasm
edelweiss
egg hunt
elixir of life
Entrana
@ -58,8 +70,9 @@ ettin
evil twin
fable
falling leaves
fairy kingdom
fairy lights
fairy ring
faun
femme covert
femme fatale
fiery sword
@ -67,14 +80,18 @@ firebrand
floating
flower woman
flying
folkelore
folklore
fountain of youth
fortress
fringe
frog prince
geode
ghost orchid
ghost town
girl in the internet
girl in white
glow stick
glow-in-the-dark stars
golden apple
golden orb weaver
golem
@ -87,25 +104,30 @@ haunted house
headscarf
heart
hermit
holly
honeydew
hot air balloon
hot and cold game
hot cocoa
igari makeup
illuminated text
imbalanced style
imprismed
incense
ironwood
jacquard
kesi silk
kigurumi
La Belle Sans Merci
labyrinth
lady cat
Lady of Shallot
Lady of the Lake
lady in black
lake of fire
lavender
lip oil
Little Red Riding Hood
lobster
locket
Lokasenna
loner
lost city
@ -115,29 +137,35 @@ lullaby
macramé
mages guild
magic carpet
maknae
man in the moon
mandragor
mandrake
manna
marine
mask
masquerade
mead of poetry
mean girl
melon soda
memento mori
memoir
mercury rivers and lakes
miasma
mirror of Venus
mirror on the wall
mithril
monastery
money tree
monkey and bear
moonglow
moonstone
mossy cobblestone
moth
muse
oneiromancer
oblivion
opal
orb
orichalcum
orphan
panda eyes
pearl
@ -146,14 +174,20 @@ phantom residue
phantom thief
pharisee
philosopher's stone
pilgrimmage
pilgrimage
pinwheel
planetary weather
plastic vampire fangs
Poeta
poetry and prose
pomegranate
poppy
post-rock
pretzel
princess of Kentucky
prism
poinsettia
popcorn
propaganda
proverb
pseudonym
@ -162,13 +196,20 @@ rainbow
reclining woman
red
reverse trap
road roller
rooibos tea
runestone
s'more
sailor fuku
Sanctum
sandcastle
sandman
sanguine, my brother
sardonic
satire
satyr
scrying pool
scythe
sea foam
sea of stars
secret garden
@ -180,39 +221,55 @@ silk embroidery
singing sword
skeleton
skipping stone
slide puzzle
slime
soulmates
snow globe
soma
soulmate
spooky chews
squid
spice cookie
spirit animal
spy
stained-glass
stardust
starry sky
sticker
stinky cat
stone people
strawberries and cream
strawberry shortcake
sunflower
sword in the stone
taffy
tatting
tears of Guthix
three women
toasted marshmallow
treasure trails
tree of life
trickster
tulip
tungsten
underwater
unicorn horn
unstoppable mailman
urban legend
utopia
vanity of vanities
vyrewatch
walled city
wampus cat
watchmen on the wall
water nymph
water bearer
water nymph
white Christmas
will-o'-wisp
wings
wishing well
witchhouse
witching hour
wizard tower
wolfbane
wolf's-bane
woman and serpent
the woodsman
Yggdrasil

@ -181,6 +181,13 @@ def gather_files(loc):
def gather_and_sort(loc):
return sort_files(curate_files(gather_files(loc)))
def fill_ideabox():
box = []
with open('diary/entries/extra/ideabox') as f:
for line in f:
box.append(line)
return box
## Static ##
# Serve CSS
@ -296,7 +303,7 @@ def contact():
@route('/ideabox')
def ideabox():
"""idea box page"""
info = {'css': 'box', 'title': 'blessfrey - idea box - a collection of inspiring concepts', 'words': ["cat", "dog", "tree", "why", "what", "how"], 'limit': 5, 'year': datetime.datetime.now()}
info = {'css': 'box', 'title': 'blessfrey - idea box - a collection of inspiring concepts', 'words': fill_ideabox(), 'limit': 5, 'year': datetime.datetime.now()}
return template('ideabox.tpl', info)
## Main ##

@ -121,6 +121,14 @@ body {
color: #f463ad;
}
table, th, td {
border: 1px solid #330532;
}
th, td {
padding: 5px;
}
.footer-content {
padding-top: 5px;
text-align: right;

@ -3,7 +3,9 @@
<!--Content-->
<div class="content">
<br><br>
<br>
<h2>ideabox☆ </h2>
My personal collection of inspiring concepts + favorite things. Many are from nature, culture, mythology, literature, music, art, and beauty. Some are personal concepts. Some are from existing IPs. You can use them, too, if they help you. <br>
<br>
<table>
% for i in range(math.ceil(len(words) / limit)):

Loading…
Cancel
Save