提交 f1aedda0 编写于 作者: J Joel Marcey

More Jekyll 3.3 fixes

上级 c54cdc37
......@@ -21,5 +21,5 @@
<base href="{{ absolute_url }}/" />
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | absolute_url }}" />
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}" />
</head>
<div class="headerContainer">
<div id="header_wrap" class="wrapper headerWrapper">
<div class="inner">
<img class="projectLogo" height="200px" src="{{ relative_url }}/static/logo.svg" alt="{{ site.title }}" title="{{ site.title }}" />
<img class="projectLogo" height="200px" src="{{ '/static/logo.svg' | relative_url }}" alt="{{ site.title }}" title="{{ site.title }}" />
<h1 id="project_title">{{ site.title }}</h1>
<h2 id="project_tagline" class="fbossFontLight">{{ site.tagline }}</h2>
......
......@@ -15,7 +15,7 @@
</div>
</div>
<div class="projectLogo">
<img src="{{ relative_url }}/static/logo.svg" alt="{{ site.title }}">
<img src="{{ '/static/logo.svg' | relative_url }}" alt="{{ site.title }}">
</div>
</div>
</div>
......
<div id="fixed_header" class="fixedHeaderContainer{% if include.alwayson %} visible{% endif %}">
<div class="headerWrapper wrapper">
<header>
<a href="{{ absolute_url }}/">
<img src="{{ relative_url }}/static/logo.svg">
<a href="{{ '/' | absolute_url }}">
<img src="{{ '/static/logo.svg' | relative_url }}">
<h2>{{ site.title }}</h2>
</a>
......@@ -11,7 +11,7 @@
<ul>
{% for item in site.data.nav %}
<li class="navItem{% if page.collection == item.category or page.category == item.category %} navItemActive{% endif %}">
<a href="{{ item.href }}">{{ item.title }}</a>
<a href="{{ item.href | absolute_url }}">{{ item.title }}</a>
</li>
{% endfor %}
{% if site.searchconfig %}
......
......@@ -43,7 +43,7 @@
}, false);
var collectionNav = document.getElementById('collection_nav');
var collectionNavToggler =
var collectionNavToggler =
document.getElementById('collection_nav_toggler');
collectionNavToggler.addEventListener('click', function(e) {
collectionNav.classList.toggle('toggleNavActive');
......@@ -62,4 +62,3 @@
}
}
</script>
<li class="navListItem"><a class="navItem" href="{{ groupitem.url }}">{{ groupitem.title }}</a></li>
\ No newline at end of file
<li class="navListItem"><a class="navItem" href="{{ groupitem.url | absolute_url }}">{{ groupitem.title }}</a></li>
......@@ -5,40 +5,40 @@
@font-face {
font-family: 'Lato';
src: url('{{ relative_url }}/static/fonts/LatoLatin-Italic.woff2') format('woff2'),
url('{{ relative_url }}/static/fonts/LatoLatin-Italic.woff') format('woff');
src: url("{{ '/static/fonts/LatoLatin-Italic.woff2' | relative_url }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Italic.woff' | relative_url }}") format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Lato';
src: url('{{ relative_url }}/static/fonts/LatoLatin-Black.woff2') format('woff2'),
url('{{ relative_url }}/static/fonts/LatoLatin-Black.woff') format('woff');
src: url("{{ '/static/fonts/LatoLatin-Black.woff2' | relative_url }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Black.woff' | relative_url }}") format('woff');
font-weight: 900;
font-style: normal;
}
@font-face {
font-family: 'Lato';
src: url('{{ relative_url }}/static/fonts/LatoLatin-BlackItalic.woff2') format('woff2'),
url('{{ relative_url }}/static/fonts/LatoLatin-BlackItalic.woff') format('woff');
src: url("{{ '/static/fonts/LatoLatin-BlackItalic.woff2' | relative_url }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-BlackItalic.woff' | relative_url }}") format('woff');
font-weight: 900;
font-style: italic;
}
@font-face {
font-family: 'Lato';
src: url('{{ relative_url }}/static/fonts/LatoLatin-Light.woff2') format('woff2'),
url('{{ relative_url }}/static/fonts/LatoLatin-Light.woff') format('woff');
src: url("{{ '/static/fonts/LatoLatin-Light.woff2' | relative_url }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Light.woff' | relative_url }}") format('woff');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'Lato';
src: url('{{ relative_url }}/static/fonts/LatoLatin-Regular.woff2') format('woff2'),
url('{{ relative_url }}/static/fonts/LatoLatin-Regular.woff') format('woff');
src: url("{{ '/static/fonts/LatoLatin-Regular.woff2' | relative_url }}") format('woff2'),
url("{{ '/static/fonts/LatoLatin-Regular.woff' | relative_url }}") format('woff');
font-weight: normal;
font-style: normal;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册