Browse Source

adding microformats to bookmarks page

master
jk 4 years ago
parent
commit
806712d382
  1. 37
      themes/nipponalba/layouts/partials/bookmarks.html

37
themes/nipponalba/layouts/partials/bookmarks.html

@ -1,12 +1,45 @@
<h4>Brewing</h4>
{{ range .Site.Data.bookmarks }}
{{ if eq .category "Brewing"}}
<section data-post-type="bookmark-of" data-post-id="{{ .Params.slug }}" class="bookmark h-entry">
<div class="author">
<a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a>
</div>
<aside>
<article class="u-bookmark-of h-cite">
<u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
</article>
</aside>
</section>
{{ end }}
{{ end }}
<h4>Scottish Politics</h4>
{{ range .Site.Data.bookmarks }}
{{ if eq .category "Scottish Politics"}}
<u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
<section data-post-type="bookmark-of" data-post-id="{{ .Params.slug }}" class="bookmark h-entry">
<div class="author">
<a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a>
</div>
<aside>
<article class="u-bookmark-of h-cite">
<u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
</article>
</aside>
</section>
{{ end }}
{{ end }}
<h4>Vegan Recipes</h4>
{{ range .Site.Data.bookmarks }}
{{ if eq .category "Vegan Recipes"}}
<u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
<section data-post-type="bookmark-of" data-post-id="{{ .Params.slug }}" class="bookmark h-entry">
<div class="author">
<a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a>
</div>
<aside>
<article class="u-bookmark-of h-cite">
<u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
</article>
</aside>
</section>
{{ end }}
{{ end }}