diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..aa81b09 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,8 @@ +[submodule "website/readme-in-static-site"] + path = website/readme-in-static-site + url = https://github.com/cljoly/readme-in-static-site.git + branch = main +[submodule "website/themes/beautifulhugo"] + path = website/themes/beautifulhugo + url = https://github.com/halogenica/beautifulhugo.git + branch = master diff --git a/README.md b/README.md index b98d62e..660c115 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,14 @@ + + + # Hugo APT Repository + An unofficial [APT][] repository that contains the latest [Hugo][] for [Debian][], [Ubuntu][], and other [Debian derivatives][]. diff --git a/website/.gitignore b/website/.gitignore new file mode 100644 index 0000000..ba09ad2 --- /dev/null +++ b/website/.gitignore @@ -0,0 +1,4 @@ +/public +/.hugo_build.lock +/resources +/content/_index.md diff --git a/website/README.md b/website/README.md new file mode 100644 index 0000000..236e00a --- /dev/null +++ b/website/README.md @@ -0,0 +1,3 @@ +# Website + +To build the website, run `./build_site.sh`, followed by any [Hugo CLI options](https://gohugo.io/commands/hugo/). diff --git a/website/build_site.sh b/website/build_site.sh new file mode 100755 index 0000000..de2730e --- /dev/null +++ b/website/build_site.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +awk -f readme-in-static-site/riss.awk ../README.md > content/_index.md && hugo "$@" diff --git a/website/hugo.toml b/website/hugo.toml new file mode 100644 index 0000000..fb015a1 --- /dev/null +++ b/website/hugo.toml @@ -0,0 +1,43 @@ +baseurl = "https://hugo-apt.8hob.io" +DefaultContentLanguage = "en" +title = "Hugo APT Repository" +theme = "beautifulhugo" +pygmentsStyle = "trac" +pygmentsUseClasses = true +pygmentsCodeFences = true +pygmentsCodefencesGuessSyntax = true +disableKinds = ['rss', 'taxonomy'] +enableGitInfo = true + +[Params] + homeTitle = "Hugo APT Repository" # Set a different text for the header on the home page + # subtitle = "Build a beautiful and simple website in minutes" + mainSections = ["post","posts"] + # logo = "img/avatar-icon.png" # Expecting square dimensions + # favicon = "img/favicon.ico" + dateFormat = "January 2, 2006" + commit = true + rss = false + comments = false + readingTime = false + wordCount = false + useHLJS = false + socialShare = true + delayDisqus = true + showRelatedPosts = true + +[Author] + # Set only your "username" for default hosts and full URLs otherwise (e.g., "https://MyGitLab.org/username") + name = "8 Hobbies" + website = "https://8hob.io" + github = "8hobbies/hugo-apt" + gitlab = "8hobbies/hugo-apt" + +[minify] + disableCSS = false + disableHTML = false + disableJS = false + disableJSON = false + disableSVG = false + disableXML = false + minifyOutput = true diff --git a/website/layouts/partials/head_custom.html b/website/layouts/partials/head_custom.html new file mode 100644 index 0000000..bdc7fe2 --- /dev/null +++ b/website/layouts/partials/head_custom.html @@ -0,0 +1 @@ + diff --git a/website/readme-in-static-site b/website/readme-in-static-site new file mode 160000 index 0000000..d07c42c --- /dev/null +++ b/website/readme-in-static-site @@ -0,0 +1 @@ +Subproject commit d07c42c3c1489d6e286fb9b2e452b0cc5c3f5bb3 diff --git a/website/themes/beautifulhugo b/website/themes/beautifulhugo new file mode 160000 index 0000000..6b650c3 --- /dev/null +++ b/website/themes/beautifulhugo @@ -0,0 +1 @@ +Subproject commit 6b650c38c80b352458f116c63ea9c5811cd4d8d4