mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
CSS changes
* Dynamic resume link * More header changes * CSS for narrow hides * Fix syntax error in header files * Add transition for initials link * Link hover with transition * Add date in tooltip * Consistent colors * Font sizes * Icon margins HTTPS in JS correction to remove slashes
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
<!-- HTTPS -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var baseUrl = '{{ .Site.BaseUrl }}';
|
||||
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
||||
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||
window.location.protocol = 'https';
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- CSS -->
|
||||
|
||||
{{ if eq true .Site.Params.CacheBuster }}
|
||||
|
@@ -10,9 +10,10 @@
|
||||
<div class="content">
|
||||
<nav>
|
||||
<ul>
|
||||
<a href="/posts"><li>Posts</li></a>
|
||||
<a href="/about"><li>About</li></a>
|
||||
<a href="/code"><li>Code</li></a>
|
||||
<a href="/posts/"><li>Posts</li></a>
|
||||
<a href="/about/"><li>About</li></a>
|
||||
<a href="/code/"><li>Code</li></a>
|
||||
{{ if .Site.Params.ResumeLink }}<a href={{ .Site.Params.ResumeLink }}><li>Resume</li></a>{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
<a href="/"><div class="name">{{ .Site.Params.Author }}</div></a>
|
||||
|
@@ -10,9 +10,10 @@
|
||||
<div class="content">
|
||||
<nav>
|
||||
<ul>
|
||||
<a href="/posts"><li>Posts</li></a>
|
||||
<a href="/about"><li>About</li></a>
|
||||
<a href="/code"><li>Code</li></a>
|
||||
<a href="/posts/"><li>Posts</li></a>
|
||||
<a href="/about/"><li>About</li></a>
|
||||
<a href="/code/"><li>Code</li></a>
|
||||
{{ if .Site.Params.ResumeLink }}<a href={{ .Site.Params.ResumeLink }}><li>Resume</li></a>{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
<a href="/"><div class="name">{{ .Site.Params.Author }}</div></a>
|
||||
@@ -20,7 +21,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section icons">
|
||||
<div class="section icons narrow">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
|
||||
|
Reference in New Issue
Block a user