Browse Source

Define an HTML header block

master
Adrian Short 6 years ago
parent
commit
673332654a
2 changed files with 14 additions and 8 deletions
  1. +10
    -8
      layouts/partials/header.html
  2. +4
    -0
      static/css/main.css

+ 10
- 8
layouts/partials/header.html View File

@@ -27,12 +27,14 @@
{{- template "_internal/twitter_cards.html" -}} {{- template "_internal/twitter_cards.html" -}}
</head> </head>
<body> <body>
<h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1>
<header>
<h1 id="site-title"><a href="{{ relURL "/" }}">{{ .Site.Title }}</a></h1>


<div id="site-social">
{{ range .Site.Params.social}}
<a href="{{ .url }}" title="{{ .title }}">
<i class="fa {{ .fa_icon }}"></i>
</a>
{{ end }}
</div>
<div id="site-social">
{{ range .Site.Params.social}}
<a href="{{ .url }}" title="{{ .title }}">
<i class="fa {{ .fa_icon }}"></i>
</a>
{{ end }}
</div>
</header>

+ 4
- 0
static/css/main.css View File

@@ -191,6 +191,10 @@ ul.tag-cloud li a, ul.tag-cloud li a:visited {
color: white; color: white;
} }


header {
margin: 60px 0;
}

@media screen and (max-width: 599px) { @media screen and (max-width: 599px) {
body { body {
width: 90%; width: 90%;


Loading…
Cancel
Save