diff --git a/_posts/2022-02-01-redirect.md b/_posts/2022-02-01-redirect.md new file mode 100644 index 000000000000..29170d855800 --- /dev/null +++ b/_posts/2022-02-01-redirect.md @@ -0,0 +1,7 @@ +--- +layout: post +title: a post with redirect +date: 2021-07-04 17:39:00 +description: you can also redirect to assets like pdf +redirect: /assets/pdf/example_pdf.pdf +--- diff --git a/blog/index.html b/blog/index.html index fc0d6d6e8182..4e2f16819da9 100644 --- a/blog/index.html +++ b/blog/index.html @@ -30,7 +30,12 @@

{{ site.blog_description }}

{% assign categories = post.categories | join: "" %}
  • -

    {{ post.title }} +

    + {% if post.redirect == blank %} + {{ post.title }} + {% else %} + {{ post.title }} + {% endif %}

    {{ post.description }}

    {{read_time}} min read   ·