Initial AD port

This commit is contained in:
2021-04-26 18:26:42 +01:00
parent 6911ce346b
commit 7e7773258a
408 changed files with 17799 additions and 172 deletions

View 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 &copy; 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

View 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"

View 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/"

View 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"]

View 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&#43;eCM0ysXVVHhQTlvA6LJxz/DeA5yIxm0Vqf5IE&#43;WH0yuuXkayAKtoZkQ326nch5f/fg=='",
"'sha512-/uSbYvALRP8DT0ll9zazZRCrY2NZuNudmKGLZF0AjiwYn7xJxM8dGpnaszOca4opMlgpVBgRh5tdAqxQCQ0qrA=='",
"'strict-dynamic'"
]
[seo.webmaster_verifications]
yandex = "4006a8813cbb9fdb" # https://webmaster.yandex.com/