forked from rhl-bthr/parchment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (59 loc) · 2.19 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
layout: default
---
<p> <i>Until you make the unconscious conscious, it will direct your life and you will call it fate. - Carl Jung </i> </p>
<p>Welcome to my digital twin's subconscious (at least part of it). On this webpage, conscious thinking ceases to have control. Thus, this webpage was intentionally left un-aesthetically perplexing!
<br> <br> This is primarily satire. I like to dabble. <b> If you are here because of my job application, please kindly navigate to my home page </b>. For others, prepare to be enlightened. </p>
<br>
<audio id="myAudio" src="./assets/sound.mp3" preload="auto"></audio>
<button id="playPauseButton">Play</button>
<script>
document.addEventListener("DOMContentLoaded", function() {
var audio = document.getElementById("myAudio");
var playPauseButton = document.getElementById("playPauseButton");
playPauseButton.addEventListener("click", function() {
if (audio.paused) {
audio.play();
playPauseButton.textContent = "Pause";
} else {
audio.pause();
playPauseButton.textContent = "Play";
}
});
// Autoplay
audio.play();
});
</script>
<br> <br>
{% assign has_post = false %}
{% for post in site.posts %}
{% if post.private == true %}
{% continue %}
{% endif %}
<div class="post-card">
<a class="title" href="{{site.baseurl}}{{ post.url }}">
{{ post.title }}
</a>
<div class="details">
<b>{{ post.date | date: "%d %B %Y" }}</b>
<br>
{% if post.tags %}
<b>[</b>
{% for tag in post.tags %}
<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a>{% if forloop.last == false %},{% endif %}
{% endfor %}
<b>]</b>
{% endif %}
</div>
<div class="subtitle">
{{ post.subtitle }}
</div>
</div>
{% if forloop.last == false %}
<hr>
{% endif %}
{% assign has_post = true %}
{% endfor %}
{% if has_post == false %}
<div class="no-post">I've lost the ink pot. Check back later...</div>
{% endif %}