diff options
author | Curtis Timson <curt@live.co.uk> | 2018-02-10 22:23:53 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-02-10 22:23:53 +0300 |
commit | e4b42449dcef09bf1089ef2a6e6e43df89b3f806 (patch) | |
tree | 0c1ffab194bceb4c336be5f8c4c762d365157802 | |
parent | cbaa60186cdc4008a27345d0099b53dd80e38529 (diff) |
:sparkles: Hide date if not set
-rw-r--r-- | layouts/_default/single.html | 6 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 62 |
2 files changed, 4 insertions, 64 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4beff41..6453f9a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -29,8 +29,10 @@ <article class="box post"> <a href="#" class="image featured"><img src="{{ .Site.BaseURL }}{{ .Params.image }}" alt="" /></a> <header> - <h2>{{ .Title }}</h2> - <p>Posted {{ .Date.Format "2 Jan 2006" }}</p> + <h2>{{ .Title }}</h2> + {{ if not .Date.IsZero }} + <p>Posted {{ .Date.Format "2 Jan 2006" }}</p> + {{ end }} </header> {{ .Content }} </article> diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index e23932c..ad97727 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -18,67 +18,5 @@ </section> </div> {{ end }} - <div class="4u 12u(mobile)"> - <section class="box"> - <a href="#" class="image featured"><img src="images/pic03.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">Find out more</a> - </footer> - </section> - </div> - <div class="4u 12u(mobile)"> - <section class="box"> - <a href="#" class="image featured"><img src="images/pic04.jpg" alt="" /></a> - <header> - <h3>Consequat et tempus</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">Find out more</a> - </footer> - </section> - </div> - </div> - <div class="row"> - <div class="4u 12u(mobile)"> - <section class="box"> - <a href="#" class="image featured"><img src="images/pic05.jpg" alt="" /></a> - <header> - <h3>Blandit sed adipiscing</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">Find out more</a> - </footer> - </section> - </div> - <div class="4u 12u(mobile)"> - <section class="box"> - <a href="#" class="image featured"><img src="images/pic06.jpg" alt="" /></a> - <header> - <h3>Etiam nisl consequat</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">Find out more</a> - </footer> - </section> - </div> - <div class="4u 12u(mobile)"> - <section class="box"> - <a href="#" class="image featured"><img src="images/pic07.jpg" alt="" /></a> - <header> - <h3>Dolore nisl feugiat</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">Find out more</a> - </footer> - </section> - </div> </div> </section>
\ No newline at end of file |