diff options
Diffstat (limited to 'code/frontpage/config')
| -rw-r--r-- | code/frontpage/config/_default/config.toml | 91 | ||||
| -rw-r--r-- | code/frontpage/config/_default/languages.toml | 7 | ||||
| -rw-r--r-- | code/frontpage/config/_default/markup.toml | 29 | ||||
| -rw-r--r-- | code/frontpage/config/_default/menus/menus.en.toml | 24 | ||||
| -rw-r--r-- | code/frontpage/config/_default/params.toml | 98 | ||||
| -rw-r--r-- | code/frontpage/config/next/config.toml | 1 | ||||
| -rw-r--r-- | code/frontpage/config/postcss.config.js | 44 | ||||
| -rw-r--r-- | code/frontpage/config/production/config.toml | 2 |
8 files changed, 296 insertions, 0 deletions
diff --git a/code/frontpage/config/_default/config.toml b/code/frontpage/config/_default/config.toml new file mode 100644 index 0000000..20881f8 --- /dev/null +++ b/code/frontpage/config/_default/config.toml @@ -0,0 +1,91 @@ +baseurl = "https://greatoffice.life" +canonifyURLs = false +disableAliases = true +disableHugoGeneratorInject = true +enableEmoji = false +enableGitInfo = false +enableRobotsTXT = true +paginate = 7 +rssLimit = 10 + +# Multilingual +defaultContentLanguage = "en" +disableLanguages = ["de", "nl"] +# defaultContentLanguageInSubdir = true + +# add redirects/headers +[outputs] +home = ["HTML", "RSS"] +section = ["HTML", "RSS", "SITEMAP"] + +# add output format for section sitemap.xml +[outputFormats.SITEMAP] +mediaType = "application/xml" +baseName = "sitemap" +isHTML = false +isPlainText = true +noUgly = true +rel = "sitemap" + +[caches] + [caches.getjson] + dir = ":cacheDir/:project" + maxAge = "10s" + +[sitemap] + changefreq = "weekly" + filename = "sitemap.xml" + priority = 0.5 + +[taxonomies] + contributor = "contributors" + category = "categories" + tag = "tags" + +[permalinks] + blog = "/blog/:title/" +# docs = "/docs/1.0/:sections[1:]/:title/" + +[minify.tdewolff.html] + keepWhitespace = false + +[related] + threshold = 80 + includeNewer = true + toLower = false + [[related.indices]] + name = "categories" + weight = 100 + [[related.indices]] + name = "tags" + weight = 80 + [[related.indices]] + name = "date" + weight = 10 + +[module] + [module.hugoVersion] + extended = true + min = "0.80.0" + max = "" + [[module.mounts]] + source = "assets" + target = "assets" + [[module.mounts]] + source = "static" + target = "static" + [[module.mounts]] + source = "layouts" + target = "layouts" + [[module.mounts]] + source = "node_modules/flexsearch" + target = "assets/js/vendor/flexsearch" + [[module.mounts]] + source = "node_modules/katex" + target = "assets/js/vendor/katex" + [[module.mounts]] + source = "node_modules/mermaid" + target = "assets/js/vendor/mermaid" + [[module.mounts]] + source = "node_modules/@hyas/images/layouts" + target = "layouts" diff --git a/code/frontpage/config/_default/languages.toml b/code/frontpage/config/_default/languages.toml new file mode 100644 index 0000000..3866f83 --- /dev/null +++ b/code/frontpage/config/_default/languages.toml @@ -0,0 +1,7 @@ +[en] + languageName = "English" + contentDir = "content/en" + weight = 10 + [en.params] + languageISO = "EN" + languageTag = "en-US"
\ No newline at end of file diff --git a/code/frontpage/config/_default/markup.toml b/code/frontpage/config/_default/markup.toml new file mode 100644 index 0000000..2880e30 --- /dev/null +++ b/code/frontpage/config/_default/markup.toml @@ -0,0 +1,29 @@ +defaultMarkdownHandler = "goldmark" + +[goldmark] + [goldmark.extensions] + linkify = false + [goldmark.parser] + autoHeadingID = true + autoHeadingIDType = "github" + [goldmark.parser.attribute] + block = true + title = true + [goldmark.renderer] + unsafe = true + +[highlight] + codeFences = false + guessSyntax = false + hl_Lines = "" + lineNoStart = 1 + lineNos = false + lineNumbersInTable = true + noClasses = false + style = "dracula" + tabWidth = 4 + +[tableOfContents] + endLevel = 3 + ordered = false + startLevel = 2 diff --git a/code/frontpage/config/_default/menus/menus.en.toml b/code/frontpage/config/_default/menus/menus.en.toml new file mode 100644 index 0000000..59e8fbb --- /dev/null +++ b/code/frontpage/config/_default/menus/menus.en.toml @@ -0,0 +1,24 @@ +[[main]] + name = "Docs" + url = "/docs/" + weight = 10 + +[[main]] + name = "Contact" + url = "/contact/" + weight = 20 + +[[main]] + name = "Open app" + url = "https://stage.greatoffice.app" + weight = 30 + +[[footer]] + name = "Privacy" + url = "/privacy/" + weight = 10 + +[[footer]] + name = "Terms of service" + url = "/terms/" + weight = 10
\ No newline at end of file diff --git a/code/frontpage/config/_default/params.toml b/code/frontpage/config/_default/params.toml new file mode 100644 index 0000000..476fe7e --- /dev/null +++ b/code/frontpage/config/_default/params.toml @@ -0,0 +1,98 @@ +# Meta Data for SEO + +## Homepage +title = "Greatoffice" +titleSeparator = "-" +titleAddition = "Great" +description = "Greatoffice is a set of tools you can use to manage your business." + +## Documentation +# docsVersion = "0.3" + +## Open Graph +#images = [""] +ogLocale = "en_US" +domainTLD = "greatoffice.life" +titleHome = "Greatoffice" + +## Twitter Cards +#twitterSite = "@greatoffice" +#twitterCreator = "@greatoffice" + +## JSON-LD +# schemaType = "Person" +schemaType = "Organization" +schemaName = "Greatoffice" +schemaAuthor = "Greatoffice" +#schemaAuthorTwitter = "https://twitter.com/greatoffice" +#schemaAuthorLinkedIn = "https://www.linkedin.com/in/ivar-lovlie/" +#schemaAuthorGitHub = "https://github.com/h-enk" +schemaLocale = "en-GB" +#schemaLogo = "" +#schemaLogoWidth = 512 +#schemaLogoHeight = 512 +#schemaImage = "" +#schemaImageWidth = 1280 +#schemaImageHeight = 640 +#schemaTwitter = "https://twitter.com/" +#schemaLinkedIn = "" +#schemaGitHub = "https://github.com/h-enk/doks" +#schemaSection = "blog" + +## Sitelinks Search Box +siteLinksSearchBox = true + +## Chrome Browser +themeColor = "#fff" + +# Images +quality = 85 +bgColor = "#fff" +landscapePhotoWidths = [900, 800, 700, 600, 500] +portraitPhotoWidths = [800, 700, 600, 500] +lqipWidth = "20x" +smallLimit = "300" + +# Images +imageResponsive = true +imageConvertTo = "webp" +imageImageSizes = ["480", "720", "1080", "1280", "1600", "2048"] +singleSize = false +imageAddClass = "img-fluid lazyload" + +### Image template +#defaultImage = "default-image.png" # put in `./assets/images/` +#fillImage = "1270x740 Center" # normalize image size + +# Footer +footer = "This site is created with <a class=\"text-muted\" href=\"https://gohugo.io/\">Hugo</a> and <a class=\"text-muted\" href=\"https://getdoks.org/\">Doks</a>" + +# Feed +copyRight = "Copyright (c) I2R" + +[sections] +sectionNav = ["docs"] + +[options] +lazySizes = true +clipBoard = true +instantPage = true +flexSearch = false +searchSectionsShow = [] +searchSectionsIndex = [] +darkMode = true +bootStrapJs = true +breadCrumb = true +highLight = false +kaTex = false +multilingualMode = false +docsVersioning = false +fullWidth = true +navbarSticky = true +toTopButton = true +scrollSpy = false # experimental; needs Bootstrap >= 5.2.0-beta1 + +[menu] +[menu.section] +auto = true +collapsibleSidebar = true diff --git a/code/frontpage/config/next/config.toml b/code/frontpage/config/next/config.toml new file mode 100644 index 0000000..9c5e90d --- /dev/null +++ b/code/frontpage/config/next/config.toml @@ -0,0 +1 @@ +canonifyURLs = false diff --git a/code/frontpage/config/postcss.config.js b/code/frontpage/config/postcss.config.js new file mode 100644 index 0000000..3e0eff8 --- /dev/null +++ b/code/frontpage/config/postcss.config.js @@ -0,0 +1,44 @@ +const autoprefixer = require('autoprefixer'); +const purgecss = require('@fullhuman/postcss-purgecss'); +const whitelister = require('purgecss-whitelister'); + +module.exports = { + plugins: [ + autoprefixer(), + purgecss({ + content: [ + './layouts/**/*.html', + './content/**/*.md', + ], + safelist: [ + 'lazyloaded', + 'table', + 'thead', + 'tbody', + 'tr', + 'th', + 'td', + 'h5', + 'alert-link', + 'container-xxl', + 'container-fluid', + 'offcanvas-backdrop', + 'img-fluid', + 'lazyload', + 'blur-up', + 'figcaption', + ...whitelister([ + './assets/scss/components/_alerts.scss', + './assets/scss/components/_buttons.scss', + './assets/scss/components/_code.scss', + './assets/scss/components/_diagrams.scss', + './assets/scss/components/_syntax.scss', + './assets/scss/components/_search.scss', + './assets/scss/common/_dark.scss', + './node_modules/bootstrap/scss/_dropdown.scss', + './node_modules/katex/dist/katex.css', + ]), + ], + }), + ], +} diff --git a/code/frontpage/config/production/config.toml b/code/frontpage/config/production/config.toml new file mode 100644 index 0000000..2dcfde1 --- /dev/null +++ b/code/frontpage/config/production/config.toml @@ -0,0 +1,2 @@ +canonifyURLs = false +baseURL = "https://greatoffice.life"
\ No newline at end of file |
