Skip to content

Commit

Permalink
Fixed SEO issues
Browse files Browse the repository at this point in the history
  • Loading branch information
spolischook committed Jan 18, 2024
1 parent 97a7546 commit ca5e8ee
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
12 changes: 7 additions & 5 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{{ define "main" }}
{{.Content}}

<ul class="flex flex-col space-y-4 list-none pl-0">
<ul class="flex flex-col list-none pl-0">
{{range .Pages}}
<li class="flex flex-col">
<a class="link text-2xl"
href="{{.Permalink}}">{{.Title}}</a>
<a class="link text-2xl min-h-[48px] flex items-end"
href="{{.Permalink}}">
<span>{{.Title}}</span>
</a>
<div class="flex justify-between">
<div class="flex space-x-2 justify-center items-center">
<svg class="octicon octicon-calendar" viewBox="0 0 14 16" version="1.1" width="14" height="16"
Expand All @@ -15,10 +17,10 @@
</svg>
<div>{{ .Date.Format "Jan 02, 2006" }}</div>
</div>
<ul class="flex space-x-2 list-none">
<ul class="flex space-x-2 list-none mb-0">
{{ range .Params.tags }}
<li>
<a class="link flex space-x-1 justify-center items-center" href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">
<a class="link flex space-x-1 justify-center items-center min-h-[48px]" href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}">
<svg class="octicon octicon-tag" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true">
<path fill-rule="evenodd" d="M7.73 1.73C7.26 1.26 6.62 1 5.96 1H3.5C2.13 1 1 2.13 1 3.5v2.47c0 .66.27 1.3.73 1.77l6.06 6.06c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41L7.73 1.73zM2.38 7.09c-.31-.3-.47-.7-.47-1.13V3.5c0-.88.72-1.59 1.59-1.59h2.47c.42 0 .83.16 1.13.47l6.14 6.13-4.73 4.73-6.13-6.15zM3.01 3h2v2H3V3h.01z"></path>
</svg>
Expand Down
41 changes: 24 additions & 17 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,10 @@ video {
}
}

.static {
position: static;
}

.absolute {
position: absolute;
}
Expand Down Expand Up @@ -683,6 +687,14 @@ video {
min-height: 100vh;
}

.min-h-\[\] {
min-height: ;
}

.min-h-\[48px\] {
min-height: 48px;
}

.w-4 {
width: 1rem;
}
Expand All @@ -703,10 +715,6 @@ video {
width: 100%;
}

.w-24 {
width: 6rem;
}

.list-none {
list-style-type: none;
}
Expand Down Expand Up @@ -867,11 +875,6 @@ video {
background-color: rgb(36 41 47 / var(--tw-bg-opacity));
}

.bg-lime-100 {
--tw-bg-opacity: 1;
background-color: rgb(236 252 203 / var(--tw-bg-opacity));
}

.bg-slate-100 {
--tw-bg-opacity: 1;
background-color: rgb(241 245 249 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -962,10 +965,6 @@ video {
padding-top: 0.25rem;
}

.pl-4 {
padding-left: 1rem;
}

.text-left {
text-align: left;
}
Expand All @@ -974,6 +973,18 @@ video {
text-align: center;
}

.align-baseline {
vertical-align: baseline;
}

.align-bottom {
vertical-align: bottom;
}

.align-text-bottom {
vertical-align: text-bottom;
}

.font-sans {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
Expand Down Expand Up @@ -1041,10 +1052,6 @@ video {
color: rgb(39 39 42 / var(--tw-text-opacity));
}

.opacity-80 {
opacity: 0.8;
}

.opacity-90 {
opacity: 0.9;
}
Expand Down

0 comments on commit ca5e8ee

Please sign in to comment.