Finished adding content pretty much
This commit is contained in:
parent
a7c1dcef83
commit
0c266b763d
@ -23,16 +23,41 @@
|
||||
</ul>
|
||||
<div id="about" class="hiddenarea" >
|
||||
<h1>Teascade</h1>
|
||||
<p>Teascade about file!<br>
|
||||
This is a random link: <a href="http://google.fi">link</a></p>
|
||||
<p>I'm a boring person, but in a desperate attempt to make you interested in me, I'm going to to tell you a few things I am;</p>
|
||||
<ul>
|
||||
<li>Game dev</li>
|
||||
<li>Artist</li>
|
||||
<li>Philosopher</li>
|
||||
<li>Gamer</li>
|
||||
</ul>
|
||||
<p>And a few things I am not;</p>
|
||||
<ul>
|
||||
<li><em>A normal person</em></li>
|
||||
</ul>
|
||||
<p>So assuming I've now <em>totally</em> caught your interest, how about you check out my games
|
||||
and my blog, and if you want to get <strong>really</strong> invested, you could check out some of the
|
||||
following things:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/teascade">GitHub (Teascade)</a></li>
|
||||
<li><a href="https://twitter.com/teascade">Twitter (@Teascade)</a></li>
|
||||
<li><a href="https://reddit.com/u/teascade">Reddit (not very active, /u/teascade)</a></li>
|
||||
</ul>
|
||||
<p>And if you have a really desperate urge to contact me, you may try to email me at <a href="mailto:teascade@gmail.com">teascade@gmail.com</a></p>
|
||||
</div>
|
||||
<div id="games" class="hiddenarea" >
|
||||
<h1>Games</h1>
|
||||
<p>Here I'm going to list all my games from my <a href="https://teascade.itch.io">itch.io</a></p>
|
||||
<p>I have a tonne of games none of which are released! You can check some of them from my <a href="https://github.com/teascade">github</a>.<br>
|
||||
Once I release them I'll make sure to post them here and on <a href="https://teascade.itch.io">my itch.io</a>!</p>
|
||||
<h2>Saltosion</h2>
|
||||
<p>I have this <a href="https://github.com/saltosion">organization</a> though, which I
|
||||
sometimes use when collaborating games with other people.<br>
|
||||
The games made under this organization then are listed here (aswell with <a href="https://saltosion.itch.io">Saltosion's own itch.io</a>)</p>
|
||||
<p><iframe frameborder="0" src="https://itch.io/embed/94673?linkback=true&bg_color=222&fg_color=fff&link_color=ff0091&border_color=303030" width="552" height="167"></iframe></p>
|
||||
</div>
|
||||
<div id="blog" >
|
||||
<h1>Blog</h1>
|
||||
<p>Welcome to my weird and messy blog!</p>
|
||||
<p>Welcome to my weird and messy blog!<br>
|
||||
Also remember to check out my Twitter <a href="https://twitter.com/teascade">@Teascade</a></p>
|
||||
<noscript><p>
|
||||
I'm awfully sorry though, I tried my best, but I couldn't implement a blog system
|
||||
without it taking a butt-load of space and files while being Non-Javascript friendly.
|
||||
|
@ -23,16 +23,41 @@
|
||||
</ul>
|
||||
<div id="about" class="hiddenarea" >
|
||||
<h1>Teascade</h1>
|
||||
<p>Teascade about file!<br>
|
||||
This is a random link: <a href="http://google.fi">link</a></p>
|
||||
<p>I'm a boring person, but in a desperate attempt to make you interested in me, I'm going to to tell you a few things I am;</p>
|
||||
<ul>
|
||||
<li>Game dev</li>
|
||||
<li>Artist</li>
|
||||
<li>Philosopher</li>
|
||||
<li>Gamer</li>
|
||||
</ul>
|
||||
<p>And a few things I am not;</p>
|
||||
<ul>
|
||||
<li><em>A normal person</em></li>
|
||||
</ul>
|
||||
<p>So assuming I've now <em>totally</em> caught your interest, how about you check out my games
|
||||
and my blog, and if you want to get <strong>really</strong> invested, you could check out some of the
|
||||
following things:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/teascade">GitHub (Teascade)</a></li>
|
||||
<li><a href="https://twitter.com/teascade">Twitter (@Teascade)</a></li>
|
||||
<li><a href="https://reddit.com/u/teascade">Reddit (not very active, /u/teascade)</a></li>
|
||||
</ul>
|
||||
<p>And if you have a really desperate urge to contact me, you may try to email me at <a href="mailto:teascade@gmail.com">teascade@gmail.com</a></p>
|
||||
</div>
|
||||
<div id="games" class="hiddenarea" >
|
||||
<h1>Games</h1>
|
||||
<p>Here I'm going to list all my games from my <a href="https://teascade.itch.io">itch.io</a></p>
|
||||
<p>I have a tonne of games none of which are released! You can check some of them from my <a href="https://github.com/teascade">github</a>.<br>
|
||||
Once I release them I'll make sure to post them here and on <a href="https://teascade.itch.io">my itch.io</a>!</p>
|
||||
<h2>Saltosion</h2>
|
||||
<p>I have this <a href="https://github.com/saltosion">organization</a> though, which I
|
||||
sometimes use when collaborating games with other people.<br>
|
||||
The games made under this organization then are listed here (aswell with <a href="https://saltosion.itch.io">Saltosion's own itch.io</a>)</p>
|
||||
<p><iframe frameborder="0" src="https://itch.io/embed/94673?linkback=true&bg_color=222&fg_color=fff&link_color=ff0091&border_color=303030" width="552" height="167"></iframe></p>
|
||||
</div>
|
||||
<div id="blog" class="hiddenarea" >
|
||||
<h1>Blog</h1>
|
||||
<p>Welcome to my weird and messy blog!</p>
|
||||
<p>Welcome to my weird and messy blog!<br>
|
||||
Also remember to check out my Twitter <a href="https://twitter.com/teascade">@Teascade</a></p>
|
||||
<noscript><p>
|
||||
I'm awfully sorry though, I tried my best, but I couldn't implement a blog system
|
||||
without it taking a butt-load of space and files while being Non-Javascript friendly.
|
||||
|
22
build.py
22
build.py
@ -2,6 +2,7 @@
|
||||
|
||||
import markdown
|
||||
import glob
|
||||
import re
|
||||
|
||||
def generate_template():
|
||||
|
||||
@ -73,6 +74,21 @@ def build_blogposts():
|
||||
with open("blogposts/blogposts.json", "w+", encoding="utf-8") as f2:
|
||||
f2.write("window.blogpostDataStr = '" + f.read().replace("\n", "") + "';")
|
||||
|
||||
def apply_custom_markdown(markdown):
|
||||
itch_embed_template = '<iframe frameborder="0" src="https://itch.io/embed/$id$?linkback=true&bg_color=222&fg_color=fff&link_color=ff0091&border_color=303030" width="552" height="167"></iframe>'
|
||||
|
||||
regex = re.compile("\[itch\$[0-9]*\]")
|
||||
|
||||
while regex.search(markdown) is not None:
|
||||
search = regex.search(markdown)
|
||||
split = regex.split(markdown)
|
||||
|
||||
curr_id = int(markdown[(search.start() + 6):][:(search.end() - search.start() - 7)])
|
||||
|
||||
markdown = split[0] + itch_embed_template.replace("$id$", str(curr_id)) + split[1]
|
||||
|
||||
return markdown
|
||||
|
||||
def generate():
|
||||
#md = markdown.markdown("hi **this is** a test markdown _right?_ `wait, let's test _the *code* block_`", output_format="html5")
|
||||
print("Building blogposts..")
|
||||
@ -83,6 +99,12 @@ def generate():
|
||||
template = generate_template()
|
||||
print("Done!\n")
|
||||
|
||||
print("Applying custom markdown..")
|
||||
|
||||
template = apply_custom_markdown(template)
|
||||
|
||||
print("Done!n")
|
||||
|
||||
print("Generating pages..")
|
||||
with open('index.html', 'w+', encoding="utf-8") as f:
|
||||
f.write(generate_page(template, "about"))
|
||||
|
@ -23,16 +23,41 @@
|
||||
</ul>
|
||||
<div id="about" class="hiddenarea" >
|
||||
<h1>Teascade</h1>
|
||||
<p>Teascade about file!<br>
|
||||
This is a random link: <a href="http://google.fi">link</a></p>
|
||||
<p>I'm a boring person, but in a desperate attempt to make you interested in me, I'm going to to tell you a few things I am;</p>
|
||||
<ul>
|
||||
<li>Game dev</li>
|
||||
<li>Artist</li>
|
||||
<li>Philosopher</li>
|
||||
<li>Gamer</li>
|
||||
</ul>
|
||||
<p>And a few things I am not;</p>
|
||||
<ul>
|
||||
<li><em>A normal person</em></li>
|
||||
</ul>
|
||||
<p>So assuming I've now <em>totally</em> caught your interest, how about you check out my games
|
||||
and my blog, and if you want to get <strong>really</strong> invested, you could check out some of the
|
||||
following things:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/teascade">GitHub (Teascade)</a></li>
|
||||
<li><a href="https://twitter.com/teascade">Twitter (@Teascade)</a></li>
|
||||
<li><a href="https://reddit.com/u/teascade">Reddit (not very active, /u/teascade)</a></li>
|
||||
</ul>
|
||||
<p>And if you have a really desperate urge to contact me, you may try to email me at <a href="mailto:teascade@gmail.com">teascade@gmail.com</a></p>
|
||||
</div>
|
||||
<div id="games" >
|
||||
<h1>Games</h1>
|
||||
<p>Here I'm going to list all my games from my <a href="https://teascade.itch.io">itch.io</a></p>
|
||||
<p>I have a tonne of games none of which are released! You can check some of them from my <a href="https://github.com/teascade">github</a>.<br>
|
||||
Once I release them I'll make sure to post them here and on <a href="https://teascade.itch.io">my itch.io</a>!</p>
|
||||
<h2>Saltosion</h2>
|
||||
<p>I have this <a href="https://github.com/saltosion">organization</a> though, which I
|
||||
sometimes use when collaborating games with other people.<br>
|
||||
The games made under this organization then are listed here (aswell with <a href="https://saltosion.itch.io">Saltosion's own itch.io</a>)</p>
|
||||
<p><iframe frameborder="0" src="https://itch.io/embed/94673?linkback=true&bg_color=222&fg_color=fff&link_color=ff0091&border_color=303030" width="552" height="167"></iframe></p>
|
||||
</div>
|
||||
<div id="blog" class="hiddenarea" >
|
||||
<h1>Blog</h1>
|
||||
<p>Welcome to my weird and messy blog!</p>
|
||||
<p>Welcome to my weird and messy blog!<br>
|
||||
Also remember to check out my Twitter <a href="https://twitter.com/teascade">@Teascade</a></p>
|
||||
<noscript><p>
|
||||
I'm awfully sorry though, I tried my best, but I couldn't implement a blog system
|
||||
without it taking a butt-load of space and files while being Non-Javascript friendly.
|
||||
|
33
index.html
33
index.html
@ -23,16 +23,41 @@
|
||||
</ul>
|
||||
<div id="about" >
|
||||
<h1>Teascade</h1>
|
||||
<p>Teascade about file!<br>
|
||||
This is a random link: <a href="http://google.fi">link</a></p>
|
||||
<p>I'm a boring person, but in a desperate attempt to make you interested in me, I'm going to to tell you a few things I am;</p>
|
||||
<ul>
|
||||
<li>Game dev</li>
|
||||
<li>Artist</li>
|
||||
<li>Philosopher</li>
|
||||
<li>Gamer</li>
|
||||
</ul>
|
||||
<p>And a few things I am not;</p>
|
||||
<ul>
|
||||
<li><em>A normal person</em></li>
|
||||
</ul>
|
||||
<p>So assuming I've now <em>totally</em> caught your interest, how about you check out my games
|
||||
and my blog, and if you want to get <strong>really</strong> invested, you could check out some of the
|
||||
following things:</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/teascade">GitHub (Teascade)</a></li>
|
||||
<li><a href="https://twitter.com/teascade">Twitter (@Teascade)</a></li>
|
||||
<li><a href="https://reddit.com/u/teascade">Reddit (not very active, /u/teascade)</a></li>
|
||||
</ul>
|
||||
<p>And if you have a really desperate urge to contact me, you may try to email me at <a href="mailto:teascade@gmail.com">teascade@gmail.com</a></p>
|
||||
</div>
|
||||
<div id="games" class="hiddenarea" >
|
||||
<h1>Games</h1>
|
||||
<p>Here I'm going to list all my games from my <a href="https://teascade.itch.io">itch.io</a></p>
|
||||
<p>I have a tonne of games none of which are released! You can check some of them from my <a href="https://github.com/teascade">github</a>.<br>
|
||||
Once I release them I'll make sure to post them here and on <a href="https://teascade.itch.io">my itch.io</a>!</p>
|
||||
<h2>Saltosion</h2>
|
||||
<p>I have this <a href="https://github.com/saltosion">organization</a> though, which I
|
||||
sometimes use when collaborating games with other people.<br>
|
||||
The games made under this organization then are listed here (aswell with <a href="https://saltosion.itch.io">Saltosion's own itch.io</a>)</p>
|
||||
<p><iframe frameborder="0" src="https://itch.io/embed/94673?linkback=true&bg_color=222&fg_color=fff&link_color=ff0091&border_color=303030" width="552" height="167"></iframe></p>
|
||||
</div>
|
||||
<div id="blog" class="hiddenarea" >
|
||||
<h1>Blog</h1>
|
||||
<p>Welcome to my weird and messy blog!</p>
|
||||
<p>Welcome to my weird and messy blog!<br>
|
||||
Also remember to check out my Twitter <a href="https://twitter.com/teascade">@Teascade</a></p>
|
||||
<noscript><p>
|
||||
I'm awfully sorry though, I tried my best, but I couldn't implement a blog system
|
||||
without it taking a butt-load of space and files while being Non-Javascript friendly.
|
||||
|
22
src/about.md
22
src/about.md
@ -1,5 +1,23 @@
|
||||
Teascade
|
||||
========
|
||||
|
||||
Teascade about file!
|
||||
This is a random link: [link](http://google.fi)
|
||||
I'm a boring person, but in a desperate attempt to make you interested in me, I'm going to to tell you a few things I am;
|
||||
|
||||
- Game dev
|
||||
- Artist
|
||||
- Philosopher
|
||||
- Gamer
|
||||
|
||||
And a few things I am not;
|
||||
|
||||
- _A normal person_
|
||||
|
||||
So assuming I've now _totally_ caught your interest, how about you check out my games
|
||||
and my blog, and if you want to get **really** invested, you could check out some of the
|
||||
following things:
|
||||
|
||||
- [GitHub (Teascade)](https://github.com/teascade)
|
||||
- [Twitter (@Teascade)](https://twitter.com/teascade)
|
||||
- [Reddit (not very active, /u/teascade)](https://reddit.com/u/teascade)
|
||||
|
||||
And if you have a really desperate urge to contact me, you may try to email me at [teascade@gmail.com](mailto:teascade@gmail.com)
|
||||
|
@ -1,7 +1,8 @@
|
||||
Blog
|
||||
====
|
||||
|
||||
Welcome to my weird and messy blog!
|
||||
Welcome to my weird and messy blog!
|
||||
Also remember to check out my Twitter [@Teascade](https://twitter.com/teascade)
|
||||
|
||||
<noscript><p>
|
||||
I'm awfully sorry though, I tried my best, but I couldn't implement a blog system
|
||||
|
11
src/games.md
11
src/games.md
@ -1,4 +1,13 @@
|
||||
Games
|
||||
=====
|
||||
|
||||
Here I'm going to list all my games from my [itch.io](https://teascade.itch.io)
|
||||
I have a tonne of games none of which are released! You can check some of them from my [github](https://github.com/teascade).
|
||||
Once I release them I'll make sure to post them here and on [my itch.io](https://teascade.itch.io)!
|
||||
|
||||
## Saltosion
|
||||
|
||||
I have this [organization](https://github.com/saltosion) though, which I
|
||||
sometimes use when collaborating games with other people.
|
||||
The games made under this organization then are listed here (aswell with [Saltosion's own itch.io](https://saltosion.itch.io))
|
||||
|
||||
[itch$94673]
|
||||
|
Loading…
Reference in New Issue
Block a user