many updates to the theme to make it work w/ hugo snap 0.93.0

This commit is contained in:
Don Harper 2022-02-28 23:06:56 -06:00
parent eda27b9a73
commit 18b89e5a1d
7 changed files with 2741 additions and 17 deletions

View file

@ -36,7 +36,7 @@
<span class="category">
<span> / </span>
<a href="/categories/{{ . | urlize }}/">{{ . }}</a>
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
</span>
{{ end }}
@ -69,7 +69,7 @@
<div class="entry-categories"><p><span>Categories</span>
{{ range $index, $name := .Params.categories }}
<a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}/" title="View all posts in {{ $name }}">{{ $name }}</a>{{ end }}
<a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}" title="View all posts in {{ $name }}">{{ $name }}</a>{{ end }}
</p>
</div>
@ -77,7 +77,7 @@
<div class="entry-tags"><p><span>Tags</span>
{{ range $index, $name := .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}/" title="View all posts tagged {{ $name }}">{{ $name }}</a>
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="View all posts tagged {{ $name }}">{{ $name }}</a>
{{ end }}
</p></div> </div>

View file

@ -2,11 +2,13 @@
<h1>
Category: {{ .Title }}
{{ if .Site.Params.social.rss }}
<a href="{{ .RSSLink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
{{ with .OutputFormats.Get "RSS" }}
<a href="{{ .RelPermalink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
<i class="fas fa-rss" title="rss"></i>
<span class="screen-reader-text">rss</span>
</a>
{{ end }}
{{ end }}
</h1>
</div>
@ -59,7 +61,7 @@
{{ range .Params.categories }}
<span> / </span>
<span class="category">
<a href="/categories/{{ . | urlize }}/">{{ . }}</a>
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
</span>
{{ end }}
</div>

View file

@ -13,21 +13,19 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<meta name="googlebot" content="index,follow,snippet,archive">
<!-- die, google fonts, die
<link rel="stylesheet" id="ct-tracks-google-fonts-css" href="https://fonts.googleapis.com/css?family=Raleway%3A400%2C700&amp;subset=latin%2Clatin-ext&amp;ver=4.7.2" type="text/css" media="all">
-->
<!-- Upgraded to Font Awesome 5.3 no need for local files using all.css so all icons are available -->
<!-- Do we really need this?
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
-->
<!-- Theme stylesheet, if possible do not edit this stylesheet -->
<link href="{{ "css/style.css" | absURL }}?v={{ now.Unix }}" rel="stylesheet" id="theme-stylesheet" type='text/css' media='all'>
<!-- Custom stylesheet - for your changes -->
<link href="{{ "css/custom.css" | absURL }}?v={{ now.Unix }}" rel="stylesheet" type='text/css' media='all'>
<link rel="shortcut icon" href="{{ "img/favicon.ico" | absURL }}" type="image/x-icon">
<link rel="icon" href="{{ "img/favicon.ico" | absURL }}" type="image/x-icon">
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
{{ if .Params.social.rss }}
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title | default "" }}" />
{{ end }}
{{ end }}
{{ template "_internal/google_analytics_async.html" . }}

View file

@ -48,7 +48,7 @@
{{ range .Params.categories }}
<span> / </span>
<span class="category">
<a href="/categories/{{ . | urlize }}/">{{ . }}</a>
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
</span>
{{ end }}
</div>

View file

@ -2,11 +2,13 @@
<h1>
Tag: {{ .Title }}
{{ if .Site.Params.social.rss }}
<a href="{{ .RSSLink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
{{ with .OutputFormats.Get "RSS" }}
<a href="{{ .RelPermalink }}" data-animate-hover="pulse" class="in-page-rss" target="_blank">
<i class="fas fa-rss" title="rss"></i>
<span class="screen-reader-text">rss</span>
</a>
{{ end }}
{{ end }}
</h1>
</div>
@ -48,7 +50,7 @@
{{ range .Params.categories }}
<span> / </span>
<span class="category">
<a href="/categories/{{ . | urlize }}/">{{ . }}</a>
<a href="/categories/{{ . | urlize }}">{{ . }}</a>
</span>
{{ end }}
</div>

View file

@ -8,7 +8,7 @@
<ul id="menu-secondary-items" class="menu-secondary-items">
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li class="menu-item menu-item-type-taxonomy menu-item-object-category">
<a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}/">{{ $name }}</a>
<a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}">{{ $name }}</a>
</li>
{{ end }}

File diff suppressed because one or more lines are too long