Browse Source

adding exercise page

master
jk 3 years ago
parent
commit
a7677e3765
  1. 4
      config.toml
  2. 2
      layouts/exercise/single.html
  3. 7
      themes/nipponalba/static/css/style.css

4
config.toml

@ -78,9 +78,9 @@ weight= 100
url = "/"
[[languages.en.menu.main]]
name = "Education"
name = "Exercise"
weight = 200
url = "/category/education/"
url = "/exercise/"
[[languages.en.menu.main]]
name = "Health"

2
layouts/exercise/single.html

@ -3,7 +3,7 @@
<a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a>
</section>
<section class="exercise">
<h2>Goal: Get fit again, increase stamina and strength</h2>
<h2>Goal: Become Fitter and Healthier</h2>
{{ range sort .Site.Data.workouts "date" "desc"}}
<section class="exercise_grid">
<span class="type"><b>Type</b><br/>{{ .type | humanize }}</span>

7
themes/nipponalba/static/css/style.css

@ -741,15 +741,16 @@ ol li{
width: 95%;
}
.exercise_grid{
max-width: 96%;
max-width: 94%;
display:grid;
grid-template-columns: 15% 20% 25% 25% auto;
grid-template-rows: 105px 40px;
grid-template-columns: 17% 18% 25% 25% auto;
grid-template-rows: 85px 60px;
border: 1px solid var(--border-colour);
border-radius:15px;
margin: 0 auto;
padding: 10px;
margin-bottom: 20px;
margin-right: 20px;
}
.exercise_grid .type, .exercise_grid .distance{
grid-column: 1;

Loading…
Cancel
Save