My personal blog hauleth.dev
blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: update layout of the blog

+57 -6
+2 -1
config.toml
··· 46 46 # Menu items to display. You define a url and the name of the menu item. 47 47 # NOTE: `$BASE_URL/` must be included in the url name. 48 48 main_menu = [ 49 - {url="/post/", name="blog"}, 49 + {url="https://plan.cat/~hauleth", name=".plan", rel="me"}, 50 50 {url="https://twitter.com/hauleth", name="twitter", rel="me"}, 51 51 {url="https://github.com/hauleth", name="github", rel="me"}, 52 + {url="https://gitlab.com/hauleth", name="gitlab", rel="me"}, 52 53 ] 53 54 54 55 # Displayed after teaser text for a blog post.
+5 -1
content/_index.md
··· 1 1 +++ 2 2 title = "Hauleth" 3 - template = "section.html" 3 + template = "landing.html" 4 + 5 + sort_by = "date" 6 + paginate_by = 1000 7 + insert_anchor_links = "right" 4 8 +++ 5 9 6 10 {{ readme() }}
+2 -1
content/post/_index.md
··· 2 2 sort_by = "date" 3 3 paginate_by = 1000 4 4 insert_anchor_links = "right" 5 - template = "index.html" 5 + transparent = true 6 + redirect_to = "/" 6 7 +++
+4
netlify.toml
··· 7 7 8 8 [context.deploy-preview] 9 9 command = "zola build --drafts" 10 + 11 + [[redirects]] 12 + from = "/post" 13 + to = "/"
+2 -1
sass/_main.scss
··· 27 27 h1, h2, h3, h4, h5, h6 { 28 28 line-height: 1.3; 29 29 30 - &:not(first-child) { 30 + &:not(:first-child) { 31 31 margin-top: 40px; 32 32 } 33 33 ··· 219 219 220 220 .content { 221 221 display: flex; 222 + flex-direction: column; 222 223 } 223 224 224 225 hr {
+2
sass/_post.scss
··· 48 48 } 49 49 } 50 50 51 + &.on-list &-title { --border: none; } 52 + 51 53 &-tags { 52 54 display: block; 53 55 margin-bottom: 20px;
-1
sass/style.scss
··· 11 11 --phoneWidth: (max-width: #{$phone-max-width + 1px}); 12 12 --tabletWidth: (max-width: #{$tablet-max-width + 1px}); 13 13 } 14 -
+14
templates/landing.html
··· 1 + {% extends "index.html" -%} 2 + 3 + {%- block main -%} 4 + <section> 5 + <article> 6 + {{ section.content | safe }} 7 + </article> 8 + </section> 9 + 10 + <div> 11 + <h2>blog</h2> 12 + {{ lists::list_pages() }} 13 + </div> 14 + {%- endblock main -%}
+25
templates/macros/lists.html
··· 1 + {% macro list_pages() %} 2 + <section class="posts"> 3 + 4 + {%- for page in paginator.pages -%} 5 + 6 + <div class="post on-list"> 7 + <h3 class="post-title"> 8 + <a href="{{ page.permalink }}">{{ page.title }}</a> 9 + </h3> 10 + 11 + {{ posts::meta(page=page, author=config.extra.show_author) }} 12 + 13 + <div class="post-content"> 14 + {% if page.description -%} 15 + {{ page.description }} 16 + {#- end if-check for description -#} 17 + {% elif page.summary -%} 18 + {{ page.summary | safe }} 19 + {% endif -%} 20 + </div> 21 + </div> 22 + {# End of pagination for-loop #} 23 + {%- endfor -%} 24 + </section> 25 + {% endmacro list_pages %}
+1 -1
templates/shortcodes/readme.md
··· 1 - ## hello 1 + # hello 2 2 3 3 <div class="h-card"> 4 4