Skip to content

DiraGeoSystems/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

457 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Dira Website

It “lives” in a Git repository, is statically generated (well, at present really just statically created), and online at https://dirageosystems.ch since December 2021.

In 2023 we contracted dreamis.ch to redesign the website. It now uses Bootstrap (no longer W3CSS) and the custom CSS is generated and minified from scss/custom.scss (keep these files in sync, either with a scss processor or manually).

In 2025 we made a big-ish update, and moved from a single page to multiple pages. The website is still static, still uses bootstrap and now added jekyll (GitHub Pages Default) static site generator

Please keep this simple and static.

Hosting

Presently hosted at GitHub Pages, straight from the GitHub repository. Things to consider:

  • GitHub Pages only works for a public repository
  • GitHub Pages publishes the docs/ directory on the main branch
  • need empty file docs/.nojekyll to disable Jekyll
  • turned on “Enforce HTTPS”: HTTP requests get a 301 (permanent redirect) to HTTPS; good
  • configured the custom subdomain www.dirageosystems.ch and the custom apex domain dirageosystems.ch; a DNS CNAME record points www.dirageosystems.ch to dirageosystems.github.io and several DNS A records point dirageosystems.github.io to the GitHub servers
  • read the GitHub Pages docs about custom domains

Develop

The page is automatically built upon a push to github. If you want to have local previews, create a jekyll docker container by using the included docker-compose.yml. Go to the root of this repository and run:

docker-compose up

The site will be available under locallhost:4000 approximatley 4sek after saving your edits in your editor..

Editing Workflow

  1. Git: Clone the repository (once only)

  2. Edit the web site.

  3. Test locally: open locallhost:4000, navigate to your changes, test behavior. You may use the browser's Debugger tools (F12) to simulate small screens and look into the console for errors and warnings.

  4. Git: review and commit your changes. Use a short but descriptive commit message.

  5. Git: push your commit(s) to GitHub; it will automatically publish the changes within a few minutes.

  6. Test the published web site: navigate to https://www.dirageosystems.ch and review your changes with your Desktop browser and your mobile browser.

    Rechtliches

In der Schweiz gibt es seit 2012 eine Impressumspflicht (revidiertes Gesetz über den unlauteren Wettbewerb UWG). In Deutschland gibt es das als Anbieterkennzeichnung schon länger. Es geht darum, dass der Urheber der Seiten zweifelsfrei identifiziert und kontaktiert werden kann. Also: Firmenname (wie im Handelsregister eingetragen), funktionierende Mail und Postadresse, optional Telefonnummer und Firmennummer. Dies entweder auf jeder Seite oder auf jeder Seite einen Link zu einer Impressum-Seite.

Achtung: für eine Geschäftstätigkeit in Deutschland/EU sind weiter erforderlich:

  • Name und Vorname einer vertretungsberechtigten Person
  • Telefonnummer
  • Umsatzsteuer- oder Wirtschaftssteuer-Identifikationsnummer (wenn vorhanden)
  • Handels-, Vereins-, Partnerschafts- oder Genossenschaftsregister mit Registernummer (falls vorhanden)

Quelle: https://www.cyon.ch/blog/Impressum-Websites/

Weiter ist eine Datenschutz-Erklärung zwingend. Sobald die Seite von EU-Bürgern verwendet wird, werden diese sich auf die DSGVO berufen, wir müssen also auch hinsichtlich DSGVO eine vollständige und korrekte Datenschutz-Erklärung erstellen und auf jeder Seite (im Footer) verlinken. Bei Hosting auf GitHub Pages (oder wo auch immer) ist sicher mindestens auf deren Datenschutzerklärung zu verweisen.

Siehe:

Analytics

We do not collect any user data at the moment at all (but GitHub might).
We don't even use cookies.
The language selection happens via a lang flag which is updated in all links through a js file.

Should we decide for site usage statistics, we could use good old StatCounter (I'm using this for the IEG site) or Google Analytics as in the snipped below. But beware that we have to update our privacy policy accordingly!

<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
  window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
  ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true);
  ga('set', 'transport', 'beacon'); ga('send', 'pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>

Search Engines

Meta Files

Web App Manifest

The web app manifest belongs to the realm of progressive web apps (PWAs) and allows a web site to be installed on a mobile device's home screen (without an app store). It is a JSON file referenced from HTML with <link rel="manifest" href="FILE">. Mozilla has the details.

Open Graph Metadata

The og:foo meta tags are for the Open Graph Protocol, a Facebook thingy that helps control what Facebook (and others) display when their users share this page. Details on https://ogp.me/

References

Contributors

Languages