adding my own layouts to tweak the theme and homepage
This commit is contained in:
		
							parent
							
								
									674e3769ae
								
							
						
					
					
						commit
						b2ed33d41d
					
				
					 8 changed files with 269 additions and 24 deletions
				
			
		
							
								
								
									
										31
									
								
								layouts/partials/home/card.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								layouts/partials/home/card.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,31 @@
 | 
			
		|||
<div class="relative pt-16 pb-32">
 | 
			
		||||
    <div aria-hidden="true" class="absolute inset-x-0 top-0 h-48 bg-gradient-to-b from-gray-100"></div>
 | 
			
		||||
    <div class="relative">
 | 
			
		||||
        <div class="lg:mx-auto lg:grid lg:max-w-7xl lg:grid-flow-col-dense lg:grid-cols-2 lg:gap-24 lg:px-8">
 | 
			
		||||
            <div class="mx-auto max-w-xl px-4 sm:px-6 lg:mx-0 lg:max-w-none lg:py-16 lg:px-0">
 | 
			
		||||
                <article class="max-w-full prose dark:prose-invert">
 | 
			
		||||
                    {{ with .Title }}
 | 
			
		||||
                      <header>
 | 
			
		||||
                        <h1>{{ . | emojify }}</h1>
 | 
			
		||||
                      </header>
 | 
			
		||||
                    {{ end }}
 | 
			
		||||
                    <section>{{ .Content | emojify }}</section>
 | 
			
		||||
                  </article>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="mt-6 sm:mt-16 lg:mt-0">
 | 
			
		||||
                <div class="-mr-48 pl-4 sm:pl-6 md:-mr-16 lg:relative lg:m-0 lg:h-full lg:px-0">
 | 
			
		||||
                    {{ with .Site.Params.homepage.homepageImage }}
 | 
			
		||||
                    {{ $homepageImage := resources.Get . }}
 | 
			
		||||
                    {{ if $homepageImage }}
 | 
			
		||||
                    <img class="w-full rounded-xl shadow-xl lg:absolute lg:left-0 lg:h-full lg:w-auto lg:max-w-none"
 | 
			
		||||
                        src="{{ $homepageImage.RelPermalink }}">
 | 
			
		||||
                    {{ end }}
 | 
			
		||||
                    {{ end }}
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
</div>
 | 
			
		||||
<section>
 | 
			
		||||
    {{ partial "recent-articles.html" . }}
 | 
			
		||||
</section>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue