A charming Jekyll theme. linus.arthr.dev/
jekyll-theme
0
fork

Configure Feed

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

feature(layout): adds site header and footer

+65
+20
_includes/footer.html
··· 1 + <footer class="site-footer"> 2 + <p> 3 + <strong>{{ site.title }}</strong> &mdash; {{ site.description }} 4 + </p> 5 + 6 + {% if site.footer_menu %} 7 + <nav class="footer-menu" aria-label="{{ site.footer_menu.title }}"> 8 + {% for item in site.footer_menu.items %} 9 + <a 10 + class="menu-item" 11 + href="{{ item.url }}" 12 + {%- if item.external %} target="_blank" {%- endif -%} 13 + {%- if item.rel %} rel="{{ item.rel }}" {%- endif -%} 14 + > 15 + {{- item.label -}} 16 + </a> 17 + {% endfor %} 18 + </nav> 19 + {% endif %} 20 + </footer>
+45
_includes/header.html
··· 1 + {%- assign is_personal_website = false -%} 2 + 3 + {%- if site.author or site.authors == 1 -%} 4 + {%- assign is_personal_website = true -%} 5 + {%- endif -%} 6 + 7 + {%- capture site_branding -%} 8 + <a class="site-branding h-card u-url" href="{{ '/' | absolute_url }}"> 9 + {% if site.logo %} 10 + <img 11 + class="site-logo u-photo" 12 + src="{{ site.logo }}" 13 + alt="" 14 + role="presentation" 15 + /> 16 + {% endif %} 17 + 18 + <span class="site-name p-name {%- unless is_personal_website %} p-org {%- endunless -%}"> 19 + {{ site.title }} 20 + </span> 21 + </a> 22 + {%- endcapture -%} 23 + 24 + 25 + <header class="site-header"> 26 + {% if page.title and page.title != "" %} 27 + <span class="site-title"> 28 + {{ site_branding }} 29 + </span> 30 + {% else %} 31 + <h1 class="site-title"> 32 + {{ site_branding }} 33 + </h1> 34 + {% endif %} 35 + 36 + {% if site.main_menu %} 37 + <nav class="site-menu" aria-label="{{ site.main_menu.title }}"> 38 + {% for item in site.main_menu.items %} 39 + <a class="menu-item" href="{{ item.url }}" {% if item.external %}target="_blank"{% endif %}> 40 + {{- item.label -}} 41 + </a> 42 + {% endfor %} 43 + </nav> 44 + {% endif %} 45 + </header>