diff options
author | Zachary Betz <zwbetz@gmail.com> | 2018-11-05 19:33:13 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2018-11-05 19:33:13 +0300 |
commit | 8152f7935929d50862993919eb9b8b46d916be84 (patch) | |
tree | 1c4ad678d50c24478d630a2c6d53e9de993d50af | |
parent | 02d9ab694ca00e460839dd47ed194380ca87a763 (diff) |
Add markdownify back to Title. Use em instead of rem in CSS to correct font size
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/index.html | 2 | ||||
-rw-r--r-- | layouts/partials/style.html | 10 | ||||
-rw-r--r-- | layouts/post/single.html | 2 |
4 files changed, 8 insertions, 8 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0448507..e36e02d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{- define "main" -}} -<h1>{{ .Title }}</h1> +<h1>{{ .Title | markdownify }}</h1> {{ .Content }} {{- end -}}
\ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 5fe95e3..f04f4dc 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,7 @@ {{ range where .Pages.ByPublishDate.Reverse "Section" "post" }} <p> - <a href="{{ .Permalink }}">{{ .Title }}</a> + <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> {{ $customDateFormat := "January 2, 2006" }} {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} <small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small> diff --git a/layouts/partials/style.html b/layouts/partials/style.html index e39a59e..35e2e47 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -4,14 +4,14 @@ body { } .custom-navbar { - margin-bottom: 1rem; + margin-bottom: 1em; height: 60px; } .custom-navbar a { display: inline-block; padding: 18px 0; - margin-right: 1rem; + margin-right: 1em; font-weight: bold; } @@ -27,7 +27,7 @@ body { } article { - padding-bottom: 1rem; + padding-bottom: 1em; } img { @@ -145,7 +145,7 @@ code { background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; - font-size: .9rem; + font-size: .9em; } {{ end }} @@ -154,7 +154,7 @@ blockquote, .blockquote { padding: 10px 20px; margin: 0 0 20px; - font-size: 1rem; + font-size: 1em; border-left: 5px solid #6c757d; } {{ end }} diff --git a/layouts/post/single.html b/layouts/post/single.html index d08b676..d488760 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -1,6 +1,6 @@ {{- define "main" -}} -<h1>{{ .Title }}</h1> +<h1>{{ .Title | markdownify }}</h1> <p><small class="text-secondary"> {{ $customDateFormat := "January 2, 2006" }} {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }} |