| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -80,17 +80,15 @@ layout: default | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					{% if page.tags %} | 
					 | 
					 | 
					 | 
					{% if page.tags %} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<small style="display: block">tags: {% for tag in page.tags %}<a href="/search.html?keyword={{ tag | url_encode }}"><em>{{ tag }}</em></a>{% unless forloop.last %} - {% endunless %}{% endfor %} <span style="float: right;"><a href="{% if site.github %}{{ site.github.repository_url }}{% else %}https://gitlab.com/mayx/mayx.gitlab.io{% endif %}/tree/master/{{ page.path }}">查看原始文件</a></span></small> | 
					 | 
					 | 
					 | 
					<small style="display: block">tags: {% for tag in page.tags %}<a href="/search.html?keyword={{ tag | url_encode }}"><em>{{ tag }}</em></a>{% unless forloop.last %} - {% endunless %}{% endfor %} <span style="float: right;"><a href="{% if site.github %}{{ site.github.repository_url }}{% else %}https://gitlab.com/mayx/mayx.gitlab.io{% endif %}/tree/master/{{ page.path }}">查看原始文件</a></span></small> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					{% endif %} | 
					 | 
					 | 
					 | 
					{% endif %} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<br /> | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<br /> | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<!--[if !IE]> --> | 
					 | 
					 | 
					 | 
					<!--[if !IE]> --> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<p id="suggest-container"></p> | 
					 | 
					 | 
					 | 
					<h4 style="border-bottom: 1px solid #e5e5e5;margin: 2em 0 5px;">推荐文章</h4> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					<p id="suggest-container">Loading...</p> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<script> | 
					 | 
					 | 
					 | 
					<script> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					var suggest = $("#suggest-container")[0]; | 
					 | 
					 | 
					 | 
					var suggest = $("#suggest-container"); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					suggest.innerHTML = "Loading..."; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					$.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), function (data) { | 
					 | 
					 | 
					 | 
					$.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), function (data) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (data.length) { | 
					 | 
					 | 
					 | 
					    if (data.length) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        getSearchJSON(function (search) { | 
					 | 
					 | 
					 | 
					        getSearchJSON(function (search) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            suggest.innerHTML = '<b>推荐文章</b><hr style="margin: 0 0 5px"/>'; | 
					 | 
					 | 
					 | 
					            suggest.empty() | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            const searchMap = new Map(search.map(item => [item.url, item])); | 
					 | 
					 | 
					 | 
					            const searchMap = new Map(search.map(item => [item.url, item])); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            const merged = data.map(suggestObj => { | 
					 | 
					 | 
					 | 
					            const merged = data.map(suggestObj => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                const searchObj = searchMap.get(suggestObj.id); | 
					 | 
					 | 
					 | 
					                const searchObj = searchMap.get(suggestObj.id); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -98,12 +96,12 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }); | 
					 | 
					 | 
					 | 
					            }); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            merged.forEach(element => { | 
					 | 
					 | 
					 | 
					            merged.forEach(element => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                if (element) { | 
					 | 
					 | 
					 | 
					                if (element) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    suggest.innerHTML += "<a href=" + element.url + ">" + element.title + "</a> - " + element.date + "<br />"; | 
					 | 
					 | 
					 | 
					                    suggest.append("<a href=" + element.url + ">" + element.title + "</a> - " + element.date + "<br />"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                } | 
					 | 
					 | 
					 | 
					                } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            }); | 
					 | 
					 | 
					 | 
					            }); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        }); | 
					 | 
					 | 
					 | 
					        }); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } else { | 
					 | 
					 | 
					 | 
					    } else { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        suggest.innerHTML = "暂无推荐文章……"; | 
					 | 
					 | 
					 | 
					        suggest.html("暂无推荐文章……"); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}); | 
					 | 
					 | 
					 | 
					}); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					</script> | 
					 | 
					 | 
					 | 
					</script> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |