mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Regis Philibert
11.54.2022 d4e5a698a829e63273252418dd2a5cccdeb04aa2
Update exampleSite
6 files modified
29 ■■■■■ changed files
exampleSite/config.toml 6 ●●●● patch | view | raw | blame | history
exampleSite/content/en/_index.md 4 ●●● patch | view | raw | blame | history
exampleSite/content/en/contact.md 2 ●●● patch | view | raw | blame | history
exampleSite/content/fr/_index.md 10 ●●●● patch | view | raw | blame | history
exampleSite/content/fr/contact.md 5 ●●●●● patch | view | raw | blame | history
layouts/partials/page-header.html 2 ●●● patch | view | raw | blame | history
exampleSite/config.toml
@@ -13,11 +13,11 @@
[languages]
  [languages.en]
    title = "My blog"
    title = "Ananke"
    weight = 1
    contentDir = "content/en"
  [languages.fr]
    title = "Mon blogue"
    title = "Ananke Fr"
    weight = 2
    contentDir = "content/fr"
@@ -35,7 +35,7 @@
  # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
  background_color_class = "bg-black"
  featured_image = "/images/gohugo-default-sample-hero-image.jpg"
  recent_posts_number = 2
  recent_posts_number = 3
[[params.ananke_socials]]
name = "twitter"
exampleSite/content/en/_index.md
@@ -1,6 +1,8 @@
---
title: "Ananke: a Hugo Theme"
featured_image: '/images/gohugo-default-sample-hero-image.jpg'
description: "The last theme you'll ever need. Maybe."
cascade:
  featured_image: '/images/gohugo-default-sample-hero-image.jpg'
---
Welcome to my blog with some of my work in progress. I've been working on this book idea. You can read some of the chapters below.
exampleSite/content/en/contact.md
@@ -1,6 +1,6 @@
---
title: Contact
featured_image: "images/notebook.jpg"
featured_image: ''
omit_header_text: true
description: We'd love to hear from you
type: page
exampleSite/content/fr/_index.md
@@ -1,8 +1,8 @@
---
title: "Ananke: Un thème pour Hugo"
featured_image: '/images/gohugo-default-sample-hero-image.jpg'
description: "Le dernier thème dont vous aurez besoin. Peut-être"
---
Bienvenu sur mon blog!
Vous pouvez lire mes idées de publication plus bas.
description: "Le dernier thème dont vous aurez besoin. Peut-être"
cascade:
  featured_image: '/images/gohugo-default-sample-hero-image.jpg'
---
Bienvenu sur mon blog à propos de mon travail du moment. Je travail sur une idée de livre. Vous pouvez lire quelques chapitres plus bas.
exampleSite/content/fr/contact.md
@@ -1,6 +1,6 @@
---
title: Contact
featured_image: "images/notebook.jpg"
featured_image: ''
omit_header_text: true
description: Laissez-nous un message!
type: page
@@ -8,7 +8,8 @@
---
Ceci est la page de contact en Français.
This is the French contact page. This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
This is an example of a custom shortcode that you can put right into your content. You will need to add a form action to the the shortcode to make it work. Check out [Formspree](https://formspree.io/) for a simple, free form service.
{{< form-contact action="https://example.com"  >}}
layouts/partials/page-header.html
@@ -3,7 +3,7 @@
  {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}}
  {{ $featured_image := (trim $featured_image "/") | absURL }}
  <header class="cover bg-top" style="background-image: url('{{ $featured_image }}');">
    <div class="pb3-m pb6-l bg-black-60">
    <div class="bg-black-60">
      {{ partial "site-navigation.html" . }}
      <div class="tc-l pv6 ph3 ph4-ns">
        {{ if not .Params.omit_header_text }}