mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 21:02:13 +03:00
Change titles
This commit is contained in:
parent
896d39ff89
commit
fdaba16282
@ -584,7 +584,7 @@ otherMethods = do
|
|||||||
-- in front of it, and if we used </> it'd just skip baseUrl
|
-- in front of it, and if we used </> it'd just skip baseUrl
|
||||||
let feedUrl = baseUrl ++ T.unpack (renderRoute route (category^.uid))
|
let feedUrl = baseUrl ++ T.unpack (renderRoute route (category^.uid))
|
||||||
feedTitle = Atom.TextString (T.unpack (category^.title) ++
|
feedTitle = Atom.TextString (T.unpack (category^.title) ++
|
||||||
" – Aelve Guide")
|
" – Haskell – Aelve Guide")
|
||||||
feedLastUpdate = case sortedItems of
|
feedLastUpdate = case sortedItems of
|
||||||
(item:_) -> Feed.toFeedDateStringUTC Feed.AtomKind (item^.created)
|
(item:_) -> Feed.toFeedDateStringUTC Feed.AtomKind (item^.created)
|
||||||
_ -> ""
|
_ -> ""
|
||||||
|
10
src/View.hs
10
src/View.hs
@ -460,12 +460,12 @@ renderHaskellRoot
|
|||||||
:: (MonadIO m, MonadRandom m, MonadReader Config m)
|
:: (MonadIO m, MonadRandom m, MonadReader Config m)
|
||||||
=> GlobalState -> Maybe Text -> HtmlT m ()
|
=> GlobalState -> Maybe Text -> HtmlT m ()
|
||||||
renderHaskellRoot globalState mbSearchQuery =
|
renderHaskellRoot globalState mbSearchQuery =
|
||||||
wrapPage "Aelve Guide" $ do
|
wrapPage "Aelve Guide: Haskell" $ do
|
||||||
onPageLoad $ JS.expandHash ()
|
onPageLoad $ JS.expandHash ()
|
||||||
case mbSearchQuery of
|
case mbSearchQuery of
|
||||||
Nothing -> h1_ "The Haskeller's guide"
|
Nothing -> h1_ "Aelve Guide: Haskell"
|
||||||
-- A search page isn't the main page, so we need a link to the main page
|
-- A search page isn't the main page, so we need a link to the main page
|
||||||
Just _ -> h1_ (mkLink "The Haskeller's guide" "/haskell")
|
Just _ -> h1_ (mkLink "Aelve Guide: Haskell" "/haskell")
|
||||||
renderNoScriptWarning
|
renderNoScriptWarning
|
||||||
renderSearch mbSearchQuery
|
renderSearch mbSearchQuery
|
||||||
textInput [
|
textInput [
|
||||||
@ -493,10 +493,10 @@ renderCategoryPage
|
|||||||
:: (MonadIO m, MonadRandom m, MonadReader Config m)
|
:: (MonadIO m, MonadRandom m, MonadReader Config m)
|
||||||
=> Category -> HtmlT m ()
|
=> Category -> HtmlT m ()
|
||||||
renderCategoryPage category = do
|
renderCategoryPage category = do
|
||||||
wrapPage (category^.title <> " – Aelve Guide") $ do
|
wrapPage (category^.title <> " – Haskell – Aelve Guide") $ do
|
||||||
onPageLoad $ JS.expandHash ()
|
onPageLoad $ JS.expandHash ()
|
||||||
-- TODO: another absolute link [absolute-links]
|
-- TODO: another absolute link [absolute-links]
|
||||||
h1_ (mkLink "The Haskeller's guide" "/haskell")
|
h1_ (mkLink "Aelve Guide: Haskell" "/haskell")
|
||||||
renderNoScriptWarning
|
renderNoScriptWarning
|
||||||
renderSearch Nothing
|
renderSearch Nothing
|
||||||
renderCategory category
|
renderCategory category
|
||||||
|
Loading…
Reference in New Issue
Block a user