Matt Baer
d944d461e5
Send new user to pad with SimpleNav
...
Previously, they would've been dropped onto the Blogs page.
Ref T680
5 years ago
Matt Baer
90ad50c7f5
Use normal nav on user pages when SimpleNav
...
This shows About, Reader, Log out links on backend user pages when
logged in. It also adds "New post" buttons on the backend pages and
blogs.
5 years ago
Matt Baer
81847fbbcc
Land on Blogs page when SimpleNav is enabled
...
This shows the Blogs page instead of the Editor to logged in users on
the `/` path when the new `simple_nav` config option is enabled.
Ref T680
5 years ago
Matt Baer
f6a7dfacb9
Add editor config option
...
Ref T677
5 years ago
Matt Baer
740282b7b7
Merge pull request #147 from writeas/support-audio
...
Support <audio> element
5 years ago
Matt Baer
3321c750ac
Merge pull request #142 from writeas/autocert
...
Automatic certificates from Let's Encrypt
Resolves T542
5 years ago
Matt Baer
6bfc441680
Merge pull request #141 from writeas/fix-sitemap-lib
...
Fix go-sitemap-generator overriding GOMAXPROCs
5 years ago
Rob Loranger
dd2a5840ec
fix mistake with images in sitemap
5 years ago
Rob Loranger
f02a241213
get image sitemap working
...
changed to use stm.URL for imgs for readability
fixed error in append statement
reordered import statements
5 years ago
Matt Baer
b0d70d9bdb
Support <audio> element
...
This whitelists the HTML5 <audio> element and adds some basic style to
make it look nice.
5 years ago
Matt Baer
ba3cb4b4ff
Merge pull request #138 from writeas/fix-unpublished-state
...
Don't consider post unpublished when title exists
5 years ago
Matt Baer
1f7a0f0122
Add option for automated cert in config process
...
This adds a new "Secure (port 443), auto certificate" option to the "Web
server mode" prompt when running `writefreely --config`. When chosen,
it'll set `autocert` to `true` and set the path for certs and keys to
`certs`.
Ref T542
5 years ago
Matt Baer
3346e735d3
Fix autocert insecure server redirect
...
This fixes certificate validation, while keeping HTTP -> HTTPS
redirection.
Ref T542
5 years ago
Matt Baer
42386beabc
Fix autocert HostPolicy
...
Previously, this would pass in the instance's full (and invalid) URL.
Now it passes only the host name.
Ref T542
5 years ago
Matt Baer
36fb7ecb2b
Support automatically generated certificates
...
This adds a new config option in the `[server]` section: `autocert`.
When true, WF will automatically generate certificates instead of using
ones from the provided cert path. However, all generated certificates
will be stored in the configured `tls_cert_path`.
Ref T542
5 years ago
Matt Baer
41062728f5
Fix go-sitemap-generator overriding GOMAXPROCs
...
This upgrades the library to v2, which lets you specify that GOMAXPROCs
should always be the max number of CPUs -- and then sets it to that.
One side effect of this is that images are no longer listed in sitemaps.
I'm somehow at a loss on how to build and append the images array we
need, with the library's latest changes.
Fixes #86
5 years ago
Matt Baer
22c1fabbcb
Merge pull request #137 from writeas/fix-long-slugs-chinese
...
Prevent transliterated slugs exceeding length limit
5 years ago
Matt Baer
909976dd90
Don't consider post unpublished when title exists
...
Previously, you could create a post with a title but no body, e.g. by
publishing via email. This would still show the post on a blog, but
would give a 410 Gone page when trying to access the page.
This issue originally reported on the forum:
https://discuss.write.as/t/removing-post-unpublished-by-author-post/725
5 years ago
Matt Baer
31b521c11c
Prevent transliterated slugs exceeding limit
...
Transliteration during slug generation can cause slugs to exceed their
80-character limit. This fixes that by making a second truncation pass
on the slug during generation.
Originally reported on the forum:
https://discuss.write.as/t/title-convert-to-url-function-bug-under-chinese/723
5 years ago
Matt Baer
71fb63580a
Merge branch 'master' into develop
5 years ago
Matt Baer
e0666baa5d
Include ARMv7 build in `make release`
...
This closes #135
5 years ago
Matt Baer
0b25109a6b
Add `make build-arm7`
...
This makes it easy to build WF for ARMv7, e.g. the Raspberry Pi.
part of #135
5 years ago
Matt Baer
3b079810bb
Accept Apper in writefreely.ResetPassword()
...
instead of *App
5 years ago
Matt Baer
79cf6ce0eb
Accept Apper in writefreely.Migrate()
...
instead of *App
5 years ago
Matt Baer
3faa2def08
Add Documentation section and fix dev setup link
5 years ago
Matt Baer
5923b6401c
Replace old "quick start" section with Getting Started link
5 years ago
Matt Baer
ad6fd5e809
Use "Draft" in post meta page
...
instead of "Anonymous".
5 years ago
Matt Baer
554995916e
Replace top-left "w" button on post meta page
...
This was still a relic of Write.as. Now it has the same icon as the
WriteFreely editor.
5 years ago
Matt Baer
7aaff778da
Merge pull request #123 from writeas/private-instance
...
Private instances
Resolves T576
5 years ago
Matt Baer
7240bf0cdc
Merge pull request #131 from writeas/customize-landing
...
Customize landing page
Resolves T565
5 years ago
Matt Baer
bd180f56a8
Add comments about isRaw logic
5 years ago
Matt Baer
fdcdfe4d25
Open landing page preview in new window
5 years ago
Matt Baer
60a6848361
Fix userlevel error logging
...
Previously, we just included the value of `ul`, which is a func. This
now calls `ul()` and logs that value.
5 years ago
Matt Baer
5757407994
Bump version to 0.10.0
5 years ago
Matt Baer
18bafadc43
Merge pull request #127 from writeas/shorter-config-process
...
Shorter config process
5 years ago
Matt Baer
b8b15c8550
Move Environment prompt back under Server section
5 years ago
Matt Baer
a740c67495
Fix whitespace
...
This runs `go fmt` on changed files and moves around some blank lines.
5 years ago
Matt Baer
ebeb7b03e6
Explicitly set background-color
...
Closes #132
5 years ago
Matt Baer
c3f3eb0a65
Rename getLandingPage -> getLandingBody
...
This makes the naming scheme more consistent with other funcs.
Ref T565
5 years ago
Matt Baer
a72ce2ef29
Make landing page dynamic
...
This enables admins to customize their landing / home page via the Admin
dashboard -- including the text at the top of the page and the section
below it. It keeps the current default text, falling back to it if the
user hasn't overwritten it.
Ref T565
5 years ago
Matt Baer
aedb05080c
Support ?landing=1 to always show landing page
...
This supports admins previewing changes to the landing page.
Ref T565
5 years ago
Matt Baer
6fdc343986
Merge pull request #130 from mrvdb/issue125
...
Construct version from annotated tags only
5 years ago
Marcel van der Boom
f6c129ed20
Construct version from annotated tags only
...
Fixes issue 125
5 years ago
Matt Baer
f26e0ca86e
Merge pull request #128 from writeas/fix-c-syntax-highlighting
...
Fix #124 according to the snippet by @mrvdb
5 years ago
Michael Demetriou
4feac6dcd2
Remove `langs` list from `post-render` as it does not actually
...
do anything useful (see https://github.com/writeas/writefreely/pull/128#issuecomment-506207107 )
5 years ago
Matt Baer
8d9f60aaa9
Always initialize database after --config
...
Previously, this would only run when configuring an instance for
single-user usage. Now it'll also run when configuring for multi-user
usage.
It also adds a log when the database has already been initialized.
5 years ago
Michael Demetriou
a102f97c3e
Fix #96
...
This solves the error 500 on the /api/me endpoint.
Replace token search query `=` with `LIKE` to fix sqlite complaining about
no valid tokens. Also checked with MySQL and it still works after the change.
5 years ago
Matt Baer
bb0be02b4f
Merge pull request #126 from writeas/config-improvements
...
Always initialize database after --config
5 years ago
Matt Baer
00a8f8c951
Merge pull request #119 from qwazix/develop
...
Half-fix of #96
5 years ago
Michael Demetriou
0842119694
Change `sh` alias back to `bash`
...
because this is the alias in highlight itself.
(see https://github.com/writeas/writefreely/pull/128#issuecomment-505766645 )
5 years ago