Initial AD port
This commit is contained in:
63
themes/after-dark/docs/config/_default/config.toml
Normal file
63
themes/after-dark/docs/config/_default/config.toml
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
|
||||
#
|
||||
# This file is part of After Dark.
|
||||
#
|
||||
# After Dark is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# After Dark is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
baseurl = "https://after-dark.habd.as/" # Controls base URL sitewide
|
||||
title = "After Dark" # Homepage title and page title suffix
|
||||
paginate = 40 # Number of items to show before paginating
|
||||
copyright = "Copyright © Josh Habdas. Licensed under <a target=\"_blank\" rel=\"external noopener license\" href=\"https://www.gnu.org/licenses/agpl.html\">AGPL-3.0-or-later</a>."
|
||||
|
||||
# Controls default theme and theme components
|
||||
theme = [
|
||||
"after-dark" # AGPL-3.0-or-later
|
||||
]
|
||||
|
||||
disableLiveReload = false # Optional, set true to disable live reload
|
||||
enableRobotsTXT = true # Suggested, enable robots.txt file
|
||||
sectionPagesMenu = "main" # Enable menu system for lazy bloggers
|
||||
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true # Optional, allows HTML inside your CommonMark content
|
||||
[markup.tableOfContents]
|
||||
startLevel = 1 # Suggested, draws TOC using all heading levels
|
||||
endLevel = 6 # Suggested, draws TOC using all heading levels
|
||||
[markup.highlight]
|
||||
noClasses = false # Suggested, used for custom syntax highlighting
|
||||
|
||||
[deployment]
|
||||
order = [".mp4", ".gif$", ".png$", ".jpg$", ".bpg$", ".svg$"]
|
||||
|
||||
[[deployment.targets]]
|
||||
name = "s3-aws"
|
||||
URL = "s3://after-dark.habd.as?region=us-east-1"
|
||||
cloudFrontDistributionID = "E15C0TR21AL7CY"
|
||||
|
||||
[[deployment.matchers]]
|
||||
pattern = "^.+\\.(js|css|svg|ttf|woff|woff2|eot|png|gif|pdf)$"
|
||||
cacheControl = "max-age=630720000, no-transform, public"
|
||||
gzip = true
|
||||
|
||||
[[deployment.matchers]]
|
||||
pattern = "^.+\\.(mp4|jpg|jpeg|bpg)$"
|
||||
cacheControl = "max-age=630720000, no-transform, public" # cache static assets for 20 years
|
||||
gzip = false
|
||||
|
||||
[[deployment.matchers]]
|
||||
pattern = "^.+\\.(html|xml|json)$"
|
||||
cacheControl = "max-age=300, no-transform, public" # cache output formats for 5 minutes
|
||||
gzip = true
|
||||
25
themes/after-dark/docs/config/_default/languages.toml
Normal file
25
themes/after-dark/docs/config/_default/languages.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
|
||||
#
|
||||
# This file is part of After Dark.
|
||||
#
|
||||
# After Dark is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# After Dark is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
[en]
|
||||
languageCode = "en-US" # Controls site language
|
||||
languageName = "English"
|
||||
[id]
|
||||
languageCode = "id-ID" # Controls site language
|
||||
languageName = "Indonesia"
|
||||
49
themes/after-dark/docs/config/_default/menus.toml
Normal file
49
themes/after-dark/docs/config/_default/menus.toml
Normal file
@@ -0,0 +1,49 @@
|
||||
#
|
||||
# Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
|
||||
#
|
||||
# This file is part of After Dark.
|
||||
#
|
||||
# After Dark is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# After Dark is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
[[main]]
|
||||
name = "Overview"
|
||||
weight = 1
|
||||
identifier = "home"
|
||||
url = "/"
|
||||
[[main]]
|
||||
name = "Features"
|
||||
weight = 2
|
||||
identifier = "feature"
|
||||
url = "/feature/"
|
||||
[[main]]
|
||||
name = "Modules"
|
||||
weight = 3
|
||||
identifier = "module"
|
||||
url = "/module/"
|
||||
[[main]]
|
||||
name = "Shortcodes"
|
||||
weight = 4
|
||||
identifier = "shortcode"
|
||||
url = "/shortcode/"
|
||||
[[main]]
|
||||
name = "Extras"
|
||||
weight = 5
|
||||
identifier = "extra"
|
||||
url = "/extra/"
|
||||
[[main]]
|
||||
name = "Search"
|
||||
weight = 6
|
||||
identifier = "search"
|
||||
url = "/search/"
|
||||
20
themes/after-dark/docs/config/_default/outputs.toml
Normal file
20
themes/after-dark/docs/config/_default/outputs.toml
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
|
||||
#
|
||||
# This file is part of After Dark.
|
||||
#
|
||||
# After Dark is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# After Dark is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
home = ["HTML", "RSS", "JSON"]
|
||||
63
themes/after-dark/docs/config/_default/params.toml
Normal file
63
themes/after-dark/docs/config/_default/params.toml
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# Copyright (C) 2019 Josh Habdas <jhabdas@protonmail.com>
|
||||
#
|
||||
# This file is part of After Dark.
|
||||
#
|
||||
# After Dark is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published
|
||||
# by the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# After Dark is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
description = "After Dark is free and open-source software you can use to create a website, blog or app." # Suggested, controls default description meta
|
||||
author = "Josh Habdas" # Optional, controls author name display on posts
|
||||
hide_author = true # Optional, set true to suppress author name on posts
|
||||
has_cookies = false # Optional, set true to disable cookie disclaimer
|
||||
disable_csp = true # Optional, set true to disable content security policy
|
||||
images = [
|
||||
"https://after-dark.habd.as/images/screenshots/after-dark-v6.15.0-homepage-fs8.png"
|
||||
] # Suggested, controls default Open Graph images
|
||||
|
||||
[layout.menu.main]
|
||||
hidden = false # Optional, set false or remove to show section menu
|
||||
|
||||
[security.csp.directives]
|
||||
workerSrc = [
|
||||
"'self'",
|
||||
"blob:"
|
||||
]
|
||||
connectSrc = [
|
||||
"'self'",
|
||||
"wss:",
|
||||
"data:"
|
||||
]
|
||||
mediaSrc = [
|
||||
"https://*.habd.as"
|
||||
]
|
||||
imgSrc = [
|
||||
"'self'",
|
||||
"data:",
|
||||
"https://*.unsplash.com"
|
||||
]
|
||||
scriptSrc = [
|
||||
"'self'",
|
||||
"'unsafe-inline'",
|
||||
"'unsafe-eval'",
|
||||
"https:",
|
||||
"'sha512-2t0yyNrUdtn9WGIoBVxq5vtoJQYfoDQDbqRPpOb75f1hiL39DGLdJKDrGP60fBhXfrFeKyVhzWJvHvLgln/ElA=='",
|
||||
"'sha512-hno7WeTIciCJSjg/myjyK30HYkrcGCVwo4g4SpUalvrs3r2lS7bPNIQwbCNypKbg7BZ1sA4AsGnk6Gq4NOKpGA=='",
|
||||
"'sha512-ISTAV0GadOIz/NXXHOS+eCM0ysXVVHhQTlvA6LJxz/DeA5yIxm0Vqf5IE+WH0yuuXkayAKtoZkQ326nch5f/fg=='",
|
||||
"'sha512-/uSbYvALRP8DT0ll9zazZRCrY2NZuNudmKGLZF0AjiwYn7xJxM8dGpnaszOca4opMlgpVBgRh5tdAqxQCQ0qrA=='",
|
||||
"'strict-dynamic'"
|
||||
]
|
||||
|
||||
[seo.webmaster_verifications]
|
||||
yandex = "4006a8813cbb9fdb" # https://webmaster.yandex.com/
|
||||
Reference in New Issue
Block a user