Skip to content

Commit

Permalink
fix: generation failed error caused by readFile
Browse files Browse the repository at this point in the history
See #133
  • Loading branch information
reuixiy committed May 12, 2020
1 parent aa1461f commit 62f6934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/utils/markdownify.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

{{- $Deliver.Scratch.Set "Content" $raw -}}

{{- $enableEmoji := replaceRE `enableEmoji = (.+)` `$1` (delimit (readFile "config.toml" | findRE `enableEmoji = (.+)` | uniq) " ") -}}
{{- if (fileExists "config.toml") -}}
{{- $enableEmoji := replaceRE `enableEmoji = (.+)` `$1` (delimit (readFile "config.toml" | findRE `enableEmoji = (.+)` | uniq) " ") -}}
{{- end -}}

<!-- New Markdown Syntax: Emphasis Point `..text..` -->
{{- $Content := $Deliver.Scratch.Get "Content" -}}
Expand Down

0 comments on commit 62f6934

Please sign in to comment.