diff --git a/README.md b/README.md index d8dfccf..855710a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ Features: - Projects and Blog sections - Page load fade-in CSS effect and smooth scrolling to anchor links - Straightforward customization via `config.toml` -- Styled Markdown throughout with syntax highlighting +- Styled Markdown throughout, including post titles +- Syntax highlighting Developer-friendly: diff --git a/exampleSite/content/en/blog/long-form-post.md b/exampleSite/content/en/blog/long-form-post.md new file mode 100755 index 0000000..fafd351 --- /dev/null +++ b/exampleSite/content/en/blog/long-form-post.md @@ -0,0 +1,51 @@ +--- +title: "_Long_ Form Post" +date: 2020-05-30T20:18:53-05:00 +showDate: true +draft: false +tags: ["blog","code"] +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Cursus eget nunc scelerisque viverra. Quam vulputate dignissim suspendisse in est ante in nibh mauris. Pharetra magna ac placerat vestibulum lectus mauris. Eget lorem dolor sed viverra ipsum. + +## Elementum Nisi + +Quis eleifend quam adipiscing. Aliquet nec ullamcorper sit amet risus. Auctor neque vitae tempus quam pellentesque. Tincidunt lobortis feugiat vivamus at augue. Leo vel orci porta non pulvinar neque laoreet. Non enim praesent elementum facilisis leo vel. + +> In nibh mauris cursus mattis. Enim ut sem viverra aliquet eget sit. Risus sed vulputate odio ut enim. Id interdum velit laoreet id. +> +> * Id aliquet risus feugiat in ante metus dictum. +> * Enim nulla aliquet porttitor lacus luctus accumsan tortor. +> +> A scelerisque purus semper eget duis at tellus at. Proin fermentum leo vel orci porta non pulvinar. Nunc scelerisque viverra mauris in. Accumsan tortor posuere ac ut consequat. Lorem ipsum dolor sit amet consectetur adipiscing. Varius sit amet mattis vulputate enim nulla. Diam quis enim lobortis scelerisque fermentum dui faucibus in. + +### Accumsan + +Tortor posuere ac ut consequat. + +* placerat +* aliquet +* egestas sed + +### Tortor + +Tortor id aliquet lectus proin nibh nisl condimentum id venenatis. + +1. scelerisque +2. habitasse +3. adipiscing foo + +## Gravida Arcu ac Tortor + +Pretium `aenean pharetra magna` ac placerat vestibulum lectus. Gravida arcu ac tortor dignissim convallis aenean et. Amet luctus venenatis lectus magna fringilla urna porttitor rhoncus. Pellentesque elit eget gravida cum sociis natoque penatibus et magnis. Pharetra diam sit amet nisl `suscipit` adipiscing bibendum est. Consequat interdum varius sit amet mattis. Senectus et netus et malesuada fames ac turpis egestas sed. A arcu cursus vitae congue mauris rhoncus. Enim tortor at auctor urna nunc id cursus metus. Lacus sed viverra tellus in hac. + +Nulla pharetra diam: + +| sit | amet | +|-----|------| +| nisl | suscipit | +|adipiscing | bibendum | + +Elit ut aliquam purus sit. Tortor id aliquet lectus proin nibh nisl condimentum id venenatis. Dictumst quisque sagittis purus sit. Consectetur purus ut faucibus pulvinar. Neque ornare aenean euismod elementum nisi. Nisl nisi scelerisque eu ultrices vitae auctor. Morbi tristique senectus et netus et malesuada fames ac turpis. Dolor morbi non arcu risus quis. Tortor pretium viverra suspendisse potenti. + +Imperdiet sed euismod nisi porta lorem mollis. In hac habitasse platea dictumst vestibulum. Tincidunt eget nullam non nisi est sit. Facilisis sed odio morbi quis commodo odio. Tellus rutrum tellus pellentesque eu tincidunt tortor aliquam. Pulvinar pellentesque habitant morbi tristique senectus. Justo laoreet sit amet cursus sit amet dictum. Imperdiet sed euismod nisi porta lorem mollis aliquam ut. Integer vitae justo eget magna fermentum iaculis eu non diam. Suscipit adipiscing bibendum est ultricies integer quis auctor. Cursus risus at ultrices mi tempus imperdiet nulla. Facilisis leo vel fringilla est. Ut porttitor leo a diam sollicitudin tempor id eu. Curabitur gravida arcu ac tortor dignissim convallis. Egestas tellus rutrum tellus pellentesque eu tincidunt tortor aliquam nulla. Sit amet consectetur adipiscing elit. Nunc lobortis mattis aliquam faucibus purus in. Nulla porttitor massa id neque aliquam vestibulum. Augue ut lectus arcu bibendum at varius vel. Sit amet aliquam id diam maecenas ultricies. \ No newline at end of file diff --git a/exampleSite/resources/_gen/images/home/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_16363_320x320_fill_q75_box_center.jpg b/exampleSite/resources/_gen/images/home/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_16363_320x320_fill_q75_box_center.jpg new file mode 100644 index 0000000..85bdfec Binary files /dev/null and b/exampleSite/resources/_gen/images/home/profile_hu3d03a01dcc18bc5be0e67db3d8d209a6_16363_320x320_fill_q75_box_center.jpg differ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a366802..e08ad7d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,7 +16,7 @@
{{ block "title" . }} -

{{ .Title }}

+

{{ .Title | markdownify }}

{{ end }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index fe79f8b..5941551 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,11 +7,11 @@ {{ range .Pages.ByPublishDate.Reverse }} {{ if .Date }}
  • - {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title }} + {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title | markdownify }}
  • {{ else }}
  • - {{ .Title }} + {{ .Title | markdownify }}
  • {{ end }} {{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 71d0ca3..21511de 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,5 +1,5 @@ {{ define "title" }} -

    {{ .Data.Singular | humanize }}: {{ lower .Title }}

    +

    {{ .Data.Singular | humanize }}: {{ lower .Title | markdownify }}

    {{ end }} {{ define "main" }} @@ -8,11 +8,11 @@ {{ range .Pages.ByPublishDate.Reverse }} {{ if .Date }}
  • - {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title }} + {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title | markdownify }}
  • {{ else }}
  • - {{ .Title }} + {{ .Title | markdownify }}
  • {{ end }} {{ end }} diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 775277b..95085c5 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -9,7 +9,7 @@
    {{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}

    - {{ .Title }} + {{ .Title | markdownify }}

    diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 6a7f5b3..f5fadb7 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,61 +1,61 @@ {{ define "title" }} {{ with .Site.GetPage "/blog" }} -

    {{ .Title }}

    +

    {{ .Title | markdownify }}

    {{ end }} {{ end }} {{ define "main" }} -
    -

    - {{ .Title }} -

    -
    - {{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }} - {{ i18n "blog_readingTime" .ReadingTime }} -
    - {{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }} -
    - {{ i18n "blog_shareThis" . }}: - {{ if .Site.Params.share.twitter }} - - {{ end }} - {{ if .Site.Params.share.facebook }} - - - - - {{ end }} - {{ if .Site.Params.share.pinterest }} - - - - - {{ end }} - {{ if .Site.Params.share.googlePlus }} - - - - - {{ end }} -
    +
    +

    + {{ .Title | markdownify }} +

    +
    + {{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }} + {{ i18n "blog_readingTime" .ReadingTime }} +
    + {{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }} +
    + {{ i18n "blog_shareThis" . }}: + {{ if .Site.Params.share.twitter }} + {{ end }} - {{ if .Params.tags }} - {{ $len := (len .Params.tags) }} -

    - Tag{{ if gt $len 1 }}s{{ end }}: - {{ range $index, $tag := .Params.tags }} - {{ . }}{{ if ne (add $index 1) $len }},{{ end }} - {{ end }} -

    + {{ if .Site.Params.share.facebook }} + + + + + {{ end }} + {{ if .Site.Params.share.pinterest }} + + + + + {{ end }} + {{ if .Site.Params.share.googlePlus }} + + + + {{ end }}
    - -
    - {{ .Content }} -
    - - {{ partial "comments.html" . }} -{{ end }} + {{ end }} + {{ if .Params.tags }} + {{ $len := (len .Params.tags) }} +

    + Tag{{ if gt $len 1 }}s{{ end }}: + {{ range $index, $tag := .Params.tags }} + {{ . }}{{ if ne (add $index 1) $len }},{{ end }} + {{ end }} +

    + {{ end }} +
    + +
    + {{ .Content }} +
    + +{{ partial "comments.html" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 209ba78..fd1787c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -20,7 +20,7 @@

    - {{ .Title }} + {{ .Title | markdownify }}

    {{ .Content }} @@ -67,7 +67,7 @@
    -

    {{ .Title }}

    +

    {{ .Title | markdownify }}

    {{ if .Params.Image }}
    @@ -101,7 +101,7 @@ {{ with .Resources.GetMatch "contact.md" }}
    -

    {{ .Title }}

    +

    {{ .Title | markdownify }}

    {{ .Content }}
    diff --git a/layouts/partials/blog/li.html b/layouts/partials/blog/li.html index db6359b..e72f1cd 100644 --- a/layouts/partials/blog/li.html +++ b/layouts/partials/blog/li.html @@ -1,5 +1,5 @@ {{ range .Pages.ByPublishDate.Reverse }}
  • - {{ .Title }}{{ if .Params.date }} - {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }} + {{ .Title | markdownify }}{{ if .Params.date }} - {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
  • {{ end }} diff --git a/layouts/partials/head/metadata.html b/layouts/partials/head/metadata.html index ab1aded..7481c1c 100644 --- a/layouts/partials/head/metadata.html +++ b/layouts/partials/head/metadata.html @@ -6,7 +6,7 @@ {{ if .Site.Params.description }}{{ end }} -{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }} +{{ .Title | markdownify }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }} {{ with .OutputFormats.Get "RSS" }}{{ end }} diff --git a/layouts/partials/head/openGraph.html b/layouts/partials/head/openGraph.html index d613451..ca043b3 100644 --- a/layouts/partials/head/openGraph.html +++ b/layouts/partials/head/openGraph.html @@ -1,8 +1,8 @@ - + - + {{ with .Resources.ByType "image" }} {{ range first 5 (sort . "Params.weight") }} diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html index 2c2b55b..0582a20 100644 --- a/layouts/partials/home/blog.html +++ b/layouts/partials/home/blog.html @@ -6,7 +6,7 @@

    {{ i18n "index_blog_latestPosts" . }}

    {{ range first 1 .Pages.ByPublishDate.Reverse }}
    {{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }} -

    {{ .Title }}

    +

    {{ .Title | markdownify }}

    {{ .Summary }} {{ if .Truncated }} diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index e5a28a8..0cf6d96 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -3,7 +3,7 @@

    - {{ .Title }} + {{ .Title | markdownify }}

    diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 9f8c722..ec6cf57 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -56,7 +56,7 @@ {{ if eq (os.Stat .File.Dir).Name "projects" }} {{ if $isHome }} - {{ .Title }} + {{ .Title | markdownify }} {{ else }} {{ $pageIsInProjects := eq $.Page.Section "project"}} {{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }} @@ -72,7 +72,7 @@ {{ else if eq (os.Stat .File.Dir).Name "blog" }} {{ if $isHome }} - {{ .Title }} + {{ .Title | markdownify }} {{ else }} {{ $pageIsInBlog := eq $.Page.Section "blog"}} {{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }} @@ -86,7 +86,7 @@ {{ end }} {{ end }} {{ else }} - {{ .Title }} + {{ .Title | markdownify }} {{ end }} {{ end }} {{ end }} @@ -94,7 +94,7 @@ {{ with .Site.GetPage "/home" }} {{ with .Resources.GetMatch "contact.md" }} - {{ .Title }} + {{ .Title | markdownify }} {{ end }} {{ end }} diff --git a/layouts/projects/list.html b/layouts/projects/list.html index 37480ea..2180025 100644 --- a/layouts/projects/list.html +++ b/layouts/projects/list.html @@ -29,7 +29,7 @@