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

github.com/curttimson/hugo-theme-dopetrope.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-02-18 22:51:39 +0300
committerCurtis Timson <curt@live.co.uk>2018-02-18 22:51:39 +0300
commit85e9e23f15fc3cbad2d63ae6335231d470b8d423 (patch)
treeb330b634009ae2aedfa9330f183888a1ee288aad
parentfd2a6329e8c4d6c2305ae61d3869f418a838b727 (diff)
:sparkles: Add initial sidebar and refactor post content
-rw-r--r--layouts/_default/single.html52
-rw-r--r--layouts/partials/post/content.html15
-rw-r--r--package.json2
3 files changed, 53 insertions, 16 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 93054e3..978afff 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -23,22 +23,44 @@
<!-- Main -->
<div id="main-wrapper">
<div class="container">
+ <div class="row">
+ <div class="8u 12u(mobile)">
- <!-- Content -->
- <article class="box post">
- <a href="#" class="image featured"><img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="" /></a>
- <header>
- <h2>{{ .Title }}</h2>
- {{ if not .Date.IsZero }}
- <p>Posted {{ .Date.Format "2 Jan 2006" }}</p>
- {{ end }}
- </header>
- {{ .Content }}
- </article>
-
- {{ if .Params.disqusid }}
- <div id="disqus_thread"></div>
- {{ end }}
+ {{ partial "post/content.html" . }}
+
+
+ </div>
+ <div class="4u 12u(mobile)">
+
+ <!-- Sidebar -->
+ <section class="box">
+ <a href="#" class="image featured"><img src="images/pic09.jpg" alt="" /></a>
+ <header>
+ <h3>Sed etiam lorem nulla</h3>
+ </header>
+ <p>Lorem ipsum dolor sit amet sit veroeros sed amet blandit consequat veroeros lorem blandit adipiscing et feugiat phasellus tempus dolore ipsum lorem dolore.</p>
+ <footer>
+ <a href="#" class="button alt">Magna sed taciti</a>
+ </footer>
+ </section>
+ <section class="box">
+ <header>
+ <h3>Feugiat consequat</h3>
+ </header>
+ <p>Veroeros sed amet blandit consequat veroeros lorem blandit adipiscing et feugiat sed lorem consequat feugiat lorem dolore.</p>
+ <ul class="divided">
+ <li><a href="#">Sed et blandit consequat sed</a></li>
+ <li><a href="#">Hendrerit tortor vitae sapien dolore</a></li>
+ <li><a href="#">Sapien id suscipit magna sed felis</a></li>
+ <li><a href="#">Aptent taciti sociosqu ad litora</a></li>
+ </ul>
+ <footer>
+ <a href="#" class="button alt">Ipsum consequat</a>
+ </footer>
+ </section>
+
+ </div>
+ </div>
</div>
</div>
diff --git a/layouts/partials/post/content.html b/layouts/partials/post/content.html
new file mode 100644
index 0000000..7134fa2
--- /dev/null
+++ b/layouts/partials/post/content.html
@@ -0,0 +1,15 @@
+<!-- Content -->
+<article class="box post">
+ <a href="#" class="image featured"><img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="" /></a>
+ <header>
+ <h2>{{ .Title }}</h2>
+ {{ if not .Date.IsZero }}
+ <p>Posted {{ .Date.Format "2 Jan 2006" }}</p>
+ {{ end }}
+ </header>
+ {{ .Content }}
+</article>
+
+{{ if .Params.disqusid }}
+<div id="disqus_thread"></div>
+{{ end }} \ No newline at end of file
diff --git a/package.json b/package.json
index c6a4c46..7337bd8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "hugo-theme-dopetrope",
- "version": "3.0.0",
+ "version": "3.1.0",
"description": "Hugo Theme Dopetrope",
"main": "index.js",
"scripts": {