Browse Source

tidy-up code in templates (end of Chapter 3).

These are minor changes -- just typo's, spacing issues Etc.

I added a for-loop to index.html just to get some data in the
'content' area in the 'main content area'. This will eventually be
replaced as I move throught the various chapters. I only added it to
see how the CSS rearranges the layout when there is some 'content' in
the main part of the page.
master
Craig Oates 2 years ago
parent
commit
dd8eb25c50
  1. 6
      templates/index.html
  2. 2
      templates/layouts/app.html
  3. 2
      templates/shared/footer.html

6
templates/index.html

@ -20,5 +20,9 @@
no guarantee it will contain anything n it, though.
-->
<h2>{{ message }}</h2>
<p>Here we go!</p>
{% for b in numbers %}
<li><a href="#">Blog Header</a></li>
{% endfor %}
{% endblock %}

2
templates/layouts/app.html

@ -16,7 +16,7 @@
<aside id="sidebar">
{% lisp (rails-to-caveman.view:render "shared/sidebar.html"
'(:news (1 2 3 4 5)
:blogs (1 2 3 4 5))) %}
:blogs (1 2 3 4 5))) %}
</aside>
<footer>
{% include "shared/footer.html" %}

2
templates/shared/footer.html

@ -1 +1 @@
<a href="/about">About this website</a>| Copyright(C) 2021 <a href="#">craigoates.net</a>
<a href="/about">About this website</a> | Copyright (C) 2021 <a href="#">craigoates.net</a>

Loading…
Cancel
Save