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

Page archetype #106

Closed
ebouchut opened this issue Jan 14, 2017 · 6 comments
Closed

Page archetype #106

ebouchut opened this issue Jan 14, 2017 · 6 comments
Assignees
Milestone

Comments

@ebouchut
Copy link
Contributor

ebouchut commented Jan 14, 2017

I would like to have a page archetype with at least the following in the front matter:

comments:       false

showDate:       false

showSocial:     false
showTags:       false
showPagination: false

This would be useful for non blog pages like Contact and About for instance.

I plan on creating a PR with both the pagearchetype and with the showDate param that does not exist today.

Configuration

  • Hugo version: 0.18.1
  • Tranquilpeak version: 0.2.1-ALPHA

Actual behavior

hugo new page/about.md
creates a page with the date, social buttons, tags and pagination.

Expected behavior

hugo new page/about.md
creates the page without the date, social buttons, tags and pagination.

ebouchut added a commit to ebouchut/hugo-tranquilpeak-theme that referenced this issue Jan 14, 2017
Setting showDate to false in a page front matter prevents the date from being displayed
ebouchut added a commit to ebouchut/hugo-tranquilpeak-theme that referenced this issue Jan 14, 2017
The front matter is pre-populated to hide the date, tags, categories,
    social buttons and comments section.
ebouchut added a commit to ebouchut/hugo-tranquilpeak-theme that referenced this issue Jan 15, 2017
@ebouchut
Copy link
Contributor Author

@kakawait Would you be ok with adding a page archetype like the one in
45bcfca for non post pages like About or Contact ?

It seems to me such pages do not need a date, social sharing buttons, categories, tags and pagination.
What is your take on this?

ebouchut added a commit to ebouchut/hugo-tranquilpeak-theme that referenced this issue Jan 15, 2017
@ebouchut
Copy link
Contributor Author

If so I have a PR handy that I can make available so that you can have a look.

@kakawait
Copy link
Owner

@ebouchut yes is a good idea. Please submit your PR.

@kakawait kakawait added this to the 0.2.2-ALPHA milestone Jan 16, 2017
kakawait added a commit that referenced this issue Jan 16, 2017
Add page archetype and showDate parameter (Issue #106)
@ebouchut
Copy link
Contributor Author

Thanks

@kakawait
Copy link
Owner

@ebouchut I will keep issue open until I merge into master. Because is not "officially" release until new version. I plan to release something at the end of the week

@kakawait kakawait reopened this Jan 16, 2017
@ebouchut
Copy link
Contributor Author

ebouchut commented Jan 17, 2017

You are correct it is not yet into master and I think I can survive until the end of the week :-) .

zacbook pushed a commit to zacbook/hugo-tranquilpeak-theme that referenced this issue Nov 12, 2017
Setting showDate to false in a page front matter prevents the date from being displayed
zacbook pushed a commit to zacbook/hugo-tranquilpeak-theme that referenced this issue Nov 12, 2017
The front matter is pre-populated to hide the date, tags, categories,
    social buttons and comments section.
zacbook pushed a commit to zacbook/hugo-tranquilpeak-theme that referenced this issue Nov 12, 2017
zacbook pushed a commit to zacbook/hugo-tranquilpeak-theme that referenced this issue Nov 12, 2017
zacbook pushed a commit to zacbook/hugo-tranquilpeak-theme that referenced this issue Nov 12, 2017
Add page archetype and showDate parameter (Issue kakawait#106)
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

No branches or pull requests

2 participants