Merge branch 'master' of gitlab.com:gabmus/hugo-ficurinia
This commit is contained in:
commit
bcff415581
|
@ -259,6 +259,7 @@ Every post can have various parameters in the frontmatter, here are some that yo
|
||||||
- `description`: a brief description of the post, useful for SEO optimization
|
- `description`: a brief description of the post, useful for SEO optimization
|
||||||
- `tags`: an array of tags, useful for searching similar articles
|
- `tags`: an array of tags, useful for searching similar articles
|
||||||
- `image`: a link to a feature image for the article, shown in the preview as well
|
- `image`: a link to a feature image for the article, shown in the preview as well
|
||||||
|
- `alt`: alternative text to be shown if image is not available or fails to download
|
||||||
- `imageCaption`: a markdown text rendered as a caption for the article image described above
|
- `imageCaption`: a markdown text rendered as a caption for the article image described above
|
||||||
- `featured`: boolean, indicate if the post should be shown as featured
|
- `featured`: boolean, indicate if the post should be shown as featured
|
||||||
- `comments`: boolean, if true it enables comments for the current post, if false it disables them (default is true)
|
- `comments`: boolean, if true it enables comments for the current post, if false it disables them (default is true)
|
||||||
|
@ -295,6 +296,7 @@ Finally, make sure to edit your config.toml to include the following:
|
||||||
# ...
|
# ...
|
||||||
[params]
|
[params]
|
||||||
logo = "/logo.svg"
|
logo = "/logo.svg"
|
||||||
|
logoAltText = "Logo"
|
||||||
favicon = "/favicon.png"
|
favicon = "/favicon.png"
|
||||||
faviconIco = "/favicon.ico"
|
faviconIco = "/favicon.ico"
|
||||||
appletouch = "/apple-touch-icon.png"
|
appletouch = "/apple-touch-icon.png"
|
||||||
|
|
|
@ -960,8 +960,8 @@ header.jumbotronContainer {
|
||||||
}}
|
}}
|
||||||
background:
|
background:
|
||||||
linear-gradient(
|
linear-gradient(
|
||||||
transparentize(var(--default_bg), 0.2),
|
transparentize($dark_bg, 0.2),
|
||||||
transparentize(var(--default_bg), 0.2)
|
transparentize($dark_bg, 0.2)
|
||||||
),
|
),
|
||||||
url({{ .Site.Data.jumbotron.background }});
|
url({{ .Site.Data.jumbotron.background }});
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div id="titleContainer">
|
<div id="titleContainer">
|
||||||
{{ if not (.Site.Params.logoRightOfTitle | default false) }}
|
{{ if not (.Site.Params.logoRightOfTitle | default false) }}
|
||||||
<a class="unstyledLink" href="/">
|
<a class="unstyledLink" href="/">
|
||||||
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
|
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' alt='{{ .Site.Params.LogoAltText | default "Logo" }}'/>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="rightOfLogo">
|
<div class="rightOfLogo">
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<h1>
|
<h1>
|
||||||
<a class="unstyledLink" href="/">{{ .Site.Title | default "Ficurinia" }}</a>
|
<a class="unstyledLink" href="/">{{ .Site.Title | default "Ficurinia" }}</a>
|
||||||
{{ if .Site.Params.logoRightOfTitle | default false }}
|
{{ if .Site.Params.logoRightOfTitle | default false }}
|
||||||
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' />
|
<img src='{{ .Site.Params.Logo | default "/logo.svg" }}' alt='{{ .Site.Params.LogoAltText | default "Logo" }}'/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</h1>
|
</h1>
|
||||||
{{ if (.Site.Params.mobileHamburgerNav | default false) }}
|
{{ if (.Site.Params.mobileHamburgerNav | default false) }}
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
{{ if .Params.Image }}
|
{{ if .Params.Image }}
|
||||||
<figure style="margin: 0">
|
<figure style="margin: 0">
|
||||||
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
{{ if or (hasPrefix .Params.Image "/") (hasPrefix .Params.Image "http://") (hasPrefix .Params.Image "https://") }}
|
||||||
<img src="{{ .Params.Image }}" />
|
<img src="{{ .Params.Image }}" alt="{{ .Params.Alt }}" />
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<img src="/{{ path.Join .File.Dir .Params.Image }}" />
|
<img src="/{{ path.Join .File.Dir .Params.Image }}" alt="{{ .Params.Alt }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Params.ImageCaption }}
|
{{ if .Params.ImageCaption }}
|
||||||
<figcaption>
|
<figcaption>
|
||||||
|
|
Loading…
Reference in New Issue