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

github.com/aanupam23/hugo-sugoi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraanupam23 <11939280+aanupam23@users.noreply.github.com>2020-04-06 14:46:30 +0300
committeraanupam23 <11939280+aanupam23@users.noreply.github.com>2020-04-06 14:46:30 +0300
commit387fe23e3a7f6a0199c7ec51a36ae0e844934a0d (patch)
tree103be0705b428c2bb3d1103d853196600dc724be
parent74c1d64b908ad15fb348514c022241fd5460667b (diff)
Updated style
-rw-r--r--layouts/_default/list.html10
-rw-r--r--layouts/_default/single.html6
-rw-r--r--layouts/index.html10
3 files changed, 25 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e69de29..d0321b4 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+<h1>{{ .Title }}</h1>
+{{ range .Pages.ByPublishDate.Reverse }}
+<p>
+ <a class="" href="{{ .RelPermalink }}">{{ .Title }}</a>
+</p>
+{{ end }}
+
+{{ end }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index e69de29..5e19dd7 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+
+<h1>{{ .Title }}</h1>
+{{ .Content }}
+
+{{ end }} \ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index 8c218d6..67a9eeb 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -3,9 +3,17 @@
<div class="row">
<div class="one-half column" style="margin-top: 25%">
<h2 class="title">A dead simple, responsive boilerplate.</h2>
+ {{ range first 5 (where .Site.Pages "Type" "post" )}}
+ <p>
+ <a href="{{.RelPermalink}}">{{.Date.Format "2006-01-02"}} | {{.Title}}</a>
+ </p>
+ {{ end }}
+ </div>
+ <div class="one-half column" style="margin-top: 25%">
+ <h2 class="title">A dead simple, responsive boilerplate.</h2>
<p>This index.html page is a placeholder with the CSS, font and favicon. It's just waiting for you to add some
content! If you need some help hit up the <a href="http://www.getskeleton.com">Skeleton documentation</a>.</p>
- <a class="button button-primary" href="https://github.com/dhg/Skeleton/releases/download/2.0.4/Skeleton-2.0.4.zip" onClick="_gaq.push(['_trackEvent', 'skeleton', 'download'])">Download</a>
+ <a class="button button-primary" href="https://github.com/dhg/Skeleton/releases/download/2.0.4/Skeleton-2.0.4.zip">Download</a>
</div>
</div>
</div>