Skip to content

Commit

Permalink
remove the recipe button from sites without a recipe...
Browse files Browse the repository at this point in the history
  • Loading branch information
dhonus committed Jan 14, 2024
1 parent 120ef46 commit bb7f4d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions themes/bean/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ <h1>{{ strings.Title .Title }}</h1>
</p>
</span>
<p class="dark-gray-text" id="wordcount"> {{ .WordCount }} Words - reading time: {{ math.Round (div (countwords .Content) 180.0) }} minutes. </p>
<a href="#recipe">
<button class="jump-to-recipe">Jump to recipe</button>
</a>
{{ if .Params.tags }}
<a href="#recipe">
<button class="jump-to-recipe">Jump to recipe</button>
</a>
{{ end }}
</section>
</div>
<span class="main-content">
Expand Down

0 comments on commit bb7f4d9

Please sign in to comment.