Commit graph

328 commits

Author SHA1 Message Date
Matt Baer
51ac06a51b Move Docker instructions to writefreely/documentation 2019-04-11 20:44:44 -04:00
Matt Baer
07ab0cdb9c Add invites flag in NodeInfo
This indicates whether or not invites are enabled on this instance. It
requires an upgrade to writefreely/go-nodeinfo v1.2.0
2019-04-11 20:37:01 -04:00
Matt Baer
9cb0f80921 Support changing instance page titles
Now admins can choose a title for their About and Privacy pages; now
editable through the instance page editor.

This adds `title` and `content_type` fields to the `appcontent` table,
requiring a migration by running `writefreely --migrate`

The content_type field specifies that items we're currently storing in
this table are all "page"s; queries for fetching these have been updated
to filter for this type. In the future, this field will be used to
indicate when an item is a stylesheet (ref T563) or other supported
type.

Ref T566
2019-04-11 13:56:07 -04:00
Matt Baer
4cad074b44 Link to version-specific writer's guide 2019-04-11 13:52:10 -04:00
Matt Baer
a850fa14cd Move instance page editing to dedicated section
This adds a "Pages" section to the admin part of the site, and enables
admins to edit the pre-defined About and Privacy pages there, instead of
on the dashboard itself.

It also restructures how these pages get sent around in the backend and
lays the groundwork for dynamically adding static pages. The backend
changes were made with more customization in mind, such as an
instance-wide custom stylesheet (T563).

Ref T566
2019-04-06 13:23:22 -04:00
Matt Baer
00ed2990eb Do Travis builds without sqlite
Using xgo comes with its own gomod-related issues. So let's see if this
fixes the build issue mentioned in the previous commit.
2019-04-06 11:46:27 -04:00
Matt Baer
c7a4955840 Do CI compile with xgo
This will hopefully fix Travis errors:

/home/travis/.gimme/versions/go1.11.7.linux.amd64/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/usr/bin/ld: /tmp/go-link-810454258/000020.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
2019-04-06 11:28:43 -04:00
Matt Baer
09fb73bdd5 Standardize admin navigation 2019-04-06 11:15:14 -04:00
Matt Baer
45b01c041b Don't install packages in make deps
This fixes an error: undefined: Asset
2019-04-06 10:50:22 -04:00
Matt Baer
8a9ef513fa Fix go-bindata error in Travis build
Based on @sheenobu's work on #58
2019-04-06 10:45:19 -04:00
Matt Baer
24b193df96 Bump Travis Go version to 1.11 2019-04-06 10:22:42 -04:00
Matt Baer
4af9fa66aa Don't federate scheduled posts upon claiming
Previously, moving an anonymous post to a blog would instantly federate
the post, regardless of its `created` date. This now respects that value
and doesn't federate the post if its `created` date is in the future.

This is the first part of supporting scheduled, federated posts (ref T567)
but technically fixes #76.
2019-04-05 18:50:18 -04:00
Matt Baer
5a0a3ce451
Merge pull request #78 from mrvdb/apple-icons
Add touch icons
2019-03-24 17:42:56 -05:00
Matt Baer
be0df11653 Use WF "w" for touch icons
(instead of the Write.as "w")
2019-03-24 17:38:46 -05:00
Matt Baer
b7d07e2037 Automatically assign "bug?" label to bug reports 2019-03-14 09:43:48 -04:00
Matt Baer
54edb2562d Strip HTML from post summary
This removes HTML, in addition to the Markdown stripping that was
already happening.

This fixes #83
2019-03-14 08:59:59 -04:00
Matt Baer
2f683e783e
Merge pull request #81 from mrvdb/codehighlight
Resolve an edge case where last language has error
2019-03-06 14:22:53 -05:00
Matt Baer
3d30a09695 Fix IsValidUsername check when PagesParentDir isn't current dir
Previously, this check would only work if there was a pages/ dir in the
current working directory. Now it respects the pages_parent_dir
configuration setting.
2019-03-06 10:44:32 -05:00
Marcel van der Boom
f40ce14fb2 Resolve an edge case where last language has error
If there are multiple language blocks on a page, we set the
onload on the last one to load all highlighting at once.

If the last language block has an error, the onload would
never fire and thus all blocks would not be highlighted.

The simplest resolution is to fire the callback regardless. We've
already loaded everything so running the callback is not causing any
performance hit which is relevant I think.
2019-03-05 14:36:40 +01:00
Matt Baer
372b4e5dcd Fix nil pointer when navigating to bad invite URL
Previously when looking up an invite ID that doesn't exist, the database
call wouldn't communicate its non-existence in a standard way --
returning a nil object and nil error. Now the database call returns a
404 error, so handlers can show the correct page.
2019-02-27 06:15:42 -05:00
Matt Baer
99489aa920 Change zip link to txt on Export page
"zip" doesn't really describe what the posts themselves are exported as.
"txt" does.
2019-02-25 15:49:11 -05:00
Marcel van der Boom
c8ea346d16 Add touch icons
These were missing.
2019-02-19 11:49:33 +01:00
Matt Baer
16c856ec27 Merge branch 'readme-downloads' 2019-02-11 10:54:14 -05:00
Matt Baer
e20827ac3b Rearrange README badges
and remove IRC link
2019-02-11 10:53:35 -05:00
Matt Baer
2cee0dee2a Support Go modules 2019-02-11 10:30:31 -05:00
Matt Baer
32e99d0041 Fix hashes in code blocks rendered as hashtags
Previously, our hashtag parser would indiscriminately replace
hashtag-like text with hashtag HTML -- including in places it shouldn't
have, like inside code blocks. Along with the v1.7.0 changes to
writeas/saturday, this fixes that and closes #6.

As a bonus, strings of #spaceless#hashtags#in#a#row are now rendered
correctly.
2019-02-04 17:50:37 +01:00
Matt Baer
c2436a43c5 Merge branch 'master' into develop 2019-02-04 10:14:59 +01:00
Matt Baer
a896d475e4 Clean up resource URLs on collection-tags template
This included files.writeas.org paths and other Write.as-specific logic.
2019-02-04 10:12:38 +01:00
Matt Baer
e5a00e00f5 Bump version to 0.8.1 2019-02-01 15:10:20 +01:00
Matt Baer
ee6046bdbf
Merge pull request #43 from mrvdb/hashlink
Hashtag linking improvements
2019-02-01 14:39:01 +01:00
Matt Baer
88e7cea28b Set PublicReader value in nodeinfo 2019-01-29 19:07:12 -05:00
Matt Baer
261a6fefd6 Merge branch 'master' into develop 2019-01-27 14:54:50 -05:00
Matt Baer
02054aae18 Link to documentation repo 2019-01-26 21:25:38 -05:00
Matt Baer
ef40c50920 Link to tutorials on some features
Also, add static pages
2019-01-26 11:59:02 -05:00
Matt Baer
e1cd11df20 Update go get instructions
Including the `-d` flag ensures the package doesn't build. We need this
because it will immediately fail, since the static assets haven't been
compiled yet.
2019-01-26 11:13:36 -05:00
Matt Baer
cd752858b7 Fix --create-user usage error message 2019-01-26 11:11:17 -05:00
Matt Baer
c11ede53d9 Return error from adminCreateUser()
...instead of using os.Exit(). This makes it more apparent what's going
on, less error-prone, and more consistent with other command logic paths.
2019-01-26 11:06:58 -05:00
Matt Baer
08667d8978 Return error from adminInitDatabase()
...instead of doing os.Exit(). This allows the func to be used in many
places (as it is) and handle success results in different ways.

Previously, this caused the single-user configuration process to exit
prematurely. This fixes that and closes #71.
2019-01-26 10:52:11 -05:00
Matt Baer
47d18b2cc4 Merge branch 'master' into develop 2019-01-24 21:11:47 -05:00
Matt Baer
9c6e7eda65 Fix Write.as pricing link 2019-01-24 21:11:04 -05:00
Matt Baer
e682824be5 Add @nkoehring to AUTHORS 2019-01-24 17:24:07 -05:00
Matt Baer
ed5c4ec8b1
Merge pull request #65 from nkoehring/optimize-webfont-loading
use font-display:optional to optimize web font loading
2019-01-24 17:22:56 -05:00
Matt Baer
8b94418d3f Bump version to 0.8.0 2019-01-24 17:10:09 -05:00
Matt Baer
73ca34bb21 Ignore all .ini files 2019-01-24 17:09:48 -05:00
Matt Baer
3a6118c207 Set up migrations table on initial setup
This includes the appmigrations table in the schema files, and inserts
the current database version when running writefreely --init-db
2019-01-24 17:08:08 -05:00
Matt Baer
5e686a5b0f Update import schema step
Note the step is only required for multi-user instances.
2019-01-24 16:38:28 -05:00
Matt Baer
b91c931ebd Tweak links at top of README 2019-01-24 16:36:58 -05:00
Matt Baer
53dfe4d215 Add Hosting section to README 2019-01-24 16:35:04 -05:00
Matt Baer
e853a15303
Merge pull request #68 from writeas/user-invites
Support user invites
2019-01-23 13:02:16 -05:00
Matt Baer
eb8f56a6e2 Merge branch 'master' into develop 2019-01-20 17:16:17 -05:00