Add param to set default size for headings
This commit is contained in:
		
							parent
							
								
									ee93a3dcd5
								
							
						
					
					
						commit
						7ac0deff87
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @ -74,19 +74,29 @@ paginate = 5 | ||||
| [params] | ||||
|   # dir name of your blog content (default is `content/posts`) | ||||
|   contentTypeName = "posts" | ||||
| 
 | ||||
|   # ["orange", "blue", "red", "green", "pink"] | ||||
|   themeColor = "orange" | ||||
| 
 | ||||
|   # if you set this to 0, only submenu trigger will be visible | ||||
|   showMenuItems = 2 | ||||
| 
 | ||||
|   # show selector to switch language | ||||
|   showLanguageSelector = false | ||||
| 
 | ||||
|   # set theme to full screen width | ||||
|   fullWidthTheme = false | ||||
| 
 | ||||
|   # center theme with default width | ||||
|   centerTheme = false | ||||
| 
 | ||||
|   # set a custom favicon (default is a `themeColor` square) | ||||
|   # favicon = "favicon.ico" | ||||
| 
 | ||||
|   # set all headings to their default size (depending on browser settings) | ||||
|   # it's set to `true` by default | ||||
|   # oneHeadingSize = false | ||||
| 
 | ||||
| [languages] | ||||
|   [languages.en] | ||||
|     languageName = "English" | ||||
|  | ||||
| @ -9,7 +9,7 @@ | ||||
| <body class=""> | ||||
| {{ $container := cond $.Site.Params.FullWidthTheme "container full" (cond $.Site.Params.CenterTheme "container center" "container") }} | ||||
| 
 | ||||
| <div class="{{- $container -}}"> | ||||
| <div class="{{- $container -}}{{- cond ($.Site.Params.oneHeadingSize | default true) " headings--one-size" "" }}"> | ||||
| 
 | ||||
|   {{ partial "header.html" . }} | ||||
| 
 | ||||
|  | ||||
| @ -29,29 +29,32 @@ body { | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| h1, | ||||
| h2, | ||||
| h3, | ||||
| h4, | ||||
| h5, | ||||
| h6 { | ||||
|   line-height: 1.3; | ||||
| 
 | ||||
|   &:not(first-child) { | ||||
|     margin-top: 40px; | ||||
| .headings--one-size { | ||||
|   h1, | ||||
|   h2, | ||||
|   h3, | ||||
|   h4, | ||||
|   h5, | ||||
|   h6 { | ||||
|     line-height: 1.3; | ||||
| 
 | ||||
|     &:not(first-child) { | ||||
|       margin-top: 40px; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| h1, | ||||
| h2, | ||||
| h3 { | ||||
|   font-size: 1.4rem; | ||||
| } | ||||
|   h1, | ||||
|   h2, | ||||
|   h3 { | ||||
|     font-size: 1.4rem; | ||||
|   } | ||||
| 
 | ||||
| h4, | ||||
| h5, | ||||
| h6 { | ||||
|   font-size: 1.2rem; | ||||
|   h4, | ||||
|   h5, | ||||
|   h6 { | ||||
|     font-size: 1.2rem; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| a { | ||||
|  | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -126,7 +126,7 @@ eval("var container = document.querySelector(\".container\");\nvar menu = docume | ||||
| /*! no static exports found */ | ||||
| /***/ (function(module, exports, __webpack_require__) { | ||||
| 
 | ||||
| eval("__webpack_require__(/*! /Users/radek/Documents/Git/Moje/hugoBasicExample/themes/terminal/source/js/main.js */\"./source/js/main.js\");\n__webpack_require__(/*! /Users/radek/Documents/Git/Moje/hugoBasicExample/themes/terminal/source/js/menu.js */\"./source/js/menu.js\");\nmodule.exports = __webpack_require__(/*! /Users/radek/Documents/Git/Moje/hugoBasicExample/themes/terminal/source/js/languageSelector.js */\"./source/js/languageSelector.js\");\n\n\n//# sourceURL=webpack:///multi_./source/js/main.js_./source/js/menu.js_./source/js/languageSelector.js?"); | ||||
| eval("__webpack_require__(/*! /Users/radek/Documents/Git/Moje/terminal/themes/terminal/source/js/main.js */\"./source/js/main.js\");\n__webpack_require__(/*! /Users/radek/Documents/Git/Moje/terminal/themes/terminal/source/js/menu.js */\"./source/js/menu.js\");\nmodule.exports = __webpack_require__(/*! /Users/radek/Documents/Git/Moje/terminal/themes/terminal/source/js/languageSelector.js */\"./source/js/languageSelector.js\");\n\n\n//# sourceURL=webpack:///multi_./source/js/main.js_./source/js/menu.js_./source/js/languageSelector.js?"); | ||||
| 
 | ||||
| /***/ }) | ||||
| 
 | ||||
|  | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user