소스 검색

CSS: Make header margins more consistent again

See #681
See #571
George Cushen 6 년 전
부모
커밋
9ee3ade085
6개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 1
      demo.sh
  2. 1 1
      layouts/_default/list.html
  3. 1 0
      layouts/partials/css/academic.css
  4. 1 1
      layouts/section/post.html
  5. 1 1
      layouts/section/publication.html
  6. 1 1
      layouts/section/talk.html

+ 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>