Skip to content

Spliting an archetype and using style-first.css #64

Closed Answered by saurabh-sm
saurabh-sm asked this question in Q&A
Discussion options

You must be logged in to vote

I can split the configuration in the archetype and style-first.css in the following manner to achieve the desired results:

  • archetypes/default.md
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
description = 'Brief description for {{ replace .File.ContentBaseName "-" " " }}'
date = {{ .Date }}
authors = ['john', 'jane']
categories = ['foo']
tags = ['bar']
weight = 50
[paige.file_link]
disable = false
+++
  • style-first.css
#paige-authors,
#paige-keywords,
#paige-toc,
#paige-date,
#paige-prev-next,
#paige-reading-time,
.paige-authors,
.paige-keywords,
.paige-date,
.paige-prev-next {
    display: none;
}
.paige-summary {
    display: none;
}
.paige-reading-time {
    disp…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by saurabh-sm
Comment options

You must be logged in to vote
5 replies
@saurabh-sm
Comment options

@willfaught
Comment options

@saurabh-sm
Comment options

@willfaught
Comment options

@saurabh-sm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants