Browse Source

adding microformats to bookmarks page

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

33
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> <h4>Scottish Politics</h4>
{{ range .Site.Data.bookmarks }} {{ range .Site.Data.bookmarks }}
{{ if eq .category "Scottish Politics"}} {{ if eq .category "Scottish Politics"}}
<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 }} <u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
</article>
</aside>
</section>
{{ end }} {{ end }}
{{ end }} {{ end }}
<h4>Vegan Recipes</h4> <h4>Vegan Recipes</h4>
{{ range .Site.Data.bookmarks }} {{ range .Site.Data.bookmarks }}
{{ if eq .category "Vegan Recipes"}} {{ if eq .category "Vegan Recipes"}}
<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 }} <u><a href="{{ .bookmarkof | absURL }}" target="_blank">{{ .name }}</a></u> - {{ .content | markdownify }}
</article>
</aside>
</section>
{{ end }} {{ end }}
{{ end }} {{ end }}