mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 00:59:43 +00:00
Markdownify post titles
This commit is contained in:
parent
9b8389c380
commit
2263cdb0fa
16 changed files with 127 additions and 75 deletions
|
@ -15,7 +15,8 @@ Features:
|
||||||
- Projects and Blog sections
|
- Projects and Blog sections
|
||||||
- Page load fade-in CSS effect and smooth scrolling to anchor links
|
- Page load fade-in CSS effect and smooth scrolling to anchor links
|
||||||
- Straightforward customization via `config.toml`
|
- Straightforward customization via `config.toml`
|
||||||
- Styled Markdown throughout with syntax highlighting
|
- Styled Markdown throughout, including post titles
|
||||||
|
- Syntax highlighting
|
||||||
|
|
||||||
Developer-friendly:
|
Developer-friendly:
|
||||||
|
|
||||||
|
|
51
exampleSite/content/en/blog/long-form-post.md
Executable file
51
exampleSite/content/en/blog/long-form-post.md
Executable file
|
@ -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.
|
Binary file not shown.
After Width: | Height: | Size: 7.1 KiB |
|
@ -16,7 +16,7 @@
|
||||||
<!-- Begin Title -->
|
<!-- Begin Title -->
|
||||||
<div class="container hero {{ if .Site.Params.fadeIn | default true }} fade-in one {{ end }}">
|
<div class="container hero {{ if .Site.Params.fadeIn | default true }} fade-in one {{ end }}">
|
||||||
{{ block "title" . }}
|
{{ block "title" . }}
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
<h1 class="bold-title is-1">{{ .Title | markdownify }}</h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<!-- End Title -->
|
<!-- End Title -->
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title | markdownify }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ define "title" }}
|
{{ define "title" }}
|
||||||
<h1 class="bold-title is-1">{{ .Data.Singular | humanize }}: {{ lower .Title }}</h1>
|
<h1 class="bold-title is-1">{{ .Data.Singular | humanize }}: {{ lower .Title | markdownify }}</h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
@ -8,11 +8,11 @@
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} | {{ .Title | markdownify }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
|
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
|
||||||
<h3 class="title is-3 strong-post-title">
|
<h3 class="title is-3 strong-post-title">
|
||||||
<a href="{{ .Permalink }}">
|
<a href="{{ .Permalink }}">
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
|
|
|
@ -1,61 +1,61 @@
|
||||||
{{ define "title" }}
|
{{ define "title" }}
|
||||||
{{ with .Site.GetPage "/blog" }}
|
{{ with .Site.GetPage "/blog" }}
|
||||||
<h1 class="bold-title is-1">{{ .Title }}</h1>
|
<h1 class="bold-title is-1">{{ .Title | markdownify }}</h1>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2 class="title is-1 top-pad strong-post-title">
|
<h2 class="title is-1 top-pad strong-post-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="post-data">
|
<div class="post-data">
|
||||||
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }}
|
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }}
|
||||||
{{ i18n "blog_readingTime" .ReadingTime }}
|
{{ i18n "blog_readingTime" .ReadingTime }}
|
||||||
</div>
|
</div>
|
||||||
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}
|
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}
|
||||||
<div class="blog-share">
|
<div class="blog-share">
|
||||||
{{ i18n "blog_shareThis" . }}:
|
{{ i18n "blog_shareThis" . }}:
|
||||||
{{ if .Site.Params.share.twitter }}
|
{{ if .Site.Params.share.twitter }}
|
||||||
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text={{ .Title }}%20{{ .Permalink }}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
<a class="twitter-share-button" href="https://twitter.com/intent/tweet?text={{ .Title | markdownify }}%20{{ .Permalink }}" onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
|
||||||
<i class="fab fa-twitter"></i>
|
<i class="fab fa-twitter"></i>
|
||||||
<span class="hidden">Twitter</span>
|
<span class="hidden">Twitter</span>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.share.facebook }}
|
|
||||||
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
|
||||||
<i class="fab fa-facebook-f"></i>
|
|
||||||
<span class="hidden">Facebook</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.share.pinterest }}
|
|
||||||
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestMedia }}&media={{ .Site.BaseURL }}{{ .Params.pinterestMedia }}{{ end }}&description={{ .Title | safeHTML}}" onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
|
|
||||||
<i class="fab fa-pinterest-p"></i>
|
|
||||||
<span class="hidden">Pinterest</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ if .Site.Params.share.googlePlus }}
|
|
||||||
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
|
||||||
<i class="fab fa-google-plus-g"></i>
|
|
||||||
<span class="hidden">Google+</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.tags }}
|
{{ if .Site.Params.share.facebook }}
|
||||||
{{ $len := (len .Params.tags) }}
|
<a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}" onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
|
||||||
<p>
|
<i class="fab fa-facebook-f"></i>
|
||||||
Tag{{ if gt $len 1 }}s{{ end }}:
|
<span class="hidden">Facebook</span>
|
||||||
{{ range $index, $tag := .Params.tags }}
|
</a>
|
||||||
<a href="{{ "tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ if ne (add $index 1) $len }},{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ if .Site.Params.share.pinterest }}
|
||||||
</p>
|
<a class="icon-pinterest" href="http://pinterest.com/pin/create/button/?url={{ .Permalink }}{{ if .Params.pinterestMedia }}&media={{ .Site.BaseURL }}{{ .Params.pinterestMedia }}{{ end }}&description={{ .Title | safeHTML}}" onclick="window.open(this.href, 'pinterest-share','width=580,height=296');return false;">
|
||||||
|
<i class="fab fa-pinterest-p"></i>
|
||||||
|
<span class="hidden">Pinterest</span>
|
||||||
|
</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.share.googlePlus }}
|
||||||
|
<a class="icon-google-plus" href="https://plus.google.com/share?url={{ .Permalink }}" onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
|
||||||
|
<i class="fab fa-google-plus-g"></i>
|
||||||
|
<span class="hidden">Google+</span>
|
||||||
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
<!-- Begin blog post content -->
|
{{ end }}
|
||||||
<div class="container markdown top-pad">
|
{{ if .Params.tags }}
|
||||||
{{ .Content }}
|
{{ $len := (len .Params.tags) }}
|
||||||
</div>
|
<p>
|
||||||
<!-- End blog post content -->
|
Tag{{ if gt $len 1 }}s{{ end }}:
|
||||||
{{ partial "comments.html" . }}
|
{{ range $index, $tag := .Params.tags }}
|
||||||
|
<a href="{{ "tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ if ne (add $index 1) $len }},{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</p>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<!-- Begin blog post content -->
|
||||||
|
<div class="container markdown top-pad">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
|
<!-- End blog post content -->
|
||||||
|
{{ partial "comments.html" . }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -20,7 +20,7 @@
|
||||||
<div class="container has-text-centered">
|
<div class="container has-text-centered">
|
||||||
<!-- Title and tagline -->
|
<!-- Title and tagline -->
|
||||||
<h1 class="bold-title {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in one{{ end }}">
|
<h1 class="bold-title {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in one{{ end }}">
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="subtitle is-3 {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in two{{ end }}">
|
<div class="subtitle is-3 {{ if or (.Site.Params.fadeIn | default true) .Site.Params.fadeInIndex }}fade-in two{{ end }}">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
<!-- Range through all sections in /home execept contact.md -->
|
<!-- Range through all sections in /home execept contact.md -->
|
||||||
<div class="section" id="{{ .File.TranslationBaseName }}">
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2 class="title is-2 has-text-centered">{{ .Title }}</h2>
|
<h2 class="title is-2 has-text-centered">{{ .Title | markdownify }}</h2>
|
||||||
{{ if .Params.Image }}
|
{{ if .Params.Image }}
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column is-one-third has-text-centered">
|
<div class="column is-one-third has-text-centered">
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
{{ with .Resources.GetMatch "contact.md" }}
|
{{ with .Resources.GetMatch "contact.md" }}
|
||||||
<div class="section" id="{{ .File.TranslationBaseName }}">
|
<div class="section" id="{{ .File.TranslationBaseName }}">
|
||||||
<div class="container has-text-centered">
|
<div class="container has-text-centered">
|
||||||
<h2 class="title is-2">{{ .Title }}</h2>
|
<h2 class="title is-2">{{ .Title | markdownify }}</h2>
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
{{ range .Pages.ByPublishDate.Reverse }}
|
||||||
<li class="post-item">
|
<li class="post-item">
|
||||||
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span>{{ if .Params.date }} - <span>{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}</span>{{ end }}
|
<span><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></span>{{ if .Params.date }} - <span>{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}</span>{{ end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="referrer" content="no-referrer">
|
||||||
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
|
{{ if .Site.Params.description }}<meta name="description" content="{{ .Site.Params.description }}">{{ end }}
|
||||||
<title>
|
<title>
|
||||||
{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}
|
{{ .Title | markdownify }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }}
|
||||||
</title>
|
</title>
|
||||||
<!-- RSS -->
|
<!-- RSS -->
|
||||||
{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}
|
{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<meta property="og:title" content="{{ .Title }}{{ if ne .Title .Site.Title }} - {{ .Site.Title }}{{ end }}" />
|
<meta property="og:title" content="{{ .Title | markdownify }}{{ if ne .Title .Site.Title }} - {{ .Site.Title | markdownify }}{{ end }}" />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"/>
|
<meta property="og:description" content="{{ if .Description }}{{ .Description }}{{ else }}{{ .Site.Params.description }}{{ end }}"/>
|
||||||
<meta property="og:url" content="{{ .Permalink }}"/>
|
<meta property="og:url" content="{{ .Permalink }}"/>
|
||||||
<meta property="og:site_name" content="{{ .Site.Title }}"/>
|
<meta property="og:site_name" content="{{ .Site.Title | markdownify }}"/>
|
||||||
|
|
||||||
{{ with .Resources.ByType "image" }}
|
{{ with .Resources.ByType "image" }}
|
||||||
{{ range first 5 (sort . "Params.weight") }}
|
{{ range first 5 (sort . "Params.weight") }}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
|
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
|
||||||
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
{{ range first 1 .Pages.ByPublishDate.Reverse }}
|
||||||
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
|
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
|
||||||
<h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
<h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h3>
|
||||||
<div class="markdown">
|
<div class="markdown">
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<!-- Begin Projects container -->
|
<!-- Begin Projects container -->
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h2 class="title is-2 has-text-centered">
|
<h2 class="title is-2 has-text-centered">
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div class="columns is-multiline">
|
<div class="columns is-multiline">
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content has-text-centered top-pad">
|
<div class="card-content has-text-centered top-pad">
|
||||||
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
||||||
<!-- Now for some cool projects -->
|
<!-- Now for some cool projects -->
|
||||||
{{ if $isHome }}
|
{{ if $isHome }}
|
||||||
<a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
|
<a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title | markdownify }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $pageIsInProjects := eq $.Page.Section "project"}}
|
{{ $pageIsInProjects := eq $.Page.Section "project"}}
|
||||||
{{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }}
|
{{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }}
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
||||||
<!-- Let`s show some blog posts -->
|
<!-- Let`s show some blog posts -->
|
||||||
{{ if $isHome }}
|
{{ if $isHome }}
|
||||||
<a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
|
<a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title | markdownify }}</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $pageIsInBlog := eq $.Page.Section "blog"}}
|
{{ $pageIsInBlog := eq $.Page.Section "blog"}}
|
||||||
{{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }}
|
{{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }}
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
|
<a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title | markdownify }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
|
|
||||||
{{ with .Site.GetPage "/home" }}
|
{{ with .Site.GetPage "/home" }}
|
||||||
{{ with .Resources.GetMatch "contact.md" }}
|
{{ with .Resources.GetMatch "contact.md" }}
|
||||||
<a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
|
<a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title | markdownify }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content has-text-centered top-pad">
|
<div class="card-content has-text-centered top-pad">
|
||||||
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{ .Permalink }}{{ end }}">
|
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{ .Permalink }}{{ end }}">
|
||||||
{{ .Title }}
|
{{ .Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue