mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
v0.3.0
- Change color from orange to blue; improve colors elsewhere - Change `div.section` to `section` - Rename `posts` directory to `blog` - Add ability to specify extra CSS files in `config.toml` - Removed `WebFontsFile` feature from `config.toml` - Remove the initials displayed on top right of single post pages - Update example site
This commit is contained in:
@@ -15,18 +15,20 @@
|
||||
<link rel="stylesheet" href="/css/reset.css">
|
||||
<link rel="stylesheet" href="/css/pygments.css">
|
||||
<link rel="stylesheet" href="/css/main.css">
|
||||
{{ if .Site.Params.WebfontsFile }}
|
||||
<link rel="stylesheet" href="/{{ .Site.Params.WebfontsFile }}">
|
||||
{{ end }}
|
||||
|
||||
{{range .Site.Params.ExtraCssFiles}}
|
||||
<link rel="stylesheet" href="{{.}}">
|
||||
{{end}}
|
||||
|
||||
{{ else }}
|
||||
|
||||
<link rel="stylesheet" href="/css/reset.css?{{ .Now.Unix }}">
|
||||
<link rel="stylesheet" href="/css/pygments.css?{{ .Now.Unix }}">
|
||||
<link rel="stylesheet" href="/css/main.css?{{ .Now.Unix }}">
|
||||
{{ if .Site.Params.WebfontsFile }}
|
||||
<link rel="stylesheet" href="/{{ .Site.Params.WebfontsFile }}?{{ .Now.Unix }}">
|
||||
{{ end }}
|
||||
|
||||
{{range .Site.Params.ExtraCssFiles}}
|
||||
<link rel="stylesheet" href="{{.}}?{{ .Now.Unix }}">
|
||||
{{end}}
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
@@ -5,23 +5,22 @@
|
||||
|
||||
<body lang="{{ .Site.Params.Lang }}">
|
||||
|
||||
<div class="section header">
|
||||
<section class="header">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
<a href="/"><div class="name">{{ .Site.Params.Author }}</div></a>
|
||||
<nav>
|
||||
<ul>
|
||||
<a href="/posts/"><li>Posts</li></a>
|
||||
<a href="/blog/"><li>Blog</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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="section icons">
|
||||
<section class="icons">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
|
||||
@@ -62,4 +61,4 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@@ -1,65 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
|
||||
{{ partial "head.html" . }}
|
||||
|
||||
<body lang="{{ .Site.Params.Lang }}">
|
||||
|
||||
<div class="section header narrow">
|
||||
<div class="container">
|
||||
<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>
|
||||
{{ 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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section icons narrow">
|
||||
<div class="container">
|
||||
<div class="content">
|
||||
|
||||
{{ if .Site.Params.GitHub }}
|
||||
<a href="{{ .Site.Params.GitHub }}" target="_blank">
|
||||
<i class="icon ion-social-github"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.Twitter }}
|
||||
<a href="{{ .Site.Params.Twitter }}" target="_blank">
|
||||
<i class="icon ion-social-twitter"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.LinkedIn }}
|
||||
<a href="{{ .Site.Params.LinkedIn }}" target="_blank">
|
||||
<i class="icon ion-social-linkedin"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.Facebook }}
|
||||
<a href="{{ .Site.Params.Facebook }}" target="_blank">
|
||||
<i class="icon ion-social-facebook larger"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.SoundCloud }}
|
||||
<a href="{{ .Site.Params.SoundCloud }}" target="_blank">
|
||||
<i class="icon ion-ios-musical-notes larger"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.Email }}
|
||||
<a href="mailto:{{ .Site.Params.Email }}">
|
||||
<i class="icon ion-ios-email larger"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user