mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 06:05:31 +03:00
Rename module.
This commit is contained in:
parent
417849bb09
commit
b762c655a4
@ -13,7 +13,7 @@ import Pages.PagePath as PagePath exposing (PagePath)
|
||||
import Pages.Platform exposing (Page)
|
||||
import Rss
|
||||
import RssPlugin
|
||||
import SiteConfig
|
||||
import Site
|
||||
import TemplateDemultiplexer
|
||||
|
||||
|
||||
@ -26,19 +26,19 @@ main =
|
||||
, body = MarkdownRenderer.view
|
||||
}
|
||||
]
|
||||
, manifest = SiteConfig.manifest
|
||||
, canonicalSiteUrl = SiteConfig.canonicalUrl
|
||||
, manifest = Site.manifest
|
||||
, canonicalSiteUrl = Site.canonicalUrl
|
||||
, subscriptions = \_ -> Sub.none
|
||||
}
|
||||
|> RssPlugin.generate
|
||||
{ siteTagline = SiteConfig.tagline
|
||||
, siteUrl = SiteConfig.canonicalUrl
|
||||
{ siteTagline = Site.tagline
|
||||
, siteUrl = Site.canonicalUrl
|
||||
, title = "elm-pages Blog"
|
||||
, builtAt = Pages.builtAt
|
||||
, indexPage = Pages.pages.blog.index
|
||||
}
|
||||
metadataToRssItem
|
||||
|> MySitemap.install { siteUrl = SiteConfig.canonicalUrl } metadataToSitemapEntry
|
||||
|> MySitemap.install { siteUrl = Site.canonicalUrl } metadataToSitemapEntry
|
||||
|> Pages.Platform.toProgram
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
module SiteConfig exposing (..)
|
||||
module Site exposing (..)
|
||||
|
||||
import Color
|
||||
import Pages exposing (images, pages)
|
@ -10,7 +10,7 @@ import Pages exposing (images)
|
||||
import Pages.PagePath as PagePath exposing (PagePath)
|
||||
import Pages.StaticHttp as StaticHttp
|
||||
import Showcase
|
||||
import SiteConfig
|
||||
import Site
|
||||
import Template exposing (DynamicPayload, StaticPayload, Template)
|
||||
import TemplateMetadata exposing (BlogIndex)
|
||||
|
||||
@ -83,7 +83,7 @@ head staticPayload =
|
||||
, dimensions = Nothing
|
||||
, mimeType = Nothing
|
||||
}
|
||||
, description = SiteConfig.tagline
|
||||
, description = Site.tagline
|
||||
, locale = Nothing
|
||||
, title = "elm-pages blog"
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ import Pages
|
||||
import Pages.ImagePath as ImagePath exposing (ImagePath)
|
||||
import Pages.PagePath as PagePath exposing (PagePath)
|
||||
import Palette
|
||||
import SiteConfig
|
||||
import Site
|
||||
import StructuredData
|
||||
import Template exposing (DynamicPayload, StaticPayload, Template)
|
||||
import TemplateMetadata exposing (BlogPost)
|
||||
@ -143,8 +143,8 @@ head staticPayload =
|
||||
, description = staticPayload.metadata.description
|
||||
, author = StructuredData.person { name = staticPayload.metadata.author.name }
|
||||
, publisher = StructuredData.person { name = "Dillon Kearns" }
|
||||
, url = SiteConfig.canonicalUrl ++ "/" ++ PagePath.toString staticPayload.path
|
||||
, imageUrl = SiteConfig.canonicalUrl ++ "/" ++ ImagePath.toString staticPayload.metadata.image
|
||||
, url = Site.canonicalUrl ++ "/" ++ PagePath.toString staticPayload.path
|
||||
, imageUrl = Site.canonicalUrl ++ "/" ++ ImagePath.toString staticPayload.metadata.image
|
||||
, datePublished = Date.toIsoString staticPayload.metadata.published
|
||||
, mainEntityOfPage =
|
||||
StructuredData.softwareSourceCode
|
||||
|
@ -15,7 +15,7 @@ import Pages exposing (images)
|
||||
import Pages.PagePath as PagePath exposing (PagePath)
|
||||
import Pages.StaticHttp as StaticHttp
|
||||
import Palette
|
||||
import SiteConfig
|
||||
import Site
|
||||
import Template exposing (DynamicPayload, StaticPayload, Template)
|
||||
import TemplateMetadata exposing (Documentation)
|
||||
|
||||
@ -79,7 +79,7 @@ head staticPayload =
|
||||
, dimensions = Nothing
|
||||
, mimeType = Nothing
|
||||
}
|
||||
, description = SiteConfig.tagline
|
||||
, description = Site.tagline
|
||||
, locale = Nothing
|
||||
, title = staticPayload.metadata.title
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ import Json.Decode as Decode
|
||||
import Pages exposing (images)
|
||||
import Pages.PagePath as PagePath exposing (PagePath)
|
||||
import Pages.StaticHttp as StaticHttp
|
||||
import SiteConfig
|
||||
import Site
|
||||
import Template exposing (StaticPayload, Template)
|
||||
import TemplateMetadata exposing (Page)
|
||||
|
||||
@ -69,7 +69,7 @@ head staticPayload =
|
||||
, dimensions = Nothing
|
||||
, mimeType = Nothing
|
||||
}
|
||||
, description = SiteConfig.tagline
|
||||
, description = Site.tagline
|
||||
, locale = Nothing
|
||||
, title = staticPayload.metadata.title
|
||||
}
|
||||
|
@ -208,8 +208,8 @@ mainTemplate { documents, manifest, canonicalSiteUrl, subscriptions } =
|
||||
, subscriptions = subscriptions
|
||||
, documents = documents
|
||||
, onPageChange = Just OnPageChange
|
||||
, manifest = manifest -- SiteConfig.manifest
|
||||
, canonicalSiteUrl = canonicalSiteUrl -- SiteConfig.canonicalUrl
|
||||
, manifest = manifest -- Site.manifest
|
||||
, canonicalSiteUrl = canonicalSiteUrl -- Site.canonicalUrl
|
||||
, internals = Pages.internals
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ import Pages
|
||||
import Pages.PagePath exposing (PagePath)
|
||||
import Pages.Platform
|
||||
import Pages.StaticHttp as StaticHttp
|
||||
import SiteConfig
|
||||
import Site
|
||||
import Template.BlogIndex
|
||||
import Template.BlogPost
|
||||
import Template.Documentation
|
||||
@ -611,8 +611,8 @@ mainTemplate { documents, manifest, canonicalSiteUrl, subscriptions } =
|
||||
, subscriptions = subscriptions
|
||||
, documents = documents
|
||||
, onPageChange = Just OnPageChange
|
||||
, manifest = manifest -- SiteConfig.manifest
|
||||
, canonicalSiteUrl = canonicalSiteUrl -- SiteConfig.canonicalUrl
|
||||
, manifest = manifest -- Site.manifest
|
||||
, canonicalSiteUrl = canonicalSiteUrl -- Site.canonicalUrl
|
||||
, internals = Pages.internals
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ import Pages.PagePath as PagePath exposing (PagePath)
|
||||
import Pages.StaticHttp as StaticHttp
|
||||
import Palette
|
||||
import Secrets
|
||||
import SiteConfig
|
||||
import Site
|
||||
import StructuredData
|
||||
import Template
|
||||
import Template.Metadata exposing (BlogPost)
|
||||
@ -151,8 +151,8 @@ head static currentPath meta =
|
||||
, description = meta.description
|
||||
, author = StructuredData.person { name = meta.author.name }
|
||||
, publisher = StructuredData.person { name = "Dillon Kearns" }
|
||||
, url = SiteConfig.canonicalUrl ++ "/" ++ PagePath.toString currentPath
|
||||
, imageUrl = SiteConfig.canonicalUrl ++ "/" ++ ImagePath.toString meta.image
|
||||
, url = Site.canonicalUrl ++ "/" ++ PagePath.toString currentPath
|
||||
, imageUrl = Site.canonicalUrl ++ "/" ++ ImagePath.toString meta.image
|
||||
, datePublished = Date.toIsoString meta.published
|
||||
, mainEntityOfPage =
|
||||
StructuredData.softwareSourceCode
|
||||
|
Loading…
Reference in New Issue
Block a user