Commit Diff


commit - 9a0dc68bab2d2c0a9563e7c459804aa0c803a420
commit + 1b84cfd59203a520c4681cebf74b0f660f1aaf20
blob - 795124e37eaa507e3cfc08c5f96c882164f1c16f (mode 644)
blob + /dev/null
--- layouts/_partials/publish/publish-markdown.html
+++ /dev/null
@@ -1,28 +0,0 @@
-{{- $page := . -}}
-
-{{- with $page.File -}}
-  {{- if eq .Ext "md" -}}
-
-    {{- with $page.OutputFormats.Get "html" -}}
-      {{- $path := (urls.Parse .RelPermalink).Path -}}
-
-      {{- if strings.HasSuffix $path "/" -}}
-        {{- $path = printf "%sindex.html" $path -}}
-      {{- end -}}
-
-      {{- $extension := path.Ext $path -}}
-      {{- $path = printf
-        "%s.md"
-        (strings.TrimSuffix $extension $path)
-      -}}
-
-      {{- $resource := resources.FromString
-        (strings.TrimPrefix "/" $path)
-        $page.RenderShortcodes
-      -}}
-
-      {{- $resource.Publish -}}
-    {{- end -}}
-
-  {{- end -}}
-{{- end -}}
blob - /dev/null
blob + 795124e37eaa507e3cfc08c5f96c882164f1c16f (mode 644)
--- /dev/null
+++ layouts/_partials/publish/markdown.html
@@ -0,0 +1,28 @@
+{{- $page := . -}}
+
+{{- with $page.File -}}
+  {{- if eq .Ext "md" -}}
+
+    {{- with $page.OutputFormats.Get "html" -}}
+      {{- $path := (urls.Parse .RelPermalink).Path -}}
+
+      {{- if strings.HasSuffix $path "/" -}}
+        {{- $path = printf "%sindex.html" $path -}}
+      {{- end -}}
+
+      {{- $extension := path.Ext $path -}}
+      {{- $path = printf
+        "%s.md"
+        (strings.TrimSuffix $extension $path)
+      -}}
+
+      {{- $resource := resources.FromString
+        (strings.TrimPrefix "/" $path)
+        $page.RenderShortcodes
+      -}}
+
+      {{- $resource.Publish -}}
+    {{- end -}}
+
+  {{- end -}}
+{{- end -}}