Skip to content

Commit

Permalink
Add now page to blog
Browse files Browse the repository at this point in the history
  • Loading branch information
mliezun committed May 17, 2024
1 parent af90395 commit 65c6528
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:22.04

RUN apt-get update -yyqq &&\
apt-get install -yyqq wget python3-pip &&\
Expand Down
60 changes: 60 additions & 0 deletions src/pages/now.gr
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
let u = import("../utils.gr")


fn aboutme() {
return ["div", ["class", "aboutme"], [
["p", [], "Hi folks!"],
["p", [], "I'm Miguel. Here I write mainly about programming and side projects."],
["p", [], [
"I've written my own programming language called Grotsky, and it's ",
["a", ["href", "https://mliezun.github.io/2023/11/23/grotsky-rust-part3.html", "target", "_blank"], "implemented in Rust"],
". This blog's engine is written with Grotksy and generates static HTML files."
]]
]]
}

fn now() {
return [
["div", [], [
"Last updated on 2024-05-17.",
["ul", [], [
["li", [], [
"Working on ",
["a", ["href", "https://github.com/mliezun/caddy-snake", "target", "_blank"], [
"https://github.com/mliezun/caddy-snake",
]],
". A plugin for the Caddy proxy that embeds the Python interpreter.",
]],
["li", [], [
"Still sporadically working on Grotsky, a toy programming language made with Rust.",
]],
["li", [], [
"Training to run a 42km marathon.",
]],
["li", [], [
"Preparing to move from Argentina to France in late 2024.",
]],
["li", [], [
"Working as a Software Engineer at Gencove, building the future of Genome Sequencing."
]],
]],
["div", [], [
"See more about the /now project here:",
["a", ["href", "https://nownownow.com/", "target", "_blank"], [
"https://nownownow.com/",
]],
]],
]],
]
}

fn build_now() {
return [
aboutme(),
[
"div",
[],
now()
],
]
}
13 changes: 13 additions & 0 deletions src/router.gr
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,19 @@ fn get_routes(include_feed) {
"content_type": nil
}
}

routes["/now"] = {
"class": "html",
"content": import("pages/now.gr").build_now(),
"metadata": {
"title": "Now page | mliezun.github.io",
"author": "Miguel Liezun",
"tags": "software,tech,fun",
"date": "2024-07-17",
"excerpt": "Now page for my personal blog.",
"content_type": nil
}
}

return routes
}

0 comments on commit 65c6528

Please sign in to comment.