Fix site layouts after formatting (#1962)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-07 16:16:24 +02:00
committed by GitHub
parent 02355427b0
commit 2bb1611e1b
12 changed files with 391 additions and 444 deletions

View File

@@ -41,6 +41,11 @@
<SqlCodeStyleSettings version="7"> <SqlCodeStyleSettings version="7">
<option name="DISABLE_FORMATTING" value="true"/> <option name="DISABLE_FORMATTING" value="true"/>
</SqlCodeStyleSettings> </SqlCodeStyleSettings>
<codeStyleSettings language="HTML">
<arrangement>
<rules/>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="JAVA"> <codeStyleSettings language="JAVA">
<option name="RIGHT_MARGIN" value="144"/> <option name="RIGHT_MARGIN" value="144"/>
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>

1
site/.gitignore vendored
View File

@@ -2,6 +2,7 @@
content/rest-api/*.json content/rest-api/*.json
content/rest-api/*.html content/rest-api/*.html
content/rest-api/*.yaml content/rest-api/*.yaml
static/rest-api/*.html
# npm leftover # npm leftover
node_modules node_modules
package.json package.json

View File

@@ -9,8 +9,8 @@
<div class="backdrop-paper"></div> <div class="backdrop-paper"></div>
</div> </div>
<input class="toggle" id="toggle-drawer" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" id="toggle-search" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label> <label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header"> <header class="header">
@@ -41,7 +41,7 @@
</div> </div>
</article> </article>
<div aria-live="polite" class="results" role="status"> <div class="results" role="status" aria-live="polite">
<div class="scrollable"> <div class="scrollable">
<div class="wrapper"> <div class="wrapper">
<div class="meta"></div> <div class="meta"></div>

View File

@@ -9,8 +9,8 @@
<div class="backdrop-paper"></div> <div class="backdrop-paper"></div>
</div> </div>
<input class="toggle" id="toggle-drawer" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" id="toggle-search" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label> <label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header"> <header class="header">
@@ -36,7 +36,7 @@
</div> </div>
</article> </article>
<div aria-live="polite" class="results" role="status"> <div class="results" role="status" aria-live="polite">
<div class="scrollable"> <div class="scrollable">
<div class="wrapper"> <div class="wrapper">
<div class="meta"></div> <div class="meta"></div>

View File

@@ -9,8 +9,8 @@
<div class="backdrop-paper"></div> <div class="backdrop-paper"></div>
</div> </div>
<input class="toggle" id="toggle-drawer" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" id="toggle-search" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label> <label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header"> <header class="header">
@@ -88,7 +88,7 @@
</div> </div>
</article> </article>
<div aria-live="polite" class="results" role="status"> <div class="results" role="status" aria-live="polite">
<div class="scrollable"> <div class="scrollable">
<div class="wrapper"> <div class="wrapper">
<div class="meta"></div> <div class="meta"></div>

View File

@@ -1,5 +1,5 @@
<nav aria-label="Navigation"> <nav aria-label="Navigation">
<a class="project" href="{{ with .Site.BaseURL }}{{ . }}{{ else }}{{ .Site.BaseURL }}{{ end }}"> <a href="{{ with .Site.BaseURL }}{{ . }}{{ else }}{{ .Site.BaseURL }}{{ end }}" class="project">
<div class="banner"> <div class="banner">
{{ with .Site.Params.logo }} {{ with .Site.Params.logo }}
<div class="logo"> <div class="logo">
@@ -7,8 +7,7 @@
</div> </div>
{{ end }} {{ end }}
<div class="name"> <div class="name">
<strong>{{ .Site.Title }}&trade; {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ <strong>{{ .Site.Title }}&trade; {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ end }}</strong>
end }}</strong>
{{ with .Scratch.Get "repo_id" }} {{ with .Scratch.Get "repo_id" }}
<br> <br>
{{ . }} {{ . }}
@@ -22,14 +21,12 @@
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }} {{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
<ul class="repo"> <ul class="repo">
<li class="repo-download"> <li class="repo-download">
<a data-action="sandbox" href="https://hawkbit.eclipseprojects.io" target="_blank" <a href="https://hawkbit.eclipseprojects.io" target="_blank" title="hawkBit Sandbox" data-action="sandbox">
title="hawkBit Sandbox">
<i class="fas fa-desktop"></i> &nbsp; Sandbox <i class="fas fa-desktop"></i> &nbsp; Sandbox
</a> </a>
</li> </li>
<li class="repo-stars"> <li class="repo-stars">
<a data-action="star" href="{{ .Site.Params.repo_url }}/stargazers" target="_blank" <a href="{{ .Site.Params.repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star">
title="Stargazers">
<i class="icon icon-star"></i> Stars <i class="icon icon-star"></i> Stars
<span class="count">&ndash;</span> <span class="count">&ndash;</span>
</a> </a>
@@ -50,34 +47,30 @@
<ul> <ul>
<li> <li>
<a href="https://opensource.org/licenses/EPL-2.0" target="_blank" title="License"> <a href="https://opensource.org/licenses/EPL-2.0" title="License" target="_blank">
<img src="https://img.shields.io/badge/License-EPL%202.0-green.svg" /> <img src="https://img.shields.io/badge/License-EPL%202.0-green.svg" />
</a> </a>
</li> </li>
<li> <li>
<a href="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml" <a href="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml" title="License" target="_blank">
target="_blank" title="License">
<img src="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml/badge.svg?branch=master" /> <img src="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml/badge.svg?branch=master" />
</a> </a>
</li> </li>
<li> <li>
<a href="https://sonarcloud.io/summary/new_code?id=eclipse-hawkbit_hawkbit" <a href="https://sonarcloud.io/summary/new_code?id=eclipse-hawkbit_hawkbit" title="Sonarcloud Status" target="_blank">
target="_blank" title="Sonarcloud Status">
<img src="https://sonarcloud.io/api/project_badges/measure?project=eclipse-hawkbit_hawkbit&metric=alert_status" /> <img src="https://sonarcloud.io/api/project_badges/measure?project=eclipse-hawkbit_hawkbit&metric=alert_status" />
</a> </a>
</li> </li>
<li> <li>
<a href="https://search.maven.org/search?q=g:org.eclipse.hawkbit" target="_blank" <a href="https://search.maven.org/search?q=g:org.eclipse.hawkbit" title="Maven Central Status" target="_blank">
title="Maven Central Status">
<img src="https://img.shields.io/maven-central/v/org.eclipse.hawkbit/hawkbit-parent?label=maven-central&color=blue" /> <img src="https://img.shields.io/maven-central/v/org.eclipse.hawkbit/hawkbit-parent?label=maven-central&color=blue" />
</a> </a>
</li> </li>
<li> <li>
<a href="https://gitter.im/eclipse/hawkbit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" <a href="https://gitter.im/eclipse/hawkbit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" title="Chat on Gitter" target="_blank">
target="_blank" title="Chat on Gitter">
<img src="https://badges.gitter.im/eclipse/hawkbit.svg" /> <img src="https://badges.gitter.im/eclipse/hawkbit.svg" />
</a> </a>
</li> </li>

View File

@@ -1,37 +1,20 @@
<script> <script>
{ {{ with .Scratch.Get "repo_id" }}
{
with .
Scratch.Get
"repo_id"
}
}
var base_url = '{{ (printf "%s" $.Site.BaseURL) | safeJS }}'; var base_url = '{{ (printf "%s" $.Site.BaseURL) | safeJS }}';
var repo_id = '{{ . | safeJS }}'; var repo_id = '{{ . | safeJS }}';
{ {{ else }}
{ else
}
}
var base_url = ''; var base_url = '';
var repo_id = ''; var repo_id = '';
{ {{ end }}
{
end
}
}
</script> </script>
<script javascripts src="{{ "/application.js" | absURL }}"></script> <script src="{{ "javascripts/application.js" | absURL }}"></script>
{{ range .Site.Params.custom_js }} {{ range .Site.Params.custom_js }}
<script src="{{ . | absURL }}"></script> <script src="{{ . | absURL }}"></script>
{{ end }} {{ end }}
<script> <script>
{ {{ "/* Add headers to scrollspy */" | safeJS }}
{
"/* Add headers to scrollspy */" | safeJS
}
}
var headers = document.getElementsByTagName("h2"); var headers = document.getElementsByTagName("h2");
var scrollspy = document.getElementById('scrollspy'); var scrollspy = document.getElementById('scrollspy');
@@ -57,11 +40,7 @@
} }
{ {{ "/* Add permanent link next to the headers */" | safeJS }}
{
"/* Add permanent link next to the headers */" | safeJS
}
}
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6"); var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
for(var i = 0; i < headers.length; i++) { for(var i = 0; i < headers.length; i++) {
@@ -69,13 +48,7 @@
a.setAttribute("class", "headerlink"); a.setAttribute("class", "headerlink");
a.setAttribute("href", "#" + headers[i].id); a.setAttribute("href", "#" + headers[i].id);
a.setAttribute("title", "Permanent link"); a.setAttribute("title", "Permanent link");
a.innerHTML = { a.innerHTML = {{ or .Site.Params.permalink "¶" }};
{
or.Site.Params.permalink
"¶"
}
}
;
headers[i].appendChild(a); headers[i].appendChild(a);
} }
} }

View File

@@ -1,103 +1,83 @@
<!DOCTYPE html> <!DOCTYPE html>
<!--[if lt IE 7 ]> <!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
<html class="no-js ie6"><![endif]--> <!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
<!--[if IE 7 ]> <!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
<html class="no-js ie7"><![endif]--> <!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
<!--[if IE 8 ]> <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
<html class="no-js ie8"><![endif]-->
<!--[if IE 9 ]>
<html class="no-js ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js"> <!--<![endif]-->
<head .Site.LanguageCode end with {{ {{ }} }}lang="{{ . }}"> <head {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1" name="viewport"> <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
<meta content="IE=10" http-equiv="X-UA-Compatible"/> <meta http-equiv="X-UA-Compatible" content="IE=10" />
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title> <title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
{{ hugo.Generator }} {{ hugo.Generator }}
{{ with .Site.Params.description }} {{ with .Site.Params.description }}
<meta content="{{ . }}" name="description"> <meta name="description" content="{{ . }}">
{{ end }} {{ end }}
<link href="{{ .Permalink }}" rel="canonical"> <link rel="canonical" href="{{ .Permalink }}">
{{ with .Site.Params.author }} {{ with .Site.Params.author }}
<meta content="{{ . }}" name="author"> <meta name="author" content="{{ . }}">
{{ end }} {{ end }}
<meta content="{{ .Permalink }}" property="og:url"> <meta property="og:url" content="{{ .Permalink }}">
{{ with .Site.Title }} {{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
<meta content="{{ . }}" property="og:title"> {{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
{{ end }} {{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
{{ with .Site.Params.logo }} <meta name="apple-mobile-web-app-capable" content="yes">
<meta content="{{ . | absURL }}" property="og:image"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
{{ end }}
{{ with .Site.Title }}
<meta content="{{ . }}" name="apple-mobile-web-app-title">
{{ end }}
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black-translucent" name="apple-mobile-web-app-status-bar-style">
{{ if .Params.redirectURL }} {{ if .Params.redirectURL }}<meta http-equiv="refresh" content="1; url={{ .Params.redirectURL }}"/>{{ end }}
<meta content="1; url={{ .Params.redirectURL }}" http-equiv="refresh"/>
{{ end }}
<link href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ " images rel="shortcut icon" <link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
type="image/x-icon" <link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
/favicon.ico" | absURL }}{{ end }}">
<link href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ " images rel="icon" type="image/x-icon"
/favicon.ico" | absURL }}{{ end }}">
<style> <style>
@font-face { @font-face {
font-family: 'Icon'; font-family: 'Icon';
src: url('{{ "fonts/icon.eot?52m981" | absURL }}'); src: url('{{ "fonts/icon.eot?52m981" | absURL }}');
src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}') format('embedded-opentype'), src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}')
url('{{ "fonts/icon.woff?52m981" | absURL }}') format('woff'), format('embedded-opentype'),
url('{{ "fonts/icon.ttf?52m981" | absURL }}') format('truetype'), url('{{ "fonts/icon.woff?52m981" | absURL }}')
url('{{ "fonts/icon.svg?52m981#icon" | absURL }}') format('svg'); format('woff'),
url('{{ "fonts/icon.ttf?52m981" | absURL }}')
format('truetype'),
url('{{ "fonts/icon.svg?52m981#icon" | absURL }}')
format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
</style> </style>
<link href="{{ " rel="stylesheet" stylesheets <link rel="stylesheet" href="{{ "stylesheets/application.css" | absURL }}">
/application.css" | absURL }}"> <link rel="stylesheet" href="{{ "stylesheets/temporary.css" | absURL }}">
<link href="{{ " rel="stylesheet" stylesheets <link rel="stylesheet" href="{{ "stylesheets/palettes.css" | absURL }}">
/temporary.css" | absURL }}"> <link rel="stylesheet" href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ "stylesheets/highlight/highlight.css" | absURL }}{{ end }}">
<link href="{{ " rel="stylesheet" stylesheets
/palettes.css" | absURL }}">
<link href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ " rel="stylesheet" stylesheets
/highlight/highlight.css" | absURL }}{{ end }}">
{{/* set default values if no custom ones are defined */}} {{/* set default values if no custom ones are defined */}}
{{ $text := or .Site.Params.font.text "Roboto" }} {{ $text := or .Site.Params.font.text "Roboto" }}
{{ $code := or .Site.Params.font.code "Roboto Mono" }} {{ $code := or .Site.Params.font.code "Roboto Mono" }}
<link href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " rel="stylesheet" <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " " "+" | safeURL }}">
" "+" | safeURL }}">
<style> <style>
body, input { body, input {
font-family: '{{ $text }}', Helvetica, Arial, sans-serif; font-family: '{{ $text }}', Helvetica, Arial, sans-serif;
} }
pre, code { pre, code {
font-family: '{{ $code }}', 'Courier New', 'Courier', monospace; font-family: '{{ $code }}', 'Courier New', 'Courier', monospace;
} }
</style> </style>
{{ range .Site.Params.custom_css }} {{ range .Site.Params.custom_css }}
<link href="{{ . | absURL }}" rel="stylesheet"> <link rel="stylesheet" href="{{ . | absURL }}">
{{ end }} {{ end }}
<script javascripts src="{{ " <script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
/modernizr.js" | absURL }}"></script>
<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script> <script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
{{ with .OutputFormats.Get "RSS" }} {{ with .OutputFormats.Get "RSS" }}
<link href="{{ . }}" rel="alternate" title="{{ $.Site.Title }}" type="application/rss+xml"/> <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ . }}" rel="feed" title="{{ $.Site.Title }}" type="application/rss+xml"/> <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }} {{ end }}
<link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" rel="stylesheet">
</head> </head>
<body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}"> <body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">

View File

@@ -1,6 +1,6 @@
<nav aria-label="Header"> <nav aria-label="Header">
<div class="bar default"> <div class="bar default">
<div aria-label="Menu" class="button button-menu" role="button"> <div class="button button-menu" role="button" aria-label="Menu">
<label class="toggle-button icon icon-menu" for="toggle-drawer"> <label class="toggle-button icon icon-menu" for="toggle-drawer">
<span></span> <span></span>
</label> </label>
@@ -12,30 +12,26 @@
</div> </div>
{{ with .Site.Social.twitter }} {{ with .Site.Social.twitter }}
<div aria-label="Twitter" class="button button-twitter" role="button"> <div class="button button-twitter" role="button" aria-label="Twitter">
<a class="toggle-button icon icon-twitter" href="https://twitter.com/{{ . }}" target="_blank" <a href="https://twitter.com/{{ . }}" title="@{{ . }} on Twitter" target="_blank" class="toggle-button icon icon-twitter"></a>
title="@{{ . }} on Twitter"></a>
</div> </div>
{{ end }} {{ end }}
{{ with .Site.Social.github }} {{ with .Site.Social.github }}
<div aria-label="GitHub" class="button button-github" role="button"> <div class="button button-github" role="button" aria-label="GitHub">
<a class="toggle-button icon icon-github" href="https://github.com/{{ . }}" target="_blank" <a href="https://github.com/{{ . }}" title="@{{ . }} on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
title="@{{ . }} on GitHub"></a>
</div> </div>
{{ end }} {{ end }}
{{ with .Site.Social.gitter }} {{ with .Site.Social.gitter }}
<div aria-label="Gitter" class="button button-github" role="button"> <div class="button button-github" role="button" aria-label="Gitter">
<a class="toggle-button icon fab fa-gitter" href="https://gitter.im/{{ . }}" target="_blank" <a href="https://gitter.im/{{ . }}" title="@{{ . }} on Gitter" target="_blank" class="toggle-button icon fab fa-gitter"></a>
title="@{{ . }} on Gitter"></a>
</div> </div>
{{ end }} {{ end }}
{{ with .Site.Social.docker }} {{ with .Site.Social.docker }}
<div aria-label="Docker" class="button button-github" role="button"> <div class="button button-github" role="button" aria-label="Docker">
<a class="toggle-button icon fab fa-docker" href="https://hub.docker.com/u/{{ . }}" target="_blank" <a href="https://hub.docker.com/u/{{ . }}" title="{{ . }} on Docker Hub" target="_blank" class="toggle-button icon fab fa-docker"></a>
title="{{ . }} on Docker Hub"></a>
</div> </div>
{{ end }} {{ end }}
@@ -46,16 +42,15 @@
--> -->
</div> </div>
<div class="bar search"> <div class="bar search">
<div aria-label="Close" class="button button-close" role="button"> <div class="button button-close" role="button" aria-label="Close">
<label class="toggle-button icon icon-back" for="toggle-search"></label> <label class="toggle-button icon icon-back" for="toggle-search"></label>
</div> </div>
<div class="stretch"> <div class="stretch">
<div class="field"> <div class="field">
<input autocapitalize="off" autocomplete="off" autocorrect="off" class="query" placeholder="Search" <input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
spellcheck type="text">
</div> </div>
</div> </div>
<div aria-label="Search" class="button button-reset" role="button"> <div class="button button-reset" role="button" aria-label="Search">
<button class="toggle-button icon icon-close" id="reset-search"></button> <button class="toggle-button icon icon-close" id="reset-search"></button>
</div> </div>
</div> </div>

View File

@@ -2,7 +2,7 @@
{{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }} {{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }}
<a $isCurrent end href="{{ $currentMenuEntry.URL }}" if title="{{ $currentMenuEntry.Name }}" {{ {{ }} }}class="current"> <a {{ if $isCurrent }}class="current"{{ end }} title="{{ $currentMenuEntry.Name }}" href="{{ $currentMenuEntry.URL }}">
{{ $currentMenuEntry.Pre }} {{ $currentMenuEntry.Pre }}
{{ $currentMenuEntry.Name }} {{ $currentMenuEntry.Name }}
</a> </a>