1
0

/front-matter -> /frontmatter

This commit is contained in:
Zef Hemel 2023-11-27 16:43:12 +01:00
parent 259ad5b488
commit fc6165000c
3 changed files with 18 additions and 26 deletions

View File

@ -1,5 +1,5 @@
body {
font-family: georgia,times,serif;
font-family: georgia, times, serif;
font-size: 14pt;
max-width: 800px;
margin-left: auto;
@ -12,15 +12,6 @@ img {
max-width: 100%;
}
table.front-matter {
border: 1px solid #555;
font-size: 75%;
}
table.front-matter .key {
font-weight: bold;
}
table {
width: 100%;
border-spacing: 0;
@ -31,16 +22,17 @@ ul li p {
}
thead tr {
background-color: #333;
color: #eee;
background-color: #333;
color: #eee;
}
th, td {
padding: 8px;
th,
td {
padding: 8px;
}
tbody tr:nth-of-type(even) {
background-color: #f3f3f3;
background-color: #f3f3f3;
}
a[href] {
@ -54,18 +46,18 @@ blockquote {
}
hr {
margin: 1em 0 1em 0;
text-align: center;
border-color: #777;
border-width: 0;
border-style: dotted;
margin: 1em 0 1em 0;
text-align: center;
border-color: #777;
border-width: 0;
border-style: dotted;
}
hr:after {
content: "···";
letter-spacing: 1em;
content: "···";
letter-spacing: 1em;
}
span.highlight {
background-color: yellow;
}
}

View File

@ -29,8 +29,8 @@ functions:
insertFrontMatter:
redirect: insertTemplateText
slashCommand:
name: front-matter
description: Insert page front matter
name: frontmatter
description: Insert page frontmatter
value: |
---
|^|

View File

@ -72,7 +72,7 @@ with a 🗓️ emoji by default, but this is configurable via the `weeklyNotePre
The {[Quick Note]} command will navigate to an empty page named with the current date and time prefixed with a 📥 emoji, but this is configurable via the `quickNotePrefix` in `SETTINGS`. The use case is to take a quick note outside of your current context.
## Built-in slash commands
* `/front-matter`: Insert [[Frontmatter]]
* `/frontmatter`: Insert [[Frontmatter]]
* `/h1` - `/h4`: turn the current line into a header
* `/code`: insert a fenced code block
* `/hr`: insert a horizontal rule