aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorC. Lente <7017340+clente@users.noreply.github.com>2023-02-01 15:06:05 -0300
committerC. Lente <7017340+clente@users.noreply.github.com>2023-02-01 15:06:05 -0300
commit3ec95503252645b87c625df10a8ac44d04563166 (patch)
tree0304691be8b7859d7e5b525807d6c0e082873553 /layouts/_default
parent76ca2f889f35035484482bf7f9715149a5b40127 (diff)
downloadhugo-bearcub-3ec95503252645b87c625df10a8ac44d04563166.tar.gz
hugo-bearcub-3ec95503252645b87c625df10a8ac44d04563166.tar.bz2
Bring files from personal blog
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html5
-rw-r--r--layouts/_default/list.html28
-rw-r--r--layouts/_default/single.html6
3 files changed, 21 insertions, 18 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6bce2dc..1f30b5d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -11,12 +11,13 @@
{{- partial "seo_tags.html" . -}}
<meta name="referrer" content="no-referrer-when-downgrade" />
+ {{ $css := resources.Get "style.css" | minify }}
+ <link href="{{ $css.RelPermalink }}" rel="stylesheet">
+
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
- {{- partial "style.html" . -}}
-
<!-- A partial to be overwritten by the user.
Simply place a custom_head.html into
your local /layouts/partials-directory -->
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8b8c14b..6c4f7d0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,10 @@
{{ define "main" }}
<content>
{{ if .Data.Singular }}
- <h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
- <small>
- <a href="{{ "/blog" | relURL }}">Remove filter</a>
- </small>
+ <h3 style="margin-bottom:0">{{ i18n "filter" }} "{{ .Title }}"</h3>
+ <small>
+ <a href="{{ i18n "posts" }}">{{ i18n "remove" }}</a>
+ </small>
{{ end }}
<ul class="blog-posts">
{{ range .Pages }}
@@ -16,7 +16,11 @@
</time>
</i>
</span>
- <a href="{{ .Permalink }}">{{ .Title }}</a>
+ {{ if .Params.link }}
+ <a href="{{ .Params.link }}">{{ .Title }}</a>
+ {{ else }}
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ {{ end }}
</li>
{{ else }}
<li>
@@ -26,13 +30,11 @@
</ul>
{{ if .Data.Singular }}
{{else}}
- <small>
- <div>
- {{ range .Site.Taxonomies.tags }}
- <a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;
- {{ end }}
- </div>
- </small>
- {{ end }}
+ <div>
+ {{ range .Site.Taxonomies.tags }}
+ <a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>&nbsp;&nbsp;
+ {{ end }}
+ </div>
+ {{ end }}
</content>
{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7d57351..40d0b03 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,5 +1,5 @@
{{ define "main" }}
-{{ if eq .Type "blog" }}{{ if not .Params.menu }}
+{{ if not .Params.menu }}
<h1>{{ .Title }}</h1>
<p>
<i>
@@ -8,13 +8,13 @@
</time>
</i>
</p>
-{{ end }}{{ end }}
+{{ end }}
<content>
{{ .Content }}
</content>
<p>
{{ range (.GetTerms "tags") }}
- <a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
+ <a class="blog-tags" href="{{ .Permalink }}">#{{ .LinkTitle }}</a>&nbsp;&nbsp;
{{ end }}
</p>
{{ end }}