Sfoglia il codice sorgente

Add config.yaml option

Zachary Betz 6 anni fa
parent
commit
f1b9ef4abf
2 ha cambiato i file con 41 aggiunte e 1 eliminazioni
  1. 1 1
      README.md
  2. 40 0
      exampleSite/config.yaml

+ 1 - 1
README.md

@@ -53,7 +53,7 @@ hugo server --themesDir ../..
 
 ## Configuration
 
-Copy the `config.toml` from the [`exampleSite`](https://github.com/zwbetz-gh/cupper-hugo-theme/tree/master/exampleSite), then edit as desired. 
+Copy the `config.toml` or `config.yaml` from the [`exampleSite`](https://github.com/zwbetz-gh/cupper-hugo-theme/tree/master/exampleSite), then edit as desired. 
 
 ## Logo
 

+ 40 - 0
exampleSite/config.yaml

@@ -0,0 +1,40 @@
+baseURL: https://example.com
+languageCode: en-us
+defaultContentLanguage: en
+title: Cupper
+theme: cupper-hugo-theme
+googleAnalytics: UA-123456789-1
+
+taxonomies:
+  tag: tags
+
+permalinks:
+  post: /:filename/
+
+imaging:
+  quality: 99
+
+params:
+  description: An accessibility-friendly Hugo theme, ported from the [original Cupper](https://github.com/ThePacielloGroup/cupper) project.
+  footer: Made with [Hugo](https://gohugo.io/). Themed by [Cupper](https://github.com/zwbetz-gh/cupper-hugo-theme). Deployed to [Netlify](https://www.netlify.com/).
+  # For more date formats see https://gohugo.io/functions/format/
+  dateFormat: Jan 2, 2006
+  codePenUser: someUser
+
+menu:
+  nav:
+    - name: Home
+      url: /
+      weight: 1
+    - name: Blog
+      url: /post/
+      weight: 2
+    - name: Tags
+      url: /tags/
+      weight: 3
+    - name: About
+      url: /about/
+      weight: 4
+    - name: RSS
+      url: /index.xml
+      weight: 5