瀏覽代碼

CSS: Make header margins more consistent again

See #681
See #571
George Cushen 6 年之前
父節點
當前提交
9ee3ade085

+ 1 - 1
demo.sh

@@ -1,4 +1,4 @@
 #!/usr/bin/env bash
 
 cd exampleSite
-hugo -t academic --themesDir ../.. -p 1315 --i18n-warnings server
+hugo -t "hugo-academic-v3" --themesDir ../.. -p 1315 --i18n-warnings --ignoreCache server

+ 1 - 1
layouts/_default/list.html

@@ -10,7 +10,7 @@
 {{ partial "header_image.html" . }}
 
 <div class="universal-wrapper">
-  {{ with .Title }}<h1 class="pt-3">{{ . }}</h1>{{ end }}
+  {{ with .Title }}<h1>{{ . }}</h1>{{ end }}
 
   {{ with .Content }}
   <div class="article-style" itemprop="articleBody">{{ . }}</div>

+ 1 - 0
layouts/partials/css/academic.css

@@ -85,6 +85,7 @@ ul, ol, dl {
 h1, h2, h3, h4, h5, h6 {
   font-family: '{{ .Get "heading_font" }}', sans-serif;
   font-weight: 400;
+  margin-top: 1rem;
   margin-bottom: .5rem;
   line-height: 1.25;
   color: #313131;

+ 1 - 1
layouts/section/post.html

@@ -5,7 +5,7 @@
 
 <div class="universal-wrapper">
 
-  <h1 class="pt-3">{{ .Title | default (i18n "posts") }}</h1>
+  <h1>{{ .Title | default (i18n "posts") }}</h1>
 
   {{ with .Content }}
   <div class="article-style" itemprop="articleBody">{{ . }}</div>

+ 1 - 1
layouts/section/publication.html

@@ -4,7 +4,7 @@
 {{ partial "header_image.html" . }}
 
 <div class="universal-wrapper">
-  <div class="row pt-3">
+  <div class="row">
     <div class="col-lg-12">
       <h1>{{ .Title | default (i18n "publications") }}</h1>
 

+ 1 - 1
layouts/section/talk.html

@@ -4,7 +4,7 @@
 {{ partial "header_image.html" . }}
 
 <div class="universal-wrapper">
-  <div class="row pt-3">
+  <div class="row">
     <div class="col-lg-12">
       <h1>{{ .Title | default (i18n "talks") }}</h1>