index formatting and h-card

This commit is contained in:
yequari 2023-10-20 19:15:08 -07:00
parent 38c5d9235e
commit 988f80d353
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,5 @@
{{ define "main" }} {{ define "main" }}
<article>
{{ .Content }} {{ .Content }}
<h2>Latest Blog Posts</h2> <h2>Latest Blog Posts</h2>
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }} {{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }}
@ -6,4 +7,5 @@
<p>{{ .Summary }}</p> <p>{{ .Summary }}</p>
<a href="{{ .RelPermalink }}">Read More &gt;</a> <a href="{{ .RelPermalink }}">Read More &gt;</a>
{{ end }} {{ end }}
</article>
{{ end }} {{ end }}

View File

@ -1,9 +1,9 @@
<div class="main-sidebar"> <div class="main-sidebar">
<div class="header-nav"> <div class="header-nav">
<header> <header>
<div class="profile"> <div class="profile h-card">
<a class="sitetitle" href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a> <a class="sitetitle u-url" href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a>
<img width="100px" src="/images/avatar.jpg"> <img class="u-photo" width="100px" src="/images/avatar.jpg">
<div id="social-links"> <div id="social-links">
<ul class="social"> <ul class="social">
{{ range site.Menus.social }} {{ range site.Menus.social }}