From 51b57c647cb3a1e9e031a8aaf7cde371a9f5d1d3 Mon Sep 17 00:00:00 2001 From: yann64 Date: Mon, 16 Oct 2023 10:13:48 +0200 Subject: [PATCH] Initial commit --- .gitignore | 3 ++ .gitmodules | 3 ++ archetypes/default.md | 5 +++ config/_default/config.toml | 52 +++++++++++++++++++++++++++++ config/_default/languages.toml | 13 ++++++++ config/_default/markup.toml | 29 ++++++++++++++++ config/_default/menus/menu.fr.toml | 50 +++++++++++++++++++++++++++ config/_default/menus/menus.en.toml | 50 +++++++++++++++++++++++++++ config/_default/params.toml | 30 +++++++++++++++++ content/about.en.md | 8 +++++ content/about.fr.md | 8 +++++ content/authors/_index.md | 5 +++ content/page/_index.md | 6 ++++ content/post/_index.md | 6 ++++ themes/hugo-bootstrap-theme | 1 + 15 files changed, 269 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 config/_default/config.toml create mode 100644 config/_default/languages.toml create mode 100644 config/_default/markup.toml create mode 100644 config/_default/menus/menu.fr.toml create mode 100644 config/_default/menus/menus.en.toml create mode 100644 config/_default/params.toml create mode 100644 content/about.en.md create mode 100644 content/about.fr.md create mode 100644 content/authors/_index.md create mode 100644 content/page/_index.md create mode 100644 content/post/_index.md create mode 160000 themes/hugo-bootstrap-theme diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f488045 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.lock + +resources/_gen diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..3d846cd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/hugo-bootstrap-theme"] + path = themes/hugo-bootstrap-theme + url = https://github.com/filipecarneiro/hugo-bootstrap-theme.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/config/_default/config.toml b/config/_default/config.toml new file mode 100644 index 0000000..0275d14 --- /dev/null +++ b/config/_default/config.toml @@ -0,0 +1,52 @@ +baseURL = 'https://barbel.synology.me/' +title = "Généalogie et Inormatique" +author = "Yannick Barbel" +copyright = "Open-source MIT Licensed." + +languageCode = "fr" # For the internal RSS template (and for the html lang attribute) +DefaultContentLanguage = "fr" +timeZone = 'Europe/Paris' + +# Multilingual +defaultContentLanguage = "fr" +defaultContentLanguageInSubdir = false + +theme = "hugo-bootstrap-theme" +themesdir = "./themes" + +disableHugoGeneratorInject = true +enableRobotsTXT = true +enableGitInfo = true +enableEmoji = true +#sectionPagesMenu = "main" +#googleAnalytics = "UA-1511XXXX-X" + +[frontmatter] + date = ["date", "publishDate", "lastmod"] + lastmod = ["lastmod", ":fileModTime", ":default"] + +[taxonomies] + tag = "tags" + category = "categories" + series = 'series' + author = "authors" + +[sitemap] + changefreq = "weekly" + filename = "sitemap.xml" + priority = 0.5 + +[permalinks] +# post = "/post/:title/" + +[module] + [module.hugoVersion] + extended = true + min = "0.99.1" + max = "" + [[module.mounts]] + source = "assets" + target = "assets" + [[module.mounts]] + source = "static" + target = "static" \ No newline at end of file diff --git a/config/_default/languages.toml b/config/_default/languages.toml new file mode 100644 index 0000000..463b06e --- /dev/null +++ b/config/_default/languages.toml @@ -0,0 +1,13 @@ +[fr] + languageName = "Français" + languageCode = "fr-FR" + weight = 10 + [fr.params] + languageISO = "FR" + +[en] + languageName = "English" + languageCode = "en-US" + weight = 20 + [en.params] + languageISO = "EN" \ No newline at end of file diff --git a/config/_default/markup.toml b/config/_default/markup.toml new file mode 100644 index 0000000..6e1c4e3 --- /dev/null +++ b/config/_default/markup.toml @@ -0,0 +1,29 @@ +defaultMarkdownHandler = "goldmark" + +[goldmark] + + [goldmark.extensions] + definitionList = true + footnote = true + linkify = true + strikethrough = true + table = true + taskList = true + typographer = true + + [goldmark.parser] + autoHeadingID = true + + [goldmark.parser.attribute] + block = true + title = true + + [goldmark.renderer] + hardWraps = false + unsafe = true + xHTML = false + +[tableOfContents] + endLevel = 3 + ordered = false + startLevel = 2 \ No newline at end of file diff --git a/config/_default/menus/menu.fr.toml b/config/_default/menus/menu.fr.toml new file mode 100644 index 0000000..cd953f5 --- /dev/null +++ b/config/_default/menus/menu.fr.toml @@ -0,0 +1,50 @@ +[[main]] +name = "Home" +url = "" +weight = 10 + +[[main]] +name = "A propos" +url = "about.fr" +weight = 20 + +[[main]] +identifier = "blog" +name = "Blog" +weight = 40 + +[[main]] +name = "All" +url = "post" +weight = 100 +parent = "blog" + +[[main]] +name = "Hugo" +url = "tags/hugo" +weight = 20 +parent = "blog" + +[[main]] +name = "Bootstrap" +url = "tags/bootstrap" +weight = 30 +parent = "blog" + +[[main]] +identifier = "docs" +name = "Docs" +url = "page" +weight = 50 + +[[social]] + name = "GitHub" + pre = "" + url = "https://github.com/filipecarneiro/hugo-bootstrap-theme/" + weight = 10 + +[[social]] + name = "Twitter" + pre = "" + url = "https://twitter.com/jfilipecarneiro/" + weight = 20 \ No newline at end of file diff --git a/config/_default/menus/menus.en.toml b/config/_default/menus/menus.en.toml new file mode 100644 index 0000000..82f08e8 --- /dev/null +++ b/config/_default/menus/menus.en.toml @@ -0,0 +1,50 @@ +[[main]] +name = "Home" +url = "" +weight = 10 + +[[main]] +name = "About" +url = "about" +weight = 20 + +[[main]] +identifier = "blog" +name = "Blog" +weight = 40 + +[[main]] +name = "All" +url = "post" +weight = 100 +parent = "blog" + +[[main]] +name = "Hugo" +url = "tags/hugo" +weight = 20 +parent = "blog" + +[[main]] +name = "Bootstrap" +url = "tags/bootstrap" +weight = 30 +parent = "blog" + +[[main]] +identifier = "docs" +name = "Docs" +url = "page" +weight = 50 + +[[social]] + name = "GitHub" + pre = "" + url = "https://github.com/filipecarneiro/hugo-bootstrap-theme/" + weight = 10 + +[[social]] + name = "Twitter" + pre = "" + url = "https://twitter.com/jfilipecarneiro/" + weight = 20 \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml new file mode 100644 index 0000000..68d5574 --- /dev/null +++ b/config/_default/params.toml @@ -0,0 +1,30 @@ +# Site Params + +# Open Graph, Twitter Cards and schema.org Thing and Article (in posts) +# https://gohugo.io/templates/internal/#open-graph +# https://gohugo.io/templates/internal/#twitter-cards +# https://schema.org/Thing +# https://schema.org/Article +description = "Hugo theme for a secure, blazing fast and SEO-ready static website, using Bootstrap 5." +images = ['images/logo.svg','images/site-feature-image.png'] +mainMenuLogo = "images/logo.svg" + +# For favicons +## Chrome Browser +themeColor = "#fff" + +# Alert +alert = false +alertDismissable = true +alertText = "Introducing this new service! Check out Total Security" + +# Pre-footer +footerAbout = true +footerAboutTitle = "Few Words About Us" +footerAboutText = "We protect your website so you can provide a safe environment to build trust and improve the user experience of your visitors.

Salvus Site is the partner that you can rely on for preventive and reactive cybersecurity." + +[options] + bootStrapJs = true + breadCrumb = true + listCategoryFilter = true + listTagFilter = true \ No newline at end of file diff --git a/content/about.en.md b/content/about.en.md new file mode 100644 index 0000000..d258977 --- /dev/null +++ b/content/about.en.md @@ -0,0 +1,8 @@ +--- +title: "About" +draft: false +--- + +# About this site + +Lorem ipsum dolor sic amet. diff --git a/content/about.fr.md b/content/about.fr.md new file mode 100644 index 0000000..fcd5a01 --- /dev/null +++ b/content/about.fr.md @@ -0,0 +1,8 @@ +--- +title: "A propos" +draft: false +--- + +# A propos de ce site + +Lorem ipsum dolor sic amet. diff --git a/content/authors/_index.md b/content/authors/_index.md new file mode 100644 index 0000000..b88fc1e --- /dev/null +++ b/content/authors/_index.md @@ -0,0 +1,5 @@ +--- +title: Yannick Barbel +--- + +Yannick Barbel diff --git a/content/page/_index.md b/content/page/_index.md new file mode 100644 index 0000000..779b6ba --- /dev/null +++ b/content/page/_index.md @@ -0,0 +1,6 @@ ++++ +aliases = ["pages", "docs"] +title = "Docs" +authors = ["Filipe Carneiro"] +tags = ["index"] ++++ \ No newline at end of file diff --git a/content/post/_index.md b/content/post/_index.md new file mode 100644 index 0000000..983063b --- /dev/null +++ b/content/post/_index.md @@ -0,0 +1,6 @@ ++++ +aliases = ["posts", "blog"] +title = "Articles" +authors = ["Yannick Barbel"] +tags = ["index"] ++++ \ No newline at end of file diff --git a/themes/hugo-bootstrap-theme b/themes/hugo-bootstrap-theme new file mode 160000 index 0000000..b9c16a2 --- /dev/null +++ b/themes/hugo-bootstrap-theme @@ -0,0 +1 @@ +Subproject commit b9c16a29ae6a38271ff1c8be5f47da6ee3246d05