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

title is not double quoted after exported to markdown #350

Closed
showgood opened this issue Apr 19, 2020 · 3 comments
Closed

title is not double quoted after exported to markdown #350

showgood opened this issue Apr 19, 2020 · 3 comments
Labels

Comments

@showgood
Copy link

Actual Behavior

title is not double quoted after exported to markdown

Expected Behavior

title should be double quoted after exported to markdown

How to Reproduce the Issue

export the example org file and examine the exported markdown file

Example Org File

#+HUGO_BASE_DIR: ..
#+hugo_auto_set_lastmod: t
#+OPTIONS: H:2
#+HUGO_SECTION: journal
#+TITLE: 2020-04-18
One World: Together At Home

Generated Markdown File or Error

+++
title = 2020-04-18
author = ["showgood"]
lastmod = 2020-04-18T22:45:44-04:00
draft = false
+++

One World: Together At Home

Ox-Hugo Debug Information

Debug Info

Debug information for ox-hugo

Emacs Version

GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.0.0, NS appkit-1894.10 Version 10.15.1 (Build 19B88))
 of 2020-02-16 (commit 3480071dfab30eaca7f1d014600b864d2ea22f62)

Org Version

Org mode version 9.4 (nil @ /Users/showgood/.emacs.d/.local/straight/build/org-mode/)

Hugo Version

Hugo Static Site Generator v0.62.1/extended darwin/amd64 BuildDate: unknown

Org load-path shadows

No Org mode shadows found in load-path

ox-hugo defcustoms

org-hugo-section “posts”
org-hugo-use-code-for-kbd nil
org-hugo-preserve-filling t
org-hugo-delete-trailing-ws t
org-hugo-prefer-hyphen-in-tags t
org-hugo-allow-spaces-in-tags t
org-hugo-tag-processing-functions (org-hugo–tag-processing-fn-replace-with-spaces-maybe org-hugo–tag-processing-fn-replace-with-hyphens-maybe)
org-hugo-auto-set-lastmod nil
org-hugo-export-with-toc nil
org-hugo-export-with-section-numbers nil
org-hugo-front-matter-format “toml”
org-hugo-default-static-subdirectory-for-externals “ox-hugo”
org-hugo-external-file-extensions-allowed-for-copying (“jpg” “jpeg” “tiff” “png” “svg” “gif” “mp4” “pdf” “odt” “doc” “ppt” “xls” “docx” “pptx” “xlsx”)
org-hugo-date-format “%Y-%m-%dT%T%z”
org-hugo-paired-shortcodes “”
org-hugo-langs-no-descr-in-code-fences nil
org-hugo-suppress-lastmod-period 0.0
org-hugo-front-matter-format “toml”
@kaushalmodi
Copy link
Owner

I see that this is an untested case where the title contains only numerics chars and hyphens.. matching the TOML date format. I'll investigate and fix it.

@kaushalmodi
Copy link
Owner

This issue got auto-closed as I referenced this issue in the fix commit. Feel free to comment here if the issue is still not fixed for you; I'll reopen it.

ox-hugo test page showing this issue fixed: https://ox-hugo.scripter.co/test/posts/title-with-just-date-chars/

Markdown source (generated by ox-hugo) of that test page: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content/posts/title-with-just-date-chars.md

@showgood
Copy link
Author

showgood commented May 4, 2020

thanks a lot for the prompt fix!!

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

No branches or pull requests

2 participants