From e9e2c1ff3cc47f48e6d7e2a6c9bfcd7dacd0d848 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 21 May 2018 15:21:13 +0200 Subject: Remove "freelance programmer"; add SBL Hebrew font --- gulpfile.js | 7 ++++++- resources/fonts/SBL_Hebrew.ttf | Bin 0 -> 315092 bytes resources/pug/finals/index.pug | 2 +- resources/pug/include/layout.pug | 4 ++++ resources/sass/style.scss | 14 ++++++++++++++ 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 resources/fonts/SBL_Hebrew.ttf diff --git a/gulpfile.js b/gulpfile.js index 82f3d19..891a759 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,7 @@ gulp.task('watch', function() { gulp.watch(config.pugPath + '/**/*.pug', ['pug']); }); -gulp.task('default', ['bower', 'css', 'pug', 'img']); +gulp.task('default', ['bower', 'css', 'pug', 'img', 'fonts']); gulp.task('bower', function() { return bower() @@ -57,3 +57,8 @@ gulp.task('img', function() { return gulp.src('./resources/img/*') .pipe(gulp.dest('./build/assets/img')); }); + +gulp.task('fonts', function() { + return gulp.src('./resources/fonts/*') + .pipe(gulp.dest('./build/assets/fonts')); +}); diff --git a/resources/fonts/SBL_Hebrew.ttf b/resources/fonts/SBL_Hebrew.ttf new file mode 100644 index 0000000..2802c61 Binary files /dev/null and b/resources/fonts/SBL_Hebrew.ttf differ diff --git a/resources/pug/finals/index.pug b/resources/pug/finals/index.pug index 2fc3c44..30c92a1 100644 --- a/resources/pug/finals/index.pug +++ b/resources/pug/finals/index.pug @@ -3,7 +3,7 @@ extends /layout.pug block content img#profile(alt="Camil Staps", style="float:left;", src="/assets/img/profile-300x300.png", width="170") div#basicinfo - p Freelance programmer; student #[a(href="http://www.ru.nl/english/education/masters/software-science/") Software Science] and #[a(href="http://www.mastersinleiden.nl/programmes/hebrew-and-aramaic-studies-research/en/introduction") Hebrew and Aramaic studies] + p Student #[a(href="http://www.ru.nl/english/education/masters/software-science/") Software Science] and #[a(href="http://www.mastersinleiden.nl/programmes/hebrew-and-aramaic-studies-research/en/introduction") Hebrew and Aramaic studies] p span.tt info@camilstaps.nl p diff --git a/resources/pug/include/layout.pug b/resources/pug/include/layout.pug index e6ecc65..988e7b9 100644 --- a/resources/pug/include/layout.pug +++ b/resources/pug/include/layout.pug @@ -21,6 +21,10 @@ html(lang="en") p.text-center | Copyright © Camil Staps 2015–#{date.getFullYear()}  •  = "Last updated " + date.toDateString() + p.text-center.greyed-out + | This page uses the SBL Hebrew font which is property of Tiro Typeworks. For details, see + a(href='https://www.sbl-site.org/educational/biblicalfonts.aspx', target='_blank') the information page + |. include foot.pug diff --git a/resources/sass/style.scss b/resources/sass/style.scss index e54ba81..8cfa677 100644 --- a/resources/sass/style.scss +++ b/resources/sass/style.scss @@ -1,9 +1,23 @@ @import "bootstrap"; +@font-face { + font-family: Hebrew; + src: url('/assets/fonts/SBL_Hebrew.ttf'); + unicode-range: U+0590-05FF; +} + +body { + font-family: Hebrew, sans-serif; +} + .container { max-width: 970px; } +.greyed-out { + color: #888; +} + img#profile { margin: 1em 1em 1em 0; } -- cgit v1.2.3