Ver Fonte

Merge https://github.com/wowchemy/wowchemy-hugo-modules

Xi Ruoyao há 3 anos atrás
pai
commit
0a6e659af5

+ 5 - 3
wowchemy/i18n/ca.yaml

@@ -75,13 +75,15 @@
 - id: more_publications
   translation: Més publicacions
 - id: contact_name
-  translation: Name
+  translation: Nom
 - id: contact_email
   translation: Email
 - id: contact_message
-  translation: Message
+  translation: Missatge
+- id: contact_attachment
+  translation: Adjunt  
 - id: contact_send
-  translation: Send
+  translation: Enviar
 - id: book_appointment
   translation: Book an appointment
 - id: abstract

+ 3 - 0
wowchemy/i18n/en.yaml

@@ -138,6 +138,9 @@
 
 - id: contact_message
   translation: Message
+  
+- id: contact_attachment
+  translation: Attach file
 
 - id: contact_send
   translation: Send

+ 2 - 0
wowchemy/i18n/es.yaml

@@ -80,6 +80,8 @@
   translation: Email
 - id: contact_message
   translation: Mensaje
+- id: contact_attachment
+  translation: Adjunto  
 - id: contact_send
   translation: Enviar
 - id: book_appointment

+ 7 - 1
wowchemy/layouts/partials/widgets/contact.html

@@ -38,7 +38,7 @@
     {{ end }}
 
     <div class="mb-3">
-      <form name="contact" method="POST" {{ $post_action | safeHTMLAttr }} {{ if $use_netlify_form }}netlify-honeypot="_gotcha"{{ end }} {{ if $use_netlify_captcha }}data-netlify-recaptcha="true"{{ end }}>
+      <form name="contact" method="POST" {{ $post_action | safeHTMLAttr }} {{ if $use_netlify_form }}netlify-honeypot="_gotcha"{{ end }} {{ if $use_netlify_captcha }}data-netlify-recaptcha="true"{{ end }} {{ with $st.Params.content.form.netlify.success_url }}action="{{ . | relLangURL }}"{{ end }}>
         <div class="form-group form-inline">
           <label class="sr-only" for="inputName">{{ i18n "contact_name" }}</label>
           <input type="text" name="name" class="form-control w-100" id="inputName" placeholder="{{ i18n "contact_name" | default "Name" }}" required>
@@ -51,6 +51,12 @@
           <label class="sr-only" for="inputMessage">{{ i18n "contact_message" }}</label>
           <textarea name="message" class="form-control" id="inputMessage" rows="5" placeholder="{{ i18n "contact_message" | default "Message" }}" required></textarea>
         </div>
+        {{ if $st.Params.content.form.netlify.attachments }}
+          <div class="form-group form-inline">
+            <label class="sr-only" for="fileUpload">{{ i18n "contact_attachment" }}</label>
+            <input type="file" name="file" class="form-control w-100" id="fileUpload" placeholder="{{ i18n "contact_attachment" | default "Attach file" }}">
+          </div>
+        {{ end }}
         <div class="d-none">
           <label>Do not fill this field unless you are a bot: <input name="_gotcha"></label>
         </div>

+ 1 - 1
wowchemy/layouts/shortcodes/audio.html

@@ -6,7 +6,7 @@
 {{ $is_remote := strings.HasPrefix $destination "http" }}
 {{- $asset := "" -}}
 {{- if not $is_remote -}}
-  {{- $asset = (.Page.Resources.ByType "image").GetMatch $destination -}}
+  {{- $asset = (.Page.Resources.ByType "audio").GetMatch $destination -}}
   {{- if not $asset -}}
     {{- $asset = resources.Get (path.Join "media" $destination) -}}
   {{- end -}}

BIN
wowchemy/v5/images/screenshot.png


BIN
wowchemy/v5/images/tn.png


+ 24 - 0
wowchemy/v5/theme.toml

@@ -0,0 +1,24 @@
+name = "Wowchemy Widget Pages"
+license = "MIT"
+licenselink = "https://github.com/wowchemy/wowchemy-hugo-modules/blob/main/LICENSE.md"
+description = "Create any kind of website with fully customizable widgets - 50+ light/dark color themes, language packs, and widgets included."
+homepage = "https://github.com/wowchemy/wowchemy-hugo-modules"
+demosite = "https://online-fitness-coach.netlify.app/"
+tags = ["widgets",
+        "portfolio",
+        "responsive",
+        "company",
+        "blog",
+        "minimal",
+        "dark",
+        "multilingual",
+        "landing page",
+        "one page",
+        "customizable"
+        ]
+features = ["page builder", "widgets", "color themes", "dark mode", "customizable", "filterable portfolio",
+            "blog", "create landing pages", "gallery", "contact form"]
+
+[author]
+  name = "George Cushen"
+  homepage = "https://georgecushen.com"