diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-18 22:53:50 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-18 22:53:50 +0300 |
commit | b42c3c5cfd18134c23c8e8ea09f7428f4443b6aa (patch) | |
tree | b192a97cb4ca865a921663479d9cf89775c19903 | |
parent | 85e9e23f15fc3cbad2d63ae6335231d470b8d423 (diff) |
:recycle: Refactor sidebar to new partial
-rw-r--r-- | layouts/_default/single.html | 55 | ||||
-rw-r--r-- | layouts/partials/post/sidebar.html | 26 |
2 files changed, 38 insertions, 43 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 978afff..a174d2c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -11,63 +11,32 @@ <div id="page-wrapper"> <!-- Header --> - <div id="header-wrapper"> - <div id="header"> + <div id="header-wrapper"> + <div id="header"> - {{ partial "logo.html" . }} - {{ partial "nav.html" . }} + {{ partial "logo.html" . }} + {{ partial "nav.html" . }} - </div> </div> + </div> - <!-- Main --> - <div id="main-wrapper"> - <div class="container"> - <div class="row"> + <!-- Main --> + <div id="main-wrapper"> + <div class="container"> + <div class="row"> <div class="8u 12u(mobile)"> - {{ 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> + {{ partial "post/sidebar" . }} </div> </div> </div> + </div> - {{ partial "footer/index.html" . }} + {{ partial "footer/index.html" . }} </div> - {{ partial "scripts/index.html" . }} diff --git a/layouts/partials/post/sidebar.html b/layouts/partials/post/sidebar.html new file mode 100644 index 0000000..6b9b9f6 --- /dev/null +++ b/layouts/partials/post/sidebar.html @@ -0,0 +1,26 @@ +<!-- 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>
\ No newline at end of file |