mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	
							
								
								
									
										13
									
								
								docs/layouts/partials/google-cse.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								docs/layouts/partials/google-cse.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | <script> | ||||||
|  |   (function() { | ||||||
|  |     var cx = '004940163756227230940:9tdbvl9bwk4'; | ||||||
|  |     var gcse = document.createElement('script'); | ||||||
|  |     gcse.type = 'text/javascript'; | ||||||
|  |     gcse.async = true; | ||||||
|  |     gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + | ||||||
|  |         '//www.google.com/cse/cse.js?cx=' + cx; | ||||||
|  |     var s = document.getElementsByTagName('script')[0]; | ||||||
|  |     s.parentNode.insertBefore(gcse, s); | ||||||
|  |   })(); | ||||||
|  | </script> | ||||||
|  | <gcse:search></gcse:search> | ||||||
| @@ -81,3 +81,4 @@ | |||||||
|                               <!--<h3>{{.Title}}</h3>--> |                               <!--<h3>{{.Title}}</h3>--> | ||||||
|                           <!--</header>--> |                           <!--</header>--> | ||||||
|                     <div class="panel-body"> |                     <div class="panel-body"> | ||||||
|  | {{ partial "google-cse.html" . }} | ||||||
|   | |||||||
							
								
								
									
										26
									
								
								docs/static/css/style.css
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										26
									
								
								docs/static/css/style.css
									
									
									
									
										vendored
									
									
								
							| @@ -431,3 +431,29 @@ h1.top-menu { | |||||||
| .navigation:hover { | .navigation:hover { | ||||||
|     background-color: rgba(0,0,0,0.1); |     background-color: rgba(0,0,0,0.1); | ||||||
| } | } | ||||||
|  |  | ||||||
|  | /* Google Custom Search box */ | ||||||
|  |  | ||||||
|  | input.gsc-input, | ||||||
|  | .gsc-input-box, | ||||||
|  | .gsc-input-box-hover, | ||||||
|  | .gsc-input-box-focus, | ||||||
|  | .gsc-search-button, | ||||||
|  | .gsc-inline-block { | ||||||
|  |   box-sizing: content-box; | ||||||
|  |   line-height: normal; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .gsc-control-cse { | ||||||
|  |   padding: 0.1em 0 0.5em 1em !important; | ||||||
|  |   width: 16em !important; | ||||||
|  |   float: right; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | input.gsc-search-button-v2 { | ||||||
|  |   padding: 6px 12px !important; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .gsc-search-box-tools .gsc-search-box .gsc-input { | ||||||
|  |   padding-right: 1px !important; | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user