diff --git a/static/assets/css/style.css b/static/assets/css/style.css index d0dfc912..8eb06b1a 100644 --- a/static/assets/css/style.css +++ b/static/assets/css/style.css @@ -272,6 +272,13 @@ footer { grid-template-columns: 13% 64% 10% 13%; } + .index-h2 { + font-size: 1em; + margin-left: 14%; + padding-left: 20px; + margin-top: 40px; + } + .index-posts ul#posts { margin-left: 14%; padding-left: 20px; @@ -282,6 +289,11 @@ footer { padding-left: 20px; } + .index-see-all { + margin-left: 14%; + padding-left: 20px; + } + .article { margin: 0 45px; } diff --git a/templates/index.html b/templates/index.html index d0b43d03..109eb7b0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,6 +20,7 @@ {% block content %} +

Latest posts

{%- if lang == "pt" %} {%- set posts = get_section(path="posts/_index.pt.md") %} {%- else %} @@ -32,7 +33,54 @@ {{ post.date }} {{ post.title }} + {% if loop.index == 5 %}{% break %}{% endif %} {% endfor %} + + {%- if lang == "pt" %}Ver todos{% else %}See all{% endif %} + + +

Latest notes

+ {%- if lang == "pt" %} + {%- set notes = get_section(path="notes/_index.pt.md") %} + {%- else %} + {%- set notes = get_section(path="notes/_index.md") %} + {%- endif %} + + + {%- if lang == "pt" %}Ver todos{% else %}See all{% endif %} + + +

Latest links

+ {%- if lang == "pt" %} + {%- set links = get_section(path="links/_index.pt.md") %} + {%- else %} + {%- set links = get_section(path="links/_index.md") %} + {%- endif %} + + + {%- if lang == "pt" %}Ver todos{% else %}See all{% endif %} + + {%- endblock content %}