Update pictures
@ -24,7 +24,6 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>{
|
|||||||
kotlinOptions{
|
kotlinOptions{
|
||||||
languageVersion = "1.7"
|
languageVersion = "1.7"
|
||||||
apiVersion = "1.7"
|
apiVersion = "1.7"
|
||||||
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,13 +45,7 @@ class MagProgSection(
|
|||||||
val title: String,
|
val title: String,
|
||||||
val style: String,
|
val style: String,
|
||||||
val content: FlowContent.() -> Unit,
|
val content: FlowContent.() -> Unit,
|
||||||
) {
|
)
|
||||||
val meta: Meta
|
|
||||||
get() = Meta {
|
|
||||||
"id" put id
|
|
||||||
"title" put title
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun wrapSection(
|
private fun wrapSection(
|
||||||
id: String,
|
id: String,
|
||||||
@ -164,7 +158,7 @@ context(PageContext) private fun FlowContent.team() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context(PageContext) private fun FlowContent.mentors() {
|
context(PageContext) private fun FlowContent.mentors() {
|
||||||
val mentors = findByType("magprog_mentor").mapValues { Person(it.value) }.entries.sortedBy { it.value.order }
|
val mentors = findByType("magprog_mentor").mapValues { Person(it.value) }.entries.sortedBy { it.value.id }
|
||||||
|
|
||||||
div("header") {
|
div("header") {
|
||||||
h1("title") {
|
h1("title") {
|
||||||
@ -266,10 +260,6 @@ context(PageContext) internal fun BODY.magProgFooter() {
|
|||||||
internal val Person.mentorPageId get() = "mentor-${id}"
|
internal val Person.mentorPageId get() = "mentor-${id}"
|
||||||
|
|
||||||
internal fun Application.magProgPage(context: Context, rootPath: Path, prefix: String = "/magprog") {
|
internal fun Application.magProgPage(context: Context, rootPath: Path, prefix: String = "/magprog") {
|
||||||
// val io = context.io
|
|
||||||
// val content = DirectoryDataTree(io, rootPath.resolve("content"))
|
|
||||||
//
|
|
||||||
// val magprogPageContext: PageContext = DataSetPageContext(context, prefix, content)
|
|
||||||
|
|
||||||
val snark = context.fetch(SnarkPlugin)
|
val snark = context.fetch(SnarkPlugin)
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 168 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 613 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 12 KiB |