Merge asset and page server
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
use assetserver::Asset;
|
||||
use maud::html;
|
||||
use page::page::{Page, PageMetadata};
|
||||
|
||||
@@ -10,7 +9,6 @@ use crate::{
|
||||
misc::FarLink,
|
||||
},
|
||||
pages::page_wrapper,
|
||||
routes::assets::{Image_Cover, Image_Icon},
|
||||
};
|
||||
|
||||
pub fn index() -> Page {
|
||||
@@ -19,7 +17,7 @@ pub fn index() -> Page {
|
||||
title: "Betalupi: About".into(),
|
||||
author: Some("Mark".into()),
|
||||
description: Some("Description".into()),
|
||||
image: Some(Image_Icon::URL.into()),
|
||||
image: Some("/assets/img/icon.png".to_owned()),
|
||||
backlinks: Some(false),
|
||||
},
|
||||
|
||||
@@ -30,7 +28,7 @@ pub fn index() -> Page {
|
||||
|
||||
div {
|
||||
img
|
||||
src=(Image_Cover::URL)
|
||||
src="/assets/img/cover-small.jpg"
|
||||
style="float:left;margin:10px 10px 10px 10px;display:block;width:25%;"
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user