Marcel van der Boom
8144c9581d
Use the samen render common template for user pages
6 years ago
Marcel van der Boom
7181fd9d9e
Remove code for CodeHighlighting UI
...
We load it always, no need for a user config UI
6 years ago
Marcel van der Boom
a659acdc14
Bring all MathJax logic into one common template
...
Might as well do this right away, we're here anyway.
6 years ago
Marcel van der Boom
a82882fddc
Put the highlight logic into one common template
...
It now loads unconditionally and highlights all code blocks.
TODO: optimize to not load when there are no blocks
6 years ago
Marcel van der Boom
03ac402c37
Use the same highlightjs library everywhere
6 years ago
Marcel van der Boom
ed3ea37537
Merge branch 'master' into codehighlight
...
* master:
Don't automatically include "v" from git
Get versioninfo from the git repository
6 years ago
Matt Baer
a4751c7abf
Merge pull request #32 from mrvdb/versioninfo
...
Get versioninfo from the git repository
6 years ago
Marcel van der Boom
b030921691
Don't automatically include "v" from git
...
- "v" should not be part of the version (softwareVer variable is used
in other places)
- formatting
6 years ago
Marcel van der Boom
c25d0bef67
Get versioninfo from the git repository
...
Sets value of softwareVer during build
6 years ago
Marcel van der Boom
348d548793
Add code highlighting option
...
This is a first stab at having a configurable code highlighting option,
similar to the MathJax rendering option. This change makes a checkbox
in the settings for code highlighting using the highlightjs.org
library.
What works: code highlighting in multi-user env is like I would
expect. single and anon(?) needs work
Things to resolve/consider:
- does the .IsCode test for code highlighting need to stay? At least
this and that should use the same version of the highlight.js lib.
- can the common templating part be 'included' somehow?
- the anon vs single-user vs multi-user code is not completely
clear (to me)
- bring js to local instead of cloudfare cdn (perhaps combine with
MathJax)
6 years ago
Matt Baer
87ffafeb54
Remove keys.sh from make release
6 years ago
Matt Baer
64e52ba00d
Add make release
6 years ago
Matt Baer
bdc4f270f8
Support editing About and Privacy pages from Admin panel
...
This allows admin to edit these pages from the web, using Markdown. It
also dynamically loads information on those pages now, and makes loading
`pages` templates a little easier to find in the code / more explicit.
It requires this new schema change:
CREATE TABLE IF NOT EXISTS `appcontent` (
`id` varchar(36) NOT NULL,
`content` mediumtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
This closes T533
6 years ago
Matt Baer
7d87aad55a
Add basic admin dashboard with app stats
...
Start of T538
6 years ago
Matt Baer
99a10a2563
Accept different `created` time on post publish
...
This helps with post importing and clients that want to support post
scheduling. It also changes how Collection.ForPublic() works, no longer
resetting the ID.
Closes T532
6 years ago
Matt Baer
7321f6d5a0
Upgrade Lora to v2.202 (cyrillic)
...
This fixes things like em-dashes and adds new glyphs.
6 years ago
Matt Baer
b58cb1e541
Fix Novel blog post order in feeds and outbox
6 years ago
Matt Baer
2ad2270973
Merge branch 'master' of github.com:writeas/writefreely
6 years ago
Matt Baer
093837b3a9
Fix wrong collection data in feed
...
Previously the logic was mixed up -- multi-user blogs would always load
collection number 1.
6 years ago
Matt Baer
f7cc3764d0
Merge pull request #29 from BenOvermyer/improve-docker-workflow
...
Improved the Docker dev workflow slightly.
6 years ago
Ben Overmyer
2de37a4ddb
Improved the Docker dev workflow slightly.
6 years ago
Matt Baer
ad1180f202
Bump version to 0.3
6 years ago
Matt Baer
8e6d0daa06
Federate draft when published to a blog
...
This now sends out a `Create` activity when a post is moved from a draft
to a blog.
This closes #9 . Closes T526.
6 years ago
Matt Baer
778098d925
Remove JS editor remnants
...
This was another issue mentioned in #28
6 years ago
Matt Baer
a0f8a2df3b
Fix MathJax value not sticking
...
This closes #28
6 years ago
Matt Baer
3595c8163c
Use Accept ID on blog's origin
...
instead of the requesting user's. This closes #16
6 years ago
Matt Baer
ed1b77ea3b
Support outputting version with -v flag
6 years ago
Matt Baer
58d163d2e0
Properly handle failed AP requests
6 years ago
Matt Baer
0eac9251c0
Add location to MySQL connection string
...
This should address #23
6 years ago
Matt Baer
9d42d89a27
Fix "view blog" links on customize page in single mode
...
This closes #21
6 years ago
Matt Baer
9016f87041
Add --reset-pass option for admin pass reset
...
Usage: writefreely --reset-pass <username>
This closes #25 , closes T534
6 years ago
Matt Baer
8c851545f6
Merge branch 'master' of github.com:writeas/writefreely
6 years ago
Matt Baer
6cede306b9
Merge pull request #24 from TheJF/add_dockerfile_and_docker-compose
...
Add Dockerfile and Docker Compose files
6 years ago
Jean-Francois Arseneau
5b393309a5
Add Dockerfile and Docker Compose files
...
This adds the first version of a Dockerfile, built on an Alpine Linux variation of the golang image, as well as a Docker Compose file that spins up both a MariaDB and the instance. It also updates the README with instructions on how to get Write Freely running with this setup.
6 years ago
Matt Baer
b1686b1d46
Add --init-db flag to create schema in app
...
Part of T530
6 years ago
Matt Baer
6220e55559
Provide default `updated` value
...
This addresses #18
6 years ago
Matt Baer
bf44236748
Bump version to 0.2.1
6 years ago
Matt Baer
ac3d454f22
Include default `posts`.`privacy` value on post creation
...
This closes #7
6 years ago
Matt Baer
efbba9e1ba
Reuse statement on post insert
6 years ago
Matt Baer
8a3974c27d
Merge branch 'master' of github.com:writeas/writefreely
6 years ago
Matt Baer
3576ab15d1
Create issue templates
6 years ago
Matt Baer
1836735499
Add login link on single-user blog
...
This closes #15
6 years ago
Matt Baer
ecac59bf62
Fix Accept IDs
...
Prepend with hash, not hyphen
This closes #16
6 years ago
Matt Baer
78953f27f0
Fix badge
6 years ago
Matt Baer
002d0e6309
Bump version to 0.2
6 years ago
Matt Baer
b8ce944b5c
Add IRC badge in README
6 years ago
Matt Baer
7bc873580c
Move key generation to app from keys.sh
...
This eliminates an external dependency needed for install, and ensures
the app can run on Windows.
6 years ago
Matt Baer
96c197453d
Fix key loading on Windows + move paths into vars
...
This uses filepath.Join() to make sure they always load correctly
6 years ago
Matt Baer
561568343a
Use avatar as blog link social media image
6 years ago
Matt Baer
c996ae1cad
Add To and CC on Create activities
...
Part of #8
6 years ago