diff options
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/hypothesis.html | 3 | ||||
| -rw-r--r-- | layouts/partials/mini-toc.html | 6 | ||||
| -rw-r--r-- | layouts/partials/post-toc-summary.html | 17 | ||||
| -rw-r--r-- | layouts/partials/sidebar-toc.html | 5 | ||||
| -rw-r--r-- | layouts/partials/sidebar.html | 4 |
5 files changed, 13 insertions, 22 deletions
diff --git a/layouts/partials/hypothesis.html b/layouts/partials/hypothesis.html deleted file mode 100644 index 1417ea3..0000000 --- a/layouts/partials/hypothesis.html +++ /dev/null @@ -1,3 +0,0 @@ -<span class="hypothesis-container"> - <a class="sidebar-nav-item" id="hypothesis-link" href="#">{{ i18n "annotate" }}</a> -</span> diff --git a/layouts/partials/mini-toc.html b/layouts/partials/mini-toc.html index 0d52866..20a8fb2 100644 --- a/layouts/partials/mini-toc.html +++ b/layouts/partials/mini-toc.html @@ -13,12 +13,12 @@ <div class="toc" role="navigation"> <h2>{{ i18n "latest_publications" }}</h2> - <ul class="texts"> + <table class="texts posts-table"> {{/* Range through the first $maxPosts items of the $section */}} {{ range (first $maxPosts $section) }} - <li class="text-title"> + <tr class="text-title posts-tr"> {{ partial "post-toc-summary" . }} - </li> + </tr> {{ end }} </ul> </div> diff --git a/layouts/partials/post-toc-summary.html b/layouts/partials/post-toc-summary.html index 371a6f1..a96cb29 100644 --- a/layouts/partials/post-toc-summary.html +++ b/layouts/partials/post-toc-summary.html @@ -1,7 +1,10 @@ -<span class="post-meta"> - <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> - {{- .Date | time.Format (site.Params.dateFormatToc | default "2006.01.02") }} - </time> -</span> - -<a href="{{ .Permalink }}">{{ .Title }} </a> +<td class="posts-td-time"> + <span class="post-meta"> + <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"> + {{- .Date | time.Format (site.Params.dateFormatToc | default "2006.01.02") }} + </time> + </span> +</td> +<td class="posts-td-link"> + <a href="{{ .Permalink }}">{{ .Title }} </a> +</td> diff --git a/layouts/partials/sidebar-toc.html b/layouts/partials/sidebar-toc.html index 5f4ff7e..0e9f1fb 100644 --- a/layouts/partials/sidebar-toc.html +++ b/layouts/partials/sidebar-toc.html @@ -13,11 +13,6 @@ {{ $toc = $toc | replaceRE "(<[/]?ul>|<[/]?ol>|<[/]?li>)" "" | safeHTML }} {{ $toc = $toc | replaceRE `<a href="(.*)">(.*)</a>` `<a class="sidebar-nav-item sidebar-nav-item-toc" href="$1">$2</a>` | safeHTML }} - {{ if ne .Params.annotations false }} - {{ $annotation := (partial "hypothesis.html" .) }} - {{ $toc = $toc | replaceRE `<nav class="sidebar-nav">` (printf `<nav class="sidebar-nav">%s` $annotation) | safeHTML }} - {{ end }} - {{ $home := printf `<a class="sidebar-nav-item" href="%s">%s</a>` site.Home.RelPermalink (i18n "home") | safeHTML }} {{ $toc = $toc | replaceRE `<nav class="sidebar-nav">` (printf `<nav class="sidebar-nav">%s` $home) | safeHTML }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 59d2360..0f7e19d 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -22,10 +22,6 @@ </a> {{- end }} - {{- if ne .Params.annotations false }} - {{ partial "hypothesis.html" . }} - {{- end }} - {{- with site.Menus.feeds }} <div class="sidebar-nav-item"> {{- range $i, $ := site.Menus.feeds }} |
