Commit effb1cf2 authored by Eugen Rochko's avatar Eugen Rochko

Add RSS and microformats

parent caa09d70
Pipeline #24 passed with stages
in 0 seconds
......@@ -10,7 +10,7 @@
<div class="article h-entry">
<div class="container">
<header class="article-header">
<h1>{{ .Page.Title }}</h1>
<h1 class="p-name">{{ .Page.Title }}</h1>
{{ if isset .Params "subtitle" }}
<h2>{{ .Params.subtitle }}</h2>
......@@ -23,7 +23,7 @@
{{ end }}
</header>
<main>
<main class="e-content">
{{ .Content }}
</main>
......
<a class="cover" href="{{ .RelPermalink }}" rel="bookmark">
<a class="cover u-url" href="{{ .RelPermalink }}" rel="bookmark">
<div class="overlay">
<h2>{{ .Title }}</h2>
<h2 class="p-name">{{ .Title }}</h2>
</div>
</a>
<div class="article-information">
<div class="author">
<div class="author p-author h-card">
{{ if isset .Params "author" }}
{{ $author := index .Site.Data.authors .Params.author }}
......@@ -21,9 +21,9 @@
{{ end }}
</div>
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">
{{ .Date.Format "Jan 2, 2006" }}
</time>
<div class="summary">{{ .Summary }}</div>
<div class="summary p-summary">{{ .Summary }}</div>
</div>
......@@ -19,7 +19,7 @@
<ul class="thumbnail-grid h-feed">
{{ range .Paginator.Pages }}
<li>{{ .Render "summary" }}</li>
<li class="h-entry">{{ .Render "summary" }}</li>
{{ end }}
</ul>
......
......@@ -3,3 +3,7 @@
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' href='/style.css'>
<link rel='stylesheet' href='/fontawesome.css'>
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s+%s" href="%s" title="%s" />` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }}
{{ end -}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment