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

org-header not used when executing easy-hugo-newpost #33

Closed
nickanderson opened this issue Nov 22, 2017 · 5 comments
Closed

org-header not used when executing easy-hugo-newpost #33

nickanderson opened this issue Nov 22, 2017 · 5 comments

Comments

@nickanderson
Copy link

I am running in spacemacs and it seems to really break easy-hugo so I am not using that main menu yet.

I am running hugo 0.31 and I use .org as the default file extension. easy-hugo-newpost does initialize a new post but it does not use the org header.

@masasam
Copy link
Owner

masasam commented Nov 22, 2017

Hi @nickanderson .
Have you this file?

archetypes/default.org
+++
categories = [""]
tags = [""]
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
draft = false
+++

https://github.com/masasam/PPAP/blob/master/archetypes/default.org

@nickanderson
Copy link
Author

No, I do not. I interpreted the elisp that it would inject the org style header. However, creating the file with org syntax does result in the desired behaviour.

#+Title: "{{ replace .TranslationBaseName "-" " " | title }}"
#+DATE: "{{ .Date }}" 
#+TAGS: [""]
#+DRAFT: false

@nickanderson
Copy link
Author

Thanks!

@masasam
Copy link
Owner

masasam commented Nov 30, 2017

Hi @nickanderson .
You can use with the following settings at 25e4f9d
(setq easy-hugo-org-header t)

@nickanderson
Copy link
Author

Ah, great thanks!

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

No branches or pull requests

2 participants