Skip to content

Commit

Permalink
Fix >> and << again
Browse files Browse the repository at this point in the history
  • Loading branch information
mliezun committed Jan 11, 2024
1 parent 68b7768 commit 627f1a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/feed.gr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn generate_feed(posts) {
["link", ["href", "https://mliezun.github.io/", "rel", "alternate", "type", "text/html"]],
["id", [], ["https://mliezun.github.io/"]],
["title", [], ["mliezun.github.io"]],
["updated", [], [posts[0]["date"] + "T15:00:00Z"]],
["updated", [], [posts[0]["date"] + "T00:00:00Z"]],
["subtitle", [], ["I'm Miguel. Here I write mainly about programming and side projects."]],
]]
let entries = u.map(posts, fn (p) {
Expand All @@ -31,7 +31,7 @@ fn generate_feed(posts) {
return ["entry", [], [
["title", ["type", "html"], [post_obj.title]],
["id", [], [url]],
["updated", [], [date + "T15:00:00Z"]],
["updated", [], [date + "T00:00:00Z"]],
["link", ["href", url, "rel", "alternate", "type", "text/html"]],
["content", ["type", "html", "xml:base", url], post_obj.content],
["author", [], [
Expand All @@ -53,8 +53,6 @@ fn generate_feed(posts) {
"\"<=\"": "\"&lt;=\"",
"->": "-&gt;",
"<-": "-&lt;",
"<<": "&lt;&lt;",
">>": "&gt;&gt;",
" >": " &gt;",
"< ": "&lt; ",
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/2020-04-11-custom-malloc.gr
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ let post = base.Post(
" printf(\"Cannot allocate enough memory\\n\");",
" exit(ENOMEM);",
" }",
" required >>= 1;",
" required &gt;&gt;= 1;",
" }",
"}",
"",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/2020-04-19-mysql-python.gr
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ let post = base.Post(
"",
"int main(void) {",
" auto obj = py::eval(\"[i for i in range(10)]\");",
" std::cout << std::string(py::str(obj)) << std::endl;",
" std::cout &lt;&lt; std::string(py::str(obj)) &lt;&lt; std::endl;",
"}",
"</pre>",
"",
Expand Down

0 comments on commit 627f1a4

Please sign in to comment.