Skip to content

Commit

Permalink
Add raw block to avoid jekyll processing code examples
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Oct 22, 2024
1 parent 911ebf1 commit 973987a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org/_posts/2024-10-22-how_i_blog_with_emacs.org
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ If you have ever written a bash script before, you will probably figure out this

This time you will probably have a harder time guessing how the HTML layout page looks. After all, what are we supposed to do there? If you think about it for a while, it is not that hard. We have the tag from the metadata, so we simply need to parse the Jekyll array structures and filter the posts that have the tag we are looking for. Fortunately, Jekyll keeps an array/list with all posts for a given tag:

{% raw %}
#+BEGIN_SRC html
---
layout: default
Expand All @@ -346,7 +347,7 @@ This time you will probably have a harder time guessing how the HTML layout page
<hr />
{% endfor %}
#+END_SRC

{% endraw %}


** My way of showing related pages in the bottom of each post
Expand Down

0 comments on commit 973987a

Please sign in to comment.