Matt Baer
17f7bc1bec
Move user navigation to its own template section
...
Ref T681
2019-08-06 09:15:05 -04:00
Matt Baer
1d25784d20
Add `bare` editor option
...
This adds a new editor template that strips away most of the
customization features in the default editor and includes only:
- publishing
- editing
- viewing word count
It also restricts publishing to a user's first collection, so it's
optimized for instances that only allow users to have a single
collection and don't use Drafts.
Ref T680 T677
2019-08-05 09:54:05 -04:00
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.
2019-08-05 09:34:47 -04:00
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
2019-08-05 09:27:51 -04:00
Matt Baer
f6a7dfacb9
Add editor config option
...
Ref T677
2019-08-04 22:20:30 -04:00
Matt Baer
740282b7b7
Merge pull request #147 from writeas/support-audio
...
Support <audio> element
2019-08-02 22:38:56 -04:00
Matt Baer
3321c750ac
Merge pull request #142 from writeas/autocert
...
Automatic certificates from Let's Encrypt
Resolves T542
2019-08-01 23:12:28 -04:00
Matt Baer
6bfc441680
Merge pull request #141 from writeas/fix-sitemap-lib
...
Fix go-sitemap-generator overriding GOMAXPROCs
2019-08-01 21:18:48 -04:00
Rob Loranger
dd2a5840ec
fix mistake with images in sitemap
2019-08-01 18:13:04 -07:00
Rob Loranger
f02a241213
get image sitemap working
...
changed to use stm.URL for imgs for readability
fixed error in append statement
reordered import statements
2019-08-01 08:25:22 -07:00
Matt Baer
b0d70d9bdb
Support <audio> element
...
This whitelists the HTML5 <audio> element and adds some basic style to
make it look nice.
2019-07-25 22:54:11 -04:00
Matt Baer
ba3cb4b4ff
Merge pull request #138 from writeas/fix-unpublished-state
...
Don't consider post unpublished when title exists
2019-07-21 11:35:16 -04:00
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
2019-07-20 21:46:10 -04:00
Matt Baer
3346e735d3
Fix autocert insecure server redirect
...
This fixes certificate validation, while keeping HTTP -> HTTPS
redirection.
Ref T542
2019-07-20 21:38:02 -04:00
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
2019-07-20 21:37:27 -04:00
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
2019-07-20 20:49:20 -04:00
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
2019-07-20 19:47:13 -04:00
Matt Baer
22c1fabbcb
Merge pull request #137 from writeas/fix-long-slugs-chinese
...
Prevent transliterated slugs exceeding length limit
2019-07-18 14:32:06 -04:00
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
2019-07-14 12:59:33 -04:00
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
2019-07-11 09:18:39 -04:00
Matt Baer
71fb63580a
Merge branch 'master' into develop
2019-07-08 08:57:05 -04:00
Matt Baer
e0666baa5d
Include ARMv7 build in `make release`
...
This closes #135
2019-07-08 08:56:25 -04:00
Matt Baer
0b25109a6b
Add `make build-arm7`
...
This makes it easy to build WF for ARMv7, e.g. the Raspberry Pi.
part of #135
2019-07-08 08:55:22 -04:00
Matt Baer
3b079810bb
Accept Apper in writefreely.ResetPassword()
...
instead of *App
2019-07-03 14:39:43 -04:00
Matt Baer
79cf6ce0eb
Accept Apper in writefreely.Migrate()
...
instead of *App
2019-07-03 14:39:05 -04:00
Matt Baer
3faa2def08
Add Documentation section and fix dev setup link
2019-07-02 11:41:43 -04:00
Matt Baer
5923b6401c
Replace old "quick start" section with Getting Started link
2019-07-02 11:02:54 -04:00
Matt Baer
ad6fd5e809
Use "Draft" in post meta page
...
instead of "Anonymous".
2019-07-01 19:59:52 -04:00
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.
2019-07-01 19:56:50 -04:00
Matt Baer
7aaff778da
Merge pull request #123 from writeas/private-instance
...
Private instances
Resolves T576
2019-07-01 19:14:20 -04:00
Matt Baer
7240bf0cdc
Merge pull request #131 from writeas/customize-landing
...
Customize landing page
Resolves T565
2019-07-01 19:12:58 -04:00
Matt Baer
bd180f56a8
Add comments about isRaw logic
2019-07-01 19:10:29 -04:00
Matt Baer
fdcdfe4d25
Open landing page preview in new window
2019-07-01 19:05:47 -04:00
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.
2019-07-01 16:45:35 -04:00
Matt Baer
5757407994
Bump version to 0.10.0
2019-07-01 15:20:29 -04:00
Matt Baer
18bafadc43
Merge pull request #127 from writeas/shorter-config-process
...
Shorter config process
2019-07-01 14:15:41 -04:00
Matt Baer
b8b15c8550
Move Environment prompt back under Server section
2019-07-01 14:00:56 -04:00
Matt Baer
a740c67495
Fix whitespace
...
This runs `go fmt` on changed files and moves around some blank lines.
2019-07-01 13:33:26 -04:00
Matt Baer
ebeb7b03e6
Explicitly set background-color
...
Closes #132
2019-06-28 08:26:15 -04:00
Matt Baer
c3f3eb0a65
Rename getLandingPage -> getLandingBody
...
This makes the naming scheme more consistent with other funcs.
Ref T565
2019-06-27 22:22:21 -04:00
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
2019-06-27 17:06:37 -04:00
Matt Baer
aedb05080c
Support ?landing=1 to always show landing page
...
This supports admins previewing changes to the landing page.
Ref T565
2019-06-27 16:38:24 -04:00
Matt Baer
6fdc343986
Merge pull request #130 from mrvdb/issue125
...
Construct version from annotated tags only
2019-06-27 15:32:14 -04:00
Marcel van der Boom
f6c129ed20
Construct version from annotated tags only
...
Fixes issue 125
2019-06-27 21:25:22 +02:00
Matt Baer
f26e0ca86e
Merge pull request #128 from writeas/fix-c-syntax-highlighting
...
Fix #124 according to the snippet by @mrvdb
2019-06-27 15:07:04 -04:00
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 )
2019-06-27 18:15:58 +03:00
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.
2019-06-27 18:15:58 +03:00
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.
2019-06-27 18:15:58 +03:00
Matt Baer
bb0be02b4f
Merge pull request #126 from writeas/config-improvements
...
Always initialize database after --config
2019-06-27 09:31:58 -04:00
Matt Baer
00a8f8c951
Merge pull request #119 from qwazix/develop
...
Half-fix of #96
2019-06-27 09:29:25 -04:00