diff --git a/assets/css/app.scss b/assets/css/app.scss index 736649a..f51060a 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -1174,6 +1174,19 @@ section[role="main-content"]{ } } } + + #static{ + figure{ + margin: 2em 0; + img{ + max-width: 100%; + } + figcaption{ + @include fontcaption; + padding: 1em 0; + } + } + } } footer[role="tools"]{ diff --git a/src/pages/Static.vue b/src/pages/Static.vue index 084a8c9..4353e72 100644 --- a/src/pages/Static.vue +++ b/src/pages/Static.vue @@ -1,11 +1,11 @@ @@ -66,6 +66,12 @@ export default { this.page = this.colophon[i] } } + this.parseContentImages() + }, + parseContentImages () { + console.log('parseContentImages') + this.page.tei_parsed = this.page.tei.replace(/src="\/gdp\/static\/images\/(\w+)\.jpg"/g, `src="${window.apipath}/gdp/static/images/$1.jpg"`) + console.log(this.page.tei_parsed) } }, metaInfo () {