Put slides partial into reveal-hugo dir
This commit is contained in:
		
							parent
							
								
									64d0490d38
								
							
						
					
					
						commit
						80f0c3ee33
					
				
							
								
								
									
										10
									
								
								README.md
								
								
								
								
							
							
						
						
									
										10
									
								
								README.md
								
								
								
								
							|  | @ -142,12 +142,10 @@ If you need to add something to the HTML page, just override one or both of the | ||||||
| If your Hugo site already has a theme but you'd like to create a presentation from some of its content, that's very easy. First, manually copy a few files out of this theme into a few of your site's directories: | If your Hugo site already has a theme but you'd like to create a presentation from some of its content, that's very easy. First, manually copy a few files out of this theme into a few of your site's directories: | ||||||
| 
 | 
 | ||||||
| ```shell | ```shell | ||||||
| $ cd my-hugo-site | cd my-hugo-site | ||||||
| $ git clone git@github.com:dzello/reveal-hugo.git themes/reveal-hugo | git clone git@github.com:dzello/reveal-hugo.git themes/reveal-hugo | ||||||
| $ cp -r themes/reveal-hugo/static/reveal_hugo static/reveal_hugo | cd themes/reveal-hugo | ||||||
| $ cp themes/reveal-hugo/layouts/* layouts | cp -r data layouts static ../../ | ||||||
| $ cp themes/reveal-hugo/data/* data |  | ||||||
| $ cp themes/reveal-hugo/static/* static |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Files and directories are named such that they shouldn't conflict with your existing content. Of course, you should double check before copying, especially the shortcodes which can't be put under a directory. | Files and directories are named such that they shouldn't conflict with your existing content. Of course, you should double check before copying, especially the shortcodes which can't be put under a directory. | ||||||
|  |  | ||||||
|  | @ -1,3 +1,3 @@ | ||||||
| {{ define "main" }} | {{ define "main" }} | ||||||
|   {{ partial "slides" (union (slice .Page) (where .Data.Pages "Type" "home")) }} |   {{ partial "reveal-hugo/slides" (union (slice .Page) (where .Data.Pages "Type" "home")) }} | ||||||
| {{ end }} | {{ end }} | ||||||
|  |  | ||||||
|  | @ -1,3 +1,3 @@ | ||||||
| {{ define "main" }} | {{ define "main" }} | ||||||
|   {{ partial "slides" (union (slice .Page) .Pages) }} |   {{ partial "reveal-hugo/slides" (union (slice .Page) .Pages) }} | ||||||
| {{ end }} | {{ end }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 dzello
						dzello