_pages: Working on adding blog list to index
This commit is contained in:
		
							
								
								
									
										4
									
								
								qsgen2
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								qsgen2
									
									
									
									
									
								
							@@ -373,7 +373,7 @@ function _file_to_lower() {
 | 
			
		||||
function _pages() {
 | 
			
		||||
    # This function generates all the new and updated Pages
 | 
			
		||||
    
 | 
			
		||||
    local debug=false
 | 
			
		||||
    local debug=true
 | 
			
		||||
    
 | 
			
		||||
    # Load the cache for Pages
 | 
			
		||||
    if (${debug}) _msg debug "_pages: Running function _pages_cache"
 | 
			
		||||
@@ -438,7 +438,7 @@ function _pages() {
 | 
			
		||||
            #echo "$page_content"
 | 
			
		||||
            #exit
 | 
			
		||||
          fi
 | 
			
		||||
        
 | 
			
		||||
        #new_updated_blogs=true
 | 
			
		||||
        # Let's find the file 'index.tpl' and add the blog if blog_in_index is true
 | 
			
		||||
        if [[ ${pages_in_array} == "index.${file_ext}" ]] && [[ ${blog_in_index} == "true" ]]; then
 | 
			
		||||
            if (${debug}) _msg debug "_pages: Inserting blog list to index.html"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user