Shuffle around packages, fix rophako-import
This commit is contained in:
parent
f702ad12e0
commit
7fa422e42f
|
@ -1,5 +1,5 @@
|
||||||
// Package core implements the core source code of kirsle/blog.
|
// Package blog is a personal website and blogging app.
|
||||||
package core
|
package blog
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -7,27 +7,27 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/controllers/admin"
|
"github.com/kirsle/blog/internal/controllers/admin"
|
||||||
"github.com/kirsle/blog/core/internal/controllers/authctl"
|
"github.com/kirsle/blog/internal/controllers/authctl"
|
||||||
commentctl "github.com/kirsle/blog/core/internal/controllers/comments"
|
commentctl "github.com/kirsle/blog/internal/controllers/comments"
|
||||||
"github.com/kirsle/blog/core/internal/controllers/contact"
|
"github.com/kirsle/blog/internal/controllers/contact"
|
||||||
postctl "github.com/kirsle/blog/core/internal/controllers/posts"
|
postctl "github.com/kirsle/blog/internal/controllers/posts"
|
||||||
"github.com/kirsle/blog/core/internal/controllers/setup"
|
"github.com/kirsle/blog/internal/controllers/setup"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/middleware"
|
"github.com/kirsle/blog/internal/middleware"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/comments"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
|
||||||
"github.com/kirsle/blog/jsondb"
|
"github.com/kirsle/blog/jsondb"
|
||||||
"github.com/kirsle/blog/jsondb/caches"
|
"github.com/kirsle/blog/jsondb/caches"
|
||||||
"github.com/kirsle/blog/jsondb/caches/null"
|
"github.com/kirsle/blog/jsondb/caches/null"
|
||||||
"github.com/kirsle/blog/jsondb/caches/redis"
|
"github.com/kirsle/blog/jsondb/caches/redis"
|
||||||
|
"github.com/kirsle/blog/models/comments"
|
||||||
|
"github.com/kirsle/blog/models/posts"
|
||||||
|
"github.com/kirsle/blog/models/settings"
|
||||||
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/shurcooL/github_flavored_markdown/gfmstyle"
|
"github.com/shurcooL/github_flavored_markdown/gfmstyle"
|
||||||
"github.com/urfave/negroni"
|
"github.com/urfave/negroni"
|
||||||
)
|
)
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core"
|
"github.com/kirsle/blog"
|
||||||
"github.com/kirsle/blog/jsondb"
|
"github.com/kirsle/blog/jsondb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
app := core.New(DocumentRoot, userRoot)
|
app := blog.New(DocumentRoot, userRoot)
|
||||||
if fDebug {
|
if fDebug {
|
||||||
app.Debug = true
|
app.Debug = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,8 @@ import (
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/kirsle/blog/jsondb"
|
"github.com/kirsle/blog/jsondb"
|
||||||
"github.com/kirsle/blog/core/models/comments"
|
"github.com/kirsle/blog/models/comments"
|
||||||
"github.com/kirsle/blog/core/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/golog"
|
"github.com/kirsle/golog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package core
|
package blog
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
// registerErrors loads the error handlers into the responses subpackage.
|
// registerErrors loads the error handlers into the responses subpackage.
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/urfave/negroni"
|
"github.com/urfave/negroni"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FileTree holds information about files in the document roots.
|
// FileTree holds information about files in the document roots.
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/forms"
|
"github.com/kirsle/blog/internal/forms"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/models/settings"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
func settingsHandler(w http.ResponseWriter, r *http.Request) {
|
func settingsHandler(w http.ResponseWriter, r *http.Request) {
|
|
@ -5,13 +5,13 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/forms"
|
"github.com/kirsle/blog/internal/forms"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Register the initial setup routes.
|
// Register the initial setup routes.
|
|
@ -8,15 +8,15 @@ import (
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/mail"
|
"github.com/kirsle/blog/internal/mail"
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/comments"
|
"github.com/kirsle/blog/models/comments"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
)
|
)
|
||||||
|
|
||||||
var badRequest func(http.ResponseWriter, *http.Request, string)
|
var badRequest func(http.ResponseWriter, *http.Request, string)
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/mail"
|
"net/mail"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/models/comments"
|
"github.com/kirsle/blog/models/comments"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
func subscriptionHandler(w http.ResponseWriter, r *http.Request) {
|
func subscriptionHandler(w http.ResponseWriter, r *http.Request) {
|
|
@ -9,12 +9,12 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/forms"
|
"github.com/kirsle/blog/internal/forms"
|
||||||
"github.com/kirsle/blog/core/internal/mail"
|
"github.com/kirsle/blog/internal/mail"
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/models/settings"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Register attaches the contact URL to the app.
|
// Register attaches the contact URL to the app.
|
|
@ -5,11 +5,11 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// archiveHandler summarizes all blog entries in an archive view.
|
// archiveHandler summarizes all blog entries in an archive view.
|
|
@ -7,12 +7,12 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// editHandler is the blog writing and editing page.
|
// editHandler is the blog writing and editing page.
|
|
@ -6,10 +6,10 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/feeds"
|
"github.com/gorilla/feeds"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/models/settings"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
func feedHandler(w http.ResponseWriter, r *http.Request) {
|
func feedHandler(w http.ResponseWriter, r *http.Request) {
|
|
@ -7,12 +7,12 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/models/comments"
|
"github.com/kirsle/blog/models/comments"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// partialIndex renders and returns the blog index partial.
|
// partialIndex renders and returns the blog index partial.
|
|
@ -10,14 +10,14 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
"github.com/urfave/negroni"
|
"github.com/urfave/negroni"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/models/posts"
|
"github.com/kirsle/blog/models/posts"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
)
|
)
|
||||||
|
|
||||||
// tagged lets you browse blog posts by category.
|
// tagged lets you browse blog posts by category.
|
|
@ -4,14 +4,14 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/kirsle/blog/core/internal/forms"
|
"github.com/kirsle/blog/internal/forms"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/models/settings"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Register the initial setup routes.
|
// Register the initial setup routes.
|
|
@ -8,11 +8,11 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/models/comments"
|
"github.com/kirsle/blog/models/comments"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/models/settings"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/microcosm-cc/bluemonday"
|
"github.com/microcosm-cc/bluemonday"
|
||||||
gomail "gopkg.in/gomail.v2"
|
gomail "gopkg.in/gomail.v2"
|
||||||
)
|
)
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/jsondb/caches"
|
"github.com/kirsle/blog/jsondb/caches"
|
||||||
"github.com/microcosm-cc/bluemonday"
|
"github.com/microcosm-cc/bluemonday"
|
||||||
"github.com/shurcooL/github_flavored_markdown"
|
"github.com/shurcooL/github_flavored_markdown"
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
"github.com/urfave/negroni"
|
"github.com/urfave/negroni"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
gorilla "github.com/gorilla/sessions"
|
gorilla "github.com/gorilla/sessions"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
"github.com/urfave/negroni"
|
"github.com/urfave/negroni"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Blog configuration bindings.
|
// Blog configuration bindings.
|
|
@ -7,13 +7,13 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/middleware"
|
"github.com/kirsle/blog/internal/middleware"
|
||||||
"github.com/kirsle/blog/core/internal/middleware/auth"
|
"github.com/kirsle/blog/internal/middleware/auth"
|
||||||
"github.com/kirsle/blog/core/internal/models/settings"
|
"github.com/kirsle/blog/models/settings"
|
||||||
"github.com/kirsle/blog/core/internal/models/users"
|
"github.com/kirsle/blog/models/users"
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Vars is an interface to implement by the templates to pass their own custom
|
// Vars is an interface to implement by the templates to pass their own custom
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/sessions"
|
"github.com/kirsle/blog/internal/sessions"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error handlers to be filled in by the blog app.
|
// Error handlers to be filled in by the blog app.
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/sessions"
|
"github.com/gorilla/sessions"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/types"
|
"github.com/kirsle/blog/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Store holds your cookie store information.
|
// Store holds your cookie store information.
|
|
@ -1,4 +1,4 @@
|
||||||
package core
|
package blog
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"html/template"
|
"html/template"
|
||||||
|
@ -6,11 +6,11 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/kirsle/blog/core/internal/controllers/posts"
|
"github.com/kirsle/blog/internal/controllers/posts"
|
||||||
"github.com/kirsle/blog/core/internal/log"
|
"github.com/kirsle/blog/internal/log"
|
||||||
"github.com/kirsle/blog/core/internal/markdown"
|
"github.com/kirsle/blog/internal/markdown"
|
||||||
"github.com/kirsle/blog/core/internal/render"
|
"github.com/kirsle/blog/internal/render"
|
||||||
"github.com/kirsle/blog/core/internal/responses"
|
"github.com/kirsle/blog/internal/responses"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PageHandler is the catch-all route handler, for serving static web pages.
|
// PageHandler is the catch-all route handler, for serving static web pages.
|
|
@ -2,10 +2,6 @@
|
||||||
* Globals
|
* Globals
|
||||||
*/
|
*/
|
||||||
|
|
||||||
* {
|
|
||||||
transition-duration: 0.5s;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Verdana, Helvetica, Arial, sans-serif;
|
font-family: Verdana, Helvetica, Arial, sans-serif;
|
||||||
color: #555;
|
color: #555;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user