Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

README.md

preview

🌎🔃🌍
http://arnaudjuracek.fr
unubiquitous & cross-client-synced portfolio

=== Built with brocessing's bro-start

Installation

Install ImageMagick, then :

$ ssh remote_username@remote_host
$ mkdir /www/www-arnaudjuracek && cd /ww/www-arnaudjuracek
$ git clone https://github.com/arnaudjuracek/www-arnaudjuracek.git
$ sudo npm install
$ ln -s /www/www-arnaudjuracek/build /www/www-arnaudjuracek/server/public
$ npm run build
$ pm2 start server/app.js

Deployment

$ ssh remote_username@remote_host 
$ cd /www/www-arnaudjuracek
$ git pull
$ npm run build
$ pm2 restart app

Data structures

src/views/project-name.txt :

---
template: project

title: " "
date: YYYY-MM-DD
context: " "
license: " "
credits:
  "category":
    - "<b>html</b> valid entry"
    - "<b>html</b> valid entry"
  "category":
    - "<b>html</b> valid entry"
  "":
    - "<b>html</b> valid entry with untitled category"

content: |
  <p>multiple lines</p>
  <p>html content</p>

images:
  - 00.png
  - 01.png
  - 02.png
  - 07.png
images-columns: 2

vimeo: vimeoID
videos:
  - {url: "file.mp4", poster: "poster.png"}

If template is omitted, {{content}} will be output. You can quickly build views like this (see views/index.txt), but note that none of the other YAML fields will be evaluated.

Note that the assets path is implicit, and should be assets/projects/project-name/. When calling npm run build, all images assets will be resized and structured as following :

assets/
  projects/
    project-name/
      low/image.jpg
      small/image.jpg
      normal/image.jpg
      large/image.jpg

Attributions

License

MIT.

You can’t perform that action at this time.