Rename module.

This commit is contained in:
Dillon Kearns 2020-09-06 13:34:41 -07:00
parent 417849bb09
commit b762c655a4
9 changed files with 24 additions and 24 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
module SiteConfig exposing (..)
module Site exposing (..)
import Color
import Pages exposing (images, pages)

View File

@ -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"
}

View File

@ -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

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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