Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/kitab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2019-05-21 06:14:39 +0300
committerDarshan Baral <darshanbaral@gmail.com>2019-05-21 06:14:39 +0300
commitab21f0b2249fd9ad38e7affdacbd3ba6190c68da (patch)
treebebf0ae727a1d0b7d62a4de38bc73398d8e56db6
parent71ac63966ec6e736032587dc6ca659c1662fd58a (diff)
Fxed double 'main' issue
-rw-r--r--layouts/404.html4
-rw-r--r--layouts/_default/section.html50
-rw-r--r--layouts/index.html2
3 files changed, 25 insertions, 31 deletions
diff --git a/layouts/404.html b/layouts/404.html
index ccc620b..d44978b 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,5 +1,3 @@
{{ define "main" }}
-<main>
- <h3>Still working on that one...</h3>
-</main>
+<h3>Still working on that one...</h3>
{{ end }}
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 6ec2a09..789dec4 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -1,28 +1,26 @@
{{ define "main" }}
-<main>
- <table class="table table-striped table-sm m-auto" style="max-width: 800px;">
- <thead>
- <tr>
- <th scope="col">
- <h3>
- {{ .Title | markdownify }}
- </h3>
- </th>
- </tr>
- </thead>
- <tbody>
- {{ range .Pages.ByWeight }}
- <tr>
- <td>
- <a href="{{ .Permalink }}">
- <h4>
- {{ .Title }}
- </h4>
- </a>
- </td>
- </tr>
- {{ end }}
- </tbody>
- </table>
-</main>
+<table class="table table-striped table-sm m-auto" style="max-width: 800px;">
+ <thead>
+ <tr>
+ <th scope="col">
+ <h3>
+ {{ .Title | markdownify }}
+ </h3>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range .Pages.ByWeight }}
+ <tr>
+ <td>
+ <a href="{{ .Permalink }}">
+ <h4>
+ {{ .Title }}
+ </h4>
+ </a>
+ </td>
+ </tr>
+ {{ end }}
+ </tbody>
+</table>
{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
index 6972886..11a2a0f 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,4 @@
{{ define "main" }}
-<main>
<div class="site-title text-center">
<h1>
{{ .Title }}
@@ -40,5 +39,4 @@
</div>
{{ end }}
</div>
-</main>
{{ end }}