Michael Zhang 2 weeks ago
parent
commit
854a6e5fc2
Signed by: Michael Zhang <iptq@protonmail.com> GPG Key ID: 5BAEFE5D04F0CE6C
6 changed files with 66 additions and 3 deletions
  1. 2
    0
      content/pages/_index.md
  2. 29
    0
      static/resume.json
  3. 10
    0
      templates/404.html
  4. 7
    2
      templates/layout.html
  5. 16
    0
      templates/listing.html
  6. 2
    1
      templates/post.html

+ 2
- 0
content/pages/_index.md View File

@@ -1,2 +1,4 @@
1 1
 +++
2
+title = "all pages"
3
+template = "listing.html"
2 4
 +++

+ 29
- 0
static/resume.json View File

@@ -0,0 +1,29 @@
1
+{
2
+    "basics": {
3
+        "name": "Michael Zhang",
4
+        "email": "iptq@protonmail.com",
5
+        "phone": "240-813-8477",
6
+        "website": "https://mzhang.me",
7
+        "profiles": [
8
+            {
9
+                "network": "Twitter",
10
+                "username": "_iptq",
11
+                "url": "https://twitter.com/_iptq"
12
+            }
13
+        ]
14
+    },
15
+    "education": [{
16
+        "institution": "University of Minnesota-Twin Cities",
17
+        "area": "Computer Science",
18
+        "studyType": "Bachelor",
19
+        "startDate": "2016-09-06",
20
+        "endDate": "2019-05-15",
21
+        "gpa": "3.2"
22
+    }],
23
+    "languages": [
24
+        {
25
+            "language": "English",
26
+            "fluency": "Native speaker"
27
+        }
28
+    ],
29
+}

+ 10
- 0
templates/404.html View File

@@ -0,0 +1,10 @@
1
+{% extends "layout.html" %}
2
+
3
+{% block title %}
4
+    404 - {{ config.title }}
5
+{% endblock %}
6
+
7
+{% block content %}
8
+    <h1>nothing here</h1>
9
+    <p><a href="/">top</a></p>
10
+{% endblock %}

+ 7
- 2
templates/layout.html View File

@@ -18,8 +18,13 @@
18 18
 	</div>
19 19
 
20 20
 	<div style="text-align: center; font-weight: 200; margin-bottom: 40px;">
21
-	    written by michael zhang.
22
-	    <a href="https://git.mzhang.me/michael/blog" class="colorlink" target="_blank">source</a>
21
+		<p style="margin: 0;">
22
+			<a href="/pages" class="colorlink">all pages</a>
23
+		</p>
24
+	    <p style="margin: 0;">
25
+	    	written by michael zhang.
26
+	    	<a href="https://git.mzhang.me/michael/blog" class="colorlink" target="_blank">source</a>
27
+	    </p>
23 28
 	</div>
24 29
 </body>
25 30
 

+ 16
- 0
templates/listing.html View File

@@ -0,0 +1,16 @@
1
+{% extends "layout.html" %}
2
+
3
+{% block title %}
4
+    {% if section.title %}{{ section.title }} - {% endif %}
5
+    {{ config.title }}
6
+{% endblock %}
7
+
8
+{% block content %}
9
+	<h1 style="margin: 0">{{ section.title }}</h1>
10
+
11
+	<ul>
12
+	{% for page in section.pages %}
13
+		<li><a href="{{ page.permalink }}">{{ page.title }}</a></li>
14
+	{% endfor %}
15
+	</ul>
16
+{% endblock %}

+ 2
- 1
templates/post.html View File

@@ -8,7 +8,8 @@
8 8
 {% endblock %}
9 9
 
10 10
 {% block content %}
11
-    <h1 style="margin-bottom: 0;">{{ page.title }}</h1>
11
+    <a href="../">&laquo; back</a>
12
+    <h1 style="margin: 0;">{{ page.title }}</h1>
12 13
     {% if page.date or page.author %}
13 14
     <small style="display: block; margin-bottom: 20px;">
14 15
         Posted

Loading…
Cancel
Save