remove comments and try to fix overflow
This commit is contained in:
		
							parent
							
								
									3d7bb05d08
								
							
						
					
					
						commit
						e25864f636
					
				| @ -28,8 +28,6 @@ | |||||||
|                 {{ .Content }} |                 {{ .Content }} | ||||||
|             {{ end }} |             {{ end }} | ||||||
|               |               | ||||||
|             {{ partial "comments.html" . }} |  | ||||||
|              |  | ||||||
|             </div> |             </div> | ||||||
|              |              | ||||||
|             {{ partial "sidebar.html" . }} |             {{ partial "sidebar.html" . }} | ||||||
|  | |||||||
| @ -1,137 +1,40 @@ | |||||||
| {{ define "header" }} |  | ||||||
| <!-- Post Header --> |  | ||||||
| <style type="text/css"> |  | ||||||
|     header.intro-header { |  | ||||||
|         background-image: url('{{ if .Params.image }}{{ .Params.image | relURL }}{{ else }}{{ .Site.Params.header_image | relURL}}{{ end }}') |  | ||||||
|     } |  | ||||||
| </style> |  | ||||||
| {{ if eq .Params.headerstyle "text" }} |  | ||||||
| <header class="intro-header style-text" > |  | ||||||
| {{ else }} |  | ||||||
| <header class="intro-header" > |  | ||||||
| {{ end }} |  | ||||||
|     <div class="container"> |  | ||||||
|         <div class="row"> |  | ||||||
|             <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> |  | ||||||
|                 <div class="post-heading"> |  | ||||||
|                     <div class="tags"> |  | ||||||
|                         {{ range .Params.tags }} |  | ||||||
|                         <a class="tag" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}" title="{{ . }}"> |  | ||||||
|                             {{ . }} |  | ||||||
|                         </a> |  | ||||||
|                         {{ end }} |  | ||||||
|                     </div> |  | ||||||
|                     <h1>{{ .Title }}</h1> |  | ||||||
|                     <h2 class="subheading">{{ .Params.subtitle }}</h2> |  | ||||||
|                 </div> |  | ||||||
|             </div> |  | ||||||
|         </div> |  | ||||||
|     </div> |  | ||||||
| </header> |  | ||||||
| {{ end }} |  | ||||||
| 
 | 
 | ||||||
| {{ define "main" }} | {{ define "main" }} | ||||||
| <!-- Post Content --> | <!-- Post Content --> | ||||||
| <article> | <article> | ||||||
|     <div class="container"> |     <div class="container"> | ||||||
|         <div class="row"> |         <div class="row"> | ||||||
| 
 |  | ||||||
|             <!-- Post Container --> |             <!-- Post Container --> | ||||||
|             <div class=" |             <div class=" | ||||||
|                 col-lg-8 col-lg-offset-2 |             col-lg-8  | ||||||
|                 col-md-10 col-md-offset-1 |             col-md-8 | ||||||
|  |             col-sm-12 | ||||||
|  |             col-xs-12 | ||||||
|             post-container"> |             post-container"> | ||||||
|  |             {{ if eq (.Param "multilingual") true }} | ||||||
|  |                 {{ partial "multilingual-sel.html" . }} | ||||||
| 
 | 
 | ||||||
|                 <!-- |                 <!-- Chinese Version --> | ||||||
|                 {{ if not (eq (.Param "showtoc") false) }} |                 <div class="zh post-container"> | ||||||
|                 <header> |                     {{$file :=  "/about/index-zh.md"}} | ||||||
|                     <h2>TOC</h2> |                     {{ $file | readFile | markdownify}} | ||||||
|                 </header> |                 </div> | ||||||
|                 {{.TableOfContents}} |              | ||||||
|                 {{ end }} |                 <!-- English Version --> | ||||||
|                 --> |                 <div class="en post-container"> | ||||||
|  |                     {{ .Content }} | ||||||
|  |                 </div> | ||||||
|  |             {{ else }} | ||||||
|                 {{ .Content }} |                 {{ .Content }} | ||||||
| 
 |  | ||||||
|                 {{ if .Site.Params.reward }} |  | ||||||
|                 {{ partial "reward.html" . }} |  | ||||||
|                 {{ end }} |  | ||||||
| 
 |  | ||||||
|                 {{ if or (.PrevInSection) (.NextInSection) }} |  | ||||||
|                 <hr> |  | ||||||
|                 <ul class="pager"> |  | ||||||
|                     {{ if .PrevInSection }} |  | ||||||
|                     <li class="previous"> |  | ||||||
|                         <a href="{{ .PrevInSection.RelPermalink }}" data-toggle="tooltip" data-placement="top" title="{{ .PrevInSection.Title}}">← |  | ||||||
|                             Previous Post</a> |  | ||||||
|                     </li> |  | ||||||
|                     {{ end }} |  | ||||||
|                     {{ if .NextInSection }} |  | ||||||
|                     <li class="next"> |  | ||||||
|                         <a href="{{ .NextInSection.RelPermalink }}" data-toggle="tooltip" data-placement="top" title="{{ .NextInSection.Title}}">Next |  | ||||||
|                             Post →</a> |  | ||||||
|                     </li> |  | ||||||
|                     {{ end }} |  | ||||||
|                 </ul> |  | ||||||
|             {{ end }} |             {{ end }} | ||||||
|               |               | ||||||
|             </div> |             </div> | ||||||
|              |              | ||||||
|             <!-- Side Catalog Container --> |             {{ partial "sidebar.html" . }} | ||||||
|             {{ if not (eq (.Param "showtoc") false) }} |  | ||||||
|             <div class=" |  | ||||||
|                 col-lg-2 col-lg-offset-0 |  | ||||||
|                 visible-lg-block |  | ||||||
|                 sidebar-container |  | ||||||
|                 catalog-container"> |  | ||||||
|                 <div class="side-catalog"> |  | ||||||
|                     <hr class="hidden-sm hidden-xs"> |  | ||||||
|                     <h5> |  | ||||||
|                         <a class="catalog-toggle" href="#">CATALOG</a> |  | ||||||
|                     </h5> |  | ||||||
|                     <ul class="catalog-body"></ul> |  | ||||||
|                 </div> |  | ||||||
|             </div> |  | ||||||
|             {{ end }} |  | ||||||
| 
 |  | ||||||
|             <!-- Sidebar Container --> |  | ||||||
|             <div class=" |  | ||||||
|                 col-lg-8 col-lg-offset-2 |  | ||||||
|                 col-md-10 col-md-offset-1 |  | ||||||
|                 sidebar-container"> |  | ||||||
| 
 |  | ||||||
|                 <!-- Featured Tags --> |  | ||||||
|                 {{ if .Site.Params.featured_tags }} |  | ||||||
|                 <section> |  | ||||||
|                     <hr class="hidden-sm hidden-xs"> |  | ||||||
|                     <h5><a href="/tags/">FEATURED TAGS</a></h5> |  | ||||||
|                     <div class="tags"> |  | ||||||
|                         {{ $featured_condition_size := .Site.Params.featured_condition_size }} |  | ||||||
|                         {{ range $name, $taxonomy := .Site.Taxonomies.tags }} |  | ||||||
|                         {{ if gt (len $taxonomy.Pages) $featured_condition_size }} |  | ||||||
|                         <a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}"> |  | ||||||
|                             {{ $name }} |  | ||||||
|                         </a> |  | ||||||
|                         {{ end }} |  | ||||||
|                         {{ end }} |  | ||||||
|                     </div> |  | ||||||
|                 </section> |  | ||||||
|                 {{ end }} |  | ||||||
| 
 |  | ||||||
|                 <!-- Friends Blog --> |  | ||||||
|                 {{ if .Site.Params.friends }} |  | ||||||
|                 <section> |  | ||||||
|                     <hr> |  | ||||||
|                     <h5>FRIENDS</h5> |  | ||||||
|                     <ul class="list-inline"> |  | ||||||
|                         {{ range .Site.Params.friend_link }} |  | ||||||
|                         <li><a target="_blank" href="{{.href}}">{{.title}}</a></li> |  | ||||||
|                         {{ end }} |  | ||||||
|                     </ul> |  | ||||||
|                 </section> |  | ||||||
|                 {{ end }} |  | ||||||
|             </div> |  | ||||||
|         </div> |         </div> | ||||||
|     </div> |     </div> | ||||||
| </article> | </article> | ||||||
| 
 | 
 | ||||||
| {{ end }} | {{ end }} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | |||||||
| @ -19,9 +19,9 @@ | |||||||
| 
 | 
 | ||||||
|           <!-- SNS Link --> |           <!-- SNS Link --> | ||||||
|            <ul class="list-inline"> |            <ul class="list-inline"> | ||||||
|                {{ if .Site.Data.infos.courriel }} |                {{ with .Site.Data.infos.courriel }} | ||||||
|                <li> |                <li> | ||||||
|                    <a href="mailto:{{ .Site.Data.infos.courriel }}"> |                    <a href="mailto:{{ . }}"> | ||||||
|                       <span class="fa-stack fa-lg"> |                       <span class="fa-stack fa-lg"> | ||||||
|                           <i class="fa fa-circle fa-stack-2x"></i> |                           <i class="fa fa-circle fa-stack-2x"></i> | ||||||
|                           <i class="fa fa-envelope fa-stack-1x fa-inverse"></i> |                           <i class="fa fa-envelope fa-stack-1x fa-inverse"></i> | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user