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

Add reading YAML Metadata block into PDF Metadata #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add reading YAML Metadata block into PDF Metadata #74

wants to merge 1 commit into from

Conversation

andi4000
Copy link

if user provides PDF metadata variable e.g. author-meta, title-meta, and keywords in the YAML Metadata block of the Markdown file, it will be used as PDF Metadata.

The variable title-meta will be displayed on the PDF Reader instead of plain "resume" string.

MWE:

---
author-meta: "Donald Duck"
title-meta: "Ducky Duck Duck"
keywords:
    - Duck
    - Ducky
    - Donald
...

Donald Duck
===========

Education
---------

YAML Metadata Block is optional.

if user provides PDF metadata variable e.g.
author-meta, title-meta, and keyword
in the YAML Metadata block of the Markdown file,
it will be used as PDF Metadata.
@mszep
Copy link
Owner

mszep commented Sep 7, 2020

I love this, but I think it should be optional, so that the user doesn't have to put YAML in their markdown if they don't want to.

I think pandoc templates allow for conditionals in order to implement this, basically if there is no YAML metadata specified, the default will be the same as before.

@mszep
Copy link
Owner

mszep commented Sep 7, 2020

In fact a few lines below your proposed changes there are some if statements that show how it can be done!

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.

2 participants