Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#68|Parmeterize number of recent posts in index.html #69

Merged
merged 2 commits into from
Nov 1, 2017
Merged

#68|Parmeterize number of recent posts in index.html #69

merged 2 commits into from
Nov 1, 2017

Conversation

learnitmyway
Copy link

No description provided.

@learnitmyway
Copy link
Author

Let me know if you would also like me to parameterize the number of more posts as well. Something like:

[params]
  more_posts_number = 4  

@@ -20,20 +20,22 @@ <h1 class="flex-none">
</h1>
{{ end }}

{{ $n_posts := .Site.Params.recent_posts_number | default 3 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be $.Param "recent_posts_number" Param allows users to set the variable at the page level or config.

@budparr
Copy link
Member

budparr commented Nov 1, 2017

Thank you, @developerdavo I just had the one comment.

@budparr budparr merged commit f9b62a2 into theNewDynamic:master Nov 1, 2017
@budparr
Copy link
Member

budparr commented Nov 1, 2017

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants